Giter VIP home page Giter VIP logo

solitaire's People

Contributors

adin234 avatar bensun13 avatar costava avatar stevesioli avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

solitaire's Issues

Initial build attempt fails

When npm run build-dev is ran for the first time, it fails because the prep folder does not exist.
The build succeeds when the command is run a second time.

Building should succeed the first time.

An init script could be made that must be run once after cloning the repo, or the build script could create prep if it does not exist.

Dragged cards do not move when mouse cursor is over buttons

When dragging a card and the mouse cursor is over the "Quit" or "New Game" buttons, the card does not move.
Dragging the cards around should be independent of the buttons.
Also, the button appears to get stuck in 'pressed' state until you hover it.

Force shuffled decks to be possible to win

The game would be more fun if it only generated shuffled decks that are possible to win.

The getShuffledDeck method of the Solitaire class is where shuffled decks are generated. Currently, decks are randomly shuffled. It is possible to create an impossible deck.

Any necessary random number generation should come from the existing pseudorandom number generator member srng.

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.