Commit Graph

31 Commits

Author SHA1 Message Date
Quaternions f2f9085aaf use exhaustive match 2026-05-29 17:08:57 -07:00
Quaternions 0e2284e913 fmt 2026-05-29 17:05:27 -07:00
Quaternions 90e1a03962 add NUM_RANKS constant 2026-05-29 16:37:04 -07:00
Quaternions 44b5aa02b8 rename functions 2026-05-29 16:32:39 -07:00
Quaternions ef0936bee9 write more specific functions instead of using generics 2026-05-29 16:30:13 -07:00
Quaternions 1de633adb3 implement solver 2026-05-29 14:21:18 -07:00
Quaternions 64a94c6072 Implement improved scoring (#13)
Closes #10

Reviewed-on: #13
Co-authored-by: Rhys Lloyd <krakow20@gmail.com>
Co-committed-by: Rhys Lloyd <krakow20@gmail.com>
2026-05-29 20:18:57 +00:00
Quaternions c9c341e926 Add MoveFromFoundationConfig option to KlondikeConfig (#12)
Closes #11

Reviewed-on: #12
Co-authored-by: Rhys Lloyd <krakow20@gmail.com>
Co-committed-by: Rhys Lloyd <krakow20@gmail.com>
2026-05-29 18:59:26 +00:00
Quaternions 5ab1b8bac7 stock face down does not matter for trivial win 2026-05-26 22:39:46 -07:00
Quaternions a80f2ae3c9 tableau_face_down_cards tableau_face_up_cards functions 2026-05-26 22:34:14 -07:00
Quaternions f49721e415 no repr 2026-05-19 07:42:34 -07:00
Quaternions 5cb5cb9a50 tweak doc 2026-05-18 13:43:39 -07:00
Quaternions 13bc36ce0c tweak with_rng signature to allow Rng reuse 2026-05-18 13:28:40 -07:00
Quaternions 07c3dc6667 fix doc 2026-05-18 13:26:08 -07:00
Quaternions 90d46902ea move auto moves into klondike 2026-05-18 13:08:15 -07:00
Quaternions fd6b2a23ea add is_win_trivial 2026-05-18 13:00:15 -07:00
Quaternions e9bb9660a8 fix is_win 2026-05-18 12:56:37 -07:00
Quaternions 2463e1a8f6 move test 2026-05-18 12:50:19 -07:00
Quaternions a28a965d12 seed_from_u64 (#7)
Closes #5

Reviewed-on: #7
Co-authored-by: Rhys Lloyd <krakow20@gmail.com>
Co-committed-by: Rhys Lloyd <krakow20@gmail.com>
2026-05-18 19:17:11 +00:00
Quaternions fef4fe4d55 implement score 2026-05-18 12:03:10 -07:00
Quaternions fc62da992e pub DrawStockConfig 2026-05-18 11:53:44 -07:00
Quaternions 5f81f28160 refactor CardValue into Rank enum 2026-05-18 11:01:48 -07:00
Quaternions 595ff73f90 Implement Stats (#6)
Closes #1

Reviewed-on: #6
Co-authored-by: Rhys Lloyd <krakow20@gmail.com>
Co-committed-by: Rhys Lloyd <krakow20@gmail.com>
2026-05-17 16:46:09 +00:00
Quaternions 5553a7e1a1 use associated constant 2026-05-17 08:42:17 -07:00
Quaternions a450c00378 do not pop_flip_up stock 2026-05-17 08:41:29 -07:00
Quaternions de0fdf33ad specific functions 2026-05-16 22:12:27 -07:00
Quaternions 3cbe8dea78 comment 2026-05-16 22:10:14 -07:00
Quaternions bb558c7983 rename function 2026-05-16 22:06:50 -07:00
Quaternions 6fec71ea0a use into trait generics 2026-05-16 22:04:46 -07:00
Quaternions d43f4c5693 improve move picking 2026-05-16 18:01:46 -07:00
Quaternions 5ed4ec139f separate klondike 2026-05-16 17:04:11 -07:00