~bsprague/chaos

81f010cea0cdcb4ccfaa2b4bc75cb958a35872e8 — Brandon Sprague 2 months ago b4917da main
README updates and other stuff
2 files changed, 8 insertions(+), 2 deletions(-)

M README.md
M src/main.rs
M README.md => README.md +6 -0
@@ 4,6 4,12 @@ This is a simple implementation of the board game [Chaos](https://boardgamegeek.

It includes a basic Monte Carlo sim with both players dropping random moves.

## Usage

To run the Monte Carlo sim (e.g. a million random games), run `cargo run --release`

This takes about ~5 seconds on a recent laptop.

## Motivation

I played a few rounds of this game recently, and have exactly zero intuition for how to play this game well. The next step is to see if the state space is small enough to min-max it (e.g. check for full solvability).

M src/main.rs => src/main.rs +2 -2
@@ 6,8 6,8 @@ fn main() -> Result<(), PlayError> {

    let mut wins = HashMap::from([(Player::Blue, 0), (Player::Orange, 0)]);

    // Play a 100000 random games
    for _ in 0..100000 {
    // Play 1000000 random games
    for _ in 0..1000000 {
        let mut b = Board::new();
        while b.winner().is_none() {
            let m = Move {