Commit Graph

35 Commits

Author SHA1 Message Date
310d6b7afa random game sampling and basic benchmark 2023-01-02 10:33:07 -08:00
45deb93a4f finish leg/game randomly (untested) 2023-01-01 16:06:51 -08:00
b3e7ae7900 remove inefficient update_positions 2022-12-31 22:47:48 -08:00
df4e671bc4 riir wip 2022-12-31 22:40:48 -08:00
8715e5e354 track length instead of last index for fixedseq 2022-01-11 15:26:35 -08:00
Joseph Montanaro
63df46eee6 reuse dice for subsequent legs in randomGame 2021-11-05 10:27:09 -07:00
d9efaf33e7 clear tiles as well as camels when setting state 2021-11-02 18:09:18 -07:00
Joseph Montanaro
4995a9388b fix game state representation 2021-11-01 15:44:21 -07:00
Joseph Montanaro
0ea49d3534 pull help message from readme 2021-10-22 12:35:09 -07:00
Joseph Montanaro
ad29f04660 fix percentage bar fill 2021-10-22 10:35:24 -07:00
29e3e70712 skip bounds checking in danger mode 2021-07-29 19:34:56 -07:00
Joseph Montanaro
7301597789 use cligen for benchmarking 2021-07-20 16:16:01 -07:00
e5e90a6ca5 more bench improvements 2021-07-19 21:26:26 -07:00
Joseph Montanaro
38e9e23dea no need to set winner until game is over 2021-07-19 13:21:14 -07:00
Joseph Montanaro
94c4240d63 some improvements to benchmark script 2021-07-19 11:08:13 -07:00
37991656b9 make use of prettier dislpays 2021-07-14 22:05:03 -07:00
20d6022828 prettier displays for game board and win probabilities 2021-07-14 21:49:10 -07:00
b58aafc61f add readme and rename main file 2021-07-14 21:48:48 -07:00
Joseph Montanaro
57c991cf5f off-by-one error 2021-07-14 10:23:25 -07:00
Joseph Montanaro
bd413da9a3 more variance testing 2021-07-13 16:16:47 -07:00
Joseph Montanaro
bcf87a10fd multithreaded simulation for full game 2021-07-13 15:54:54 -07:00
Joseph Montanaro
6f694f99ed add (very) basic CLI 2021-07-12 15:46:06 -07:00
b4c31a7a68 testing variance on random sampling method 2021-03-25 23:08:06 -07:00
Joseph Montanaro
afacd2b52b use a template for indexing Board 2021-03-25 18:00:39 -07:00
Joseph Montanaro
239e99c79f randomize starting state 2021-03-24 18:14:57 -07:00
Joseph Montanaro
f05ab2cfa2 stochastic modeling for full games 2021-03-24 10:54:50 -07:00
2256b6d9bf refactor and start shifting to FixedSeq (currently broken) 2021-03-24 00:18:53 -07:00
Joseph Montanaro
59fc6b961b eliminate unnecessary indirection in ColorStack iterator 2021-03-22 17:23:28 -07:00
e5e2f30045 move to fixed-size arrays instead of sequences 2021-03-21 20:59:45 -07:00
e0f83cdca1 allow simulating more than 2 legs ahead 2021-03-20 23:56:07 -07:00
2aa0e63987 deduplicate game states at end of leg 2021-03-20 18:04:27 -07:00
6e1a1c8c96 switch to iterative style rather than recursive 2021-03-20 00:45:38 -07:00
Joseph Montanaro
c11e4e4696 working with recursion 2021-03-19 17:47:18 -07:00
86ef069848 permutations iterator 2021-03-18 23:23:19 -07:00
Joseph Montanaro
c552834741 initial commit 2021-03-18 15:42:22 -07:00