diff options
| author | Tom Harley | 2019-02-17 00:16:12 +0000 |
|---|---|---|
| committer | Tom Harley | 2019-02-17 00:16:12 +0000 |
| commit | 5fb3cdc6faee083ceb43dee168b440c92ba951ad (patch) | |
| tree | e80f8bad860153a4862b9578f7182f009ae648eb /docs | |
| parent | Solve a Klondike deal (diff) | |
| download | metasol-5fb3cdc6faee083ceb43dee168b440c92ba951ad.tar.gz metasol-5fb3cdc6faee083ceb43dee168b440c92ba951ad.zip | |
Split Solvitaire k+ moves into stock moves
In Solvitaire, going through the stock in stock-waste games is bundled with the move out of the waste, in what’s called a k-plus move. This makes sense in Solvitaire, but in this system having each stock move be explicit helps because it itemises all moves similarly, making shaving off single moves easy.
The calculate_stock_moves function uses a simulation rather than a simple calculation, which has a couple of downsides: 1. it’s slower than a calculation; 2. it loops infinitely when given an index that’s impossible to reach.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions
