Dummy¶
patiencepilot.solvers.dummy ¶
Trivial solver implementations.
DummySolver
dataclass
¶
Deterministic solver that recommends the first visible legal move.
Source code in src/patiencepilot/solvers/dummy.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | |
suggest ¶
suggest(
view: PlayerView, *, limit: SearchLimit | None = None
) -> Advice
Return the first legal move available in view.
The solver derives legal moves only from player-visible information: foundations, waste, visible tableau cards, stock count, and redeal metadata. It does not reconstruct or inspect hidden card identities.
Source code in src/patiencepilot/solvers/dummy.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | |
visible_klondike_moves ¶
visible_klondike_moves(
view: PlayerView,
) -> tuple[Move, ...]
Return Klondike moves legal from player-visible state.
Source code in src/patiencepilot/solvers/dummy.py
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 | |