A brute force solver for tripeaks solitaire written in javascript. https://tripeaks.73k.us
Find a file
2022-09-13 22:24:36 -04:00
cards improved html input with a resizable, dynamic game cards preview 2022-09-12 20:51:12 -04:00
.eslintrc.json web page fully working as desired in dev 2022-09-13 20:05:14 -04:00
.gitignore initial HTML implementation of user input with validation 2022-09-10 14:13:49 -04:00
cardSvgs.js improved html input with a resizable, dynamic game cards preview 2022-09-12 20:51:12 -04:00
index.html lint & format 2022-09-13 21:59:30 -04:00
main.js remove unused bootstrap js import 2022-09-13 21:18:26 -04:00
package-lock.json include html minification 2022-09-13 22:24:36 -04:00
package.json include html minification 2022-09-13 22:24:36 -04:00
README.md implemented tests for Card.isSequential method 2022-09-11 07:19:27 -04:00
run.js web page fully working as desired in dev 2022-09-13 20:05:14 -04:00
solver.js web page fully working as desired in dev 2022-09-13 20:05:14 -04:00
solverWorker.js web page fully working as desired in dev 2022-09-13 20:05:14 -04:00
style.scss fix bs scss import 2022-09-13 21:57:23 -04:00
test.js web page fully working as desired in dev 2022-09-13 20:05:14 -04:00
vite.config.js lint & format 2022-09-13 21:59:30 -04:00

javascript-tri-peaks-solitaire-solver

A brute force solver for Microsoft Tri-Peaks solitaire written in javascript.

This is a fork of Courtney Pitcher's project, with several changes.

Changes

  • fixed card matching, implemented card matching tests
  • solver now returns a "first best set of moves found" for unsolvable games (the first set of moves found that removes the most cards from the board)

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 probably even less qualified...

TODO

  • HTML ui/demo in progress