A brute force solver for tripeaks solitaire written in javascript.
https://tripeaks.73k.us
dist | ||
src | ||
.eslintrc.json | ||
.gitignore | ||
.prettierignore | ||
package-lock.json | ||
package.json | ||
README.md | ||
solver.js | ||
test.js | ||
vite.config.js |
Tripeaks Solitaire Solver 73k
A brute force solver for Microsoft Tripeaks solitaire written in javascript.
The dist
folder contains an HTML+JS interface for entering cards and getting solutions. You can open it directly in a browser to try it out.
The solver can provide a "best moves" list (the first set of moves found that removes the most cards from the board) for unsolvable games, and games-in-progress (when you don't already know all the cards).
This began as a fork of Courtney Pitcher's project, and I'm grateful for the solving algorithm & inspiration.
Notes
- Unsolvable games can take 6 or more minutes to solve, so be patient.
- Per Courtney Pitcher, "This is probably quite a poor implementation." Please don't fault either of us, he was teaching himself javascript, and I'm just having fun.
- The HTML+JS interface is built with Vite, Alpine.js, Bootstrap, and some free customized SVG playing cards. Linting & formatting is included.