Giter Site home page Giter Site logo

apiontek / tripeaks-solitaire-solver-js-73k Goto Github PK

View Code? Open in Web Editor NEW

This project forked from igniparoustempest/javascript-tri-peaks-solitaire-solver

2.0 2.0 0.0 938 KB

A brute force solver for tripeaks solitaire written in javascript

Home Page: https://tripeaks.73k.us

JavaScript 63.97% HTML 31.35% SCSS 4.67%

tripeaks-solitaire-solver-js-73k's People

Contributors

apiontek avatar igniparoustempest avatar

Stargazers

 avatar  avatar

tripeaks-solitaire-solver-js-73k's Issues

7 doesnt clear 5

TH 6S JC 8C QH TC AC 2C 4H QC 7H KS 4S AD 9H 3S 3C QD 5S 5D 3H 5H AS 5C KC JH 3D AH 7D 9D 8D 8H 6D 4D 9S 8S 7S QS JS 6H KH KD 7C 2S TD TS 6C JD 4C 2H 2D 9C

apparently unsolvable, besides the point 7 can not and will not ever clear a 5

other than that sweet tool. thanks for your service good sir.

Incorrect starting move

Using input of 5H 9C JD QC 8D 2S 6H 7C 4S 8C KC KS 6S TC JH TS 4C AD 5D JC 9S KD 4H 7H 7D 5S 8H 9D QD JS 4D 2H QH TH QS AH KH 3D 3C 3S 3H AS AC 6D 2C 7S 5C 8S TD 2D 9H 6C, the first move in the solution states 'KD' to stock. The top stock card is a 6S and thus cannot remove the KD.

"Most moves found" for long-running solve can decrease

For the example long-running game, the "Most moves found" count quickly jumps to 46, but after running through something like over 1,000,000 possibilities it decreases to 43.

I hadn't noticed this before and now that I did, it bothers me.

Cause: The solver determines a "best moves" list by counting the number of actual cards cleared from the pyramid (move lines beginning with "Move"), but what it reports to the UI Web Worker is the total number of moves in the list, including Draws from stock. This means for a while the most cards cleared can be done in 46 moves, but after a while it finds that even more cards can be cleared in only 43 moves.

Fix: The fix will be to report the same number, the actual "Move" lines.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.