Find a file
2016-03-22 21:45:24 -07:00
src new cardinfo trait, separate cards stuff to different file 2016-03-22 21:45:24 -07:00
.gitignore Initial commit 2016-03-05 16:54:46 -08:00
Cargo.lock add nthreads option, histogram 2016-03-17 23:10:38 -07:00
Cargo.toml add nthreads option, histogram 2016-03-17 23:10:38 -07:00
README.md improvements, cleanup, readme 2016-03-19 14:24:22 -07:00

Simulations of Hanabi strategies

Hanabi is an interesting cooperative game, with simple rules.

I plan on reimplementing strategies with ideas from this paper.

Some similar projects I am aware of:

Setup

Install rust/rustc and cargo, and change the options in main.rs appropriately.

cargo run -- -h

Usage: target/debug/rust_hanabi [options]

Options:
    -l, --loglevel LOGLEVEL
                        Log level, one of 'trace', 'debug', 'info', 'warn', and 'error'
    -n, --ntrials NTRIALS
                        Number of games to simulate
    -t, --nthreads NTHREADS
                        Number of threads to use for simulation
    -s, --seed SEED     Seed for PRNG
    -p, --nplayers NPLAYERS
                        Number of players
    -h, --help          Print this help menu

For example,

cargo run -- -n 10000 -s 0 -t 2 -p 3

Results (sparsely updated)

Currently, on seeds 0-9999, we have:

      |   2p    |   3p    |   4p    |   5p    |

----------|---------|---------|---------|---------| cheating | 24.8600 | 24.9781 | 24.9715 | 24.9583 |