Commit Graph

56 Commits

Author SHA1 Message Date
Quaternions a8051b221b Refactor KlondikeInstruction (#4)
Fixes #2

Reviewed-on: #4
Co-authored-by: Rhys Lloyd <krakow20@gmail.com>
Co-committed-by: Rhys Lloyd <krakow20@gmail.com>
2026-05-16 19:09:11 +00:00
Quaternions 0d98f8e25e validate other instructions 2026-05-16 10:35:11 -07:00
Quaternions 8fe13caa1e find valid instruction 2026-05-16 10:31:28 -07:00
Quaternions 0e522f7154 fix skip count 2026-05-16 10:31:06 -07:00
Quaternions 1cf1db4512 remove upper case matching 2026-05-16 10:09:29 -07:00
Quaternions 2a53f29a9b add exit command 2026-05-16 10:09:15 -07:00
Quaternions 68e891d3b7 minify state & respect InstructionSrc spec 2026-05-16 10:04:32 -07:00
Quaternions d800e9d33e extend instruction to include skip cards 2026-05-16 09:10:43 -07:00
Quaternions 56aaf79ce7 refactor winnable 2026-05-15 16:23:17 -07:00
Quaternions b8624ef9d0 add auto play 2026-05-15 15:24:27 -07:00
Quaternions 10444b0a62 fix iteration order 2026-05-15 15:18:55 -07:00
Quaternions ed8b99bf57 fix tableaus 2026-05-15 14:21:54 -07:00
Quaternions 88f35b9462 fix stock getting reversed 2026-05-15 14:16:42 -07:00
Quaternions 6d414bd02f compute max stack size 2026-05-15 14:09:18 -07:00
Quaternions 23da186729 core 2026-05-15 14:02:31 -07:00
Quaternions bbe4ec6625 implement Stack using ArrayVec 2026-05-15 14:01:50 -07:00
Quaternions 334084e4df stock shorthand 2026-05-15 12:43:18 -07:00
Quaternions 792c9acba3 add new game command 2026-05-15 12:38:40 -07:00
Quaternions a5ca7ff25d fix human numbers 2026-05-15 12:38:35 -07:00
Quaternions 0deee670d9 rename PileIds to use human numbers 2026-05-15 12:24:07 -07:00
Quaternions dcd4308209 use alt unicode for suit color 2026-05-15 12:21:59 -07:00
Quaternions ad9b1bf64d add hint 2026-05-15 12:21:36 -07:00
Quaternions 76101b36be validate moves 2026-05-15 11:28:58 -07:00
Quaternions a1572a3971 allow king to move to empty tableau 2026-05-15 11:03:57 -07:00
Quaternions dd557d2fcf format 2026-05-15 11:03:45 -07:00
Quaternions 7b76e100c9 allow lowercase 2026-05-15 10:57:14 -07:00
Quaternions 24b94e8dfa fix stock flip up and stock recycle 2026-05-15 10:55:58 -07:00
Quaternions 31025964ef try tableau moves first in KlondikeIter 2026-05-15 10:43:07 -07:00
Quaternions a8d9798001 fix bug 2026-05-15 10:36:19 -07:00
Quaternions a2f0a489c1 add undo to cli 2026-05-15 10:35:34 -07:00
Quaternions f1805826bb write cli repl 2026-05-15 10:28:52 -07:00
Quaternions c1ce3aadca test better 2026-05-15 09:43:00 -07:00
Quaternions 82b5020da4 implement is_winnable 2026-05-15 09:10:52 -07:00
Quaternions 3ca568131e fix Stock -> Stock instruction not appearing in KlondikeIter 2026-05-15 09:02:53 -07:00
Quaternions ab3cf9b3f3 fix ace to foundation 2026-05-15 09:01:03 -07:00
Quaternions f18e8b9b1a new_random_default 2026-05-15 08:56:24 -07:00
Quaternions 78a5b9cc3d undo 2026-05-15 08:54:07 -07:00
Quaternions 64d7780939 shuffle code around 2026-05-15 08:44:03 -07:00
Quaternions daf7fcd8f3 fix stock reset 2026-05-15 08:38:56 -07:00
Quaternions 30f2fec61b make test 2026-05-15 08:38:47 -07:00
Quaternions 2d0fb8f0c1 fix klondike generation 2026-05-15 08:32:44 -07:00
Quaternions a84903af8e rename 2026-05-15 08:27:55 -07:00
Quaternions 2e1bab8c52 possible_instructions 2026-05-15 08:27:02 -07:00
Quaternions d344ac20e1 fix readme 2026-05-15 08:08:51 -07:00
Quaternions 711f447993 fix trait 2026-05-15 08:07:55 -07:00
Quaternions 25d3c3aae4 klondike instruction validation 2026-05-15 08:01:06 -07:00
Quaternions 4ffd2a338f card game stuff 2026-05-15 07:57:01 -07:00
Quaternions 9dd379cb1b card game stuff 2026-05-15 07:35:31 -07:00
Quaternions 1f820e4cad card game stuff 2026-05-15 07:29:47 -07:00
Quaternions ec8d998f75 card game stuff 2026-05-15 07:04:48 -07:00