tripeaks-solitaire-solver-j.../README.md

16 lines
1.1 KiB
Markdown
Raw Normal View History

2022-09-14 09:54:03 -04:00
# Tripeaks Solitaire Solver 73k
2022-09-07 08:49:25 -04:00
2022-09-14 09:54:03 -04:00
A brute force solver for Microsoft Tripeaks solitaire written in javascript.
2019-07-27 07:46:57 -04:00
2022-09-14 09:54:03 -04:00
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.
2019-07-27 07:46:57 -04:00
2022-09-14 09:54:03 -04:00
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).
2022-09-14 09:54:03 -04:00
This began as a fork of [Courtney Pitcher's project](https://github.com/IgniparousTempest/javascript-tri-peaks-solitaire-solver), and I'm grateful for the solving algorithm & inspiration.
## Notes
- Unsolvable games can take 6 or more minutes to solve, so be patient.
2022-09-14 09:54:03 -04:00
- 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](https://vitejs.dev/), [Alpine.js](https://alpinejs.dev/), [Bootstrap](https://getbootstrap.com/), and some [free customized SVG playing cards](https://www.me.uk/cards/). Linting & formatting is included.