From 5fb3cdc6faee083ceb43dee168b440c92ba951ad Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Sun, 17 Feb 2019 00:16:12 +0000 Subject: 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. --- almost-finished.json | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 almost-finished.json (limited to 'almost-finished.json') diff --git a/almost-finished.json b/almost-finished.json deleted file mode 100644 index 6516f6f..0000000 --- a/almost-finished.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "foundations": [ - [ "AC", "2C", "3C", "4C", "5C", "6C", "7C", "8C", "9C", "TC", "JC", "QC", "KC" ], - [ "AD", "2D", "3D", "4D", "5D", "6D", "7D", "8D", "9D", "TD", "JD", "QD" ], - [ "AH", "2H", "3H", "4H", "5H", "6H", "7H", "8H", "9H", "TH", "JH", "QH", "KH" ], - [ "AS", "2S", "3S", "4S", "5S", "6S", "7S", "8S", "9S", "TS", "JS", "QS", "KS" ] - ], - - "tableau": [ - [ "KD" ], [], [], [], [], [], [] - ] -} -- cgit v1.2.1