aboutsummaryrefslogtreecommitdiff
path: root/debug.h
AgeCommit message (Collapse)AuthorLines
2019-04-10Add voters to vote when vote is splitTom Harley-1/+1
2019-02-17Split Solvitaire k+ moves into stock movesTom Harley-0/+26
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.