This project is a playable version of the card game, Durak ('fool' in Russian).
The game can be played with up to 5 people, with a deck of 36 cards (6 through Ace, Ace high).
See the wikipedia page for more information.
- Make sure that you have Node.JS Installed
- I recommend using NVM (Node Version Manager) then using that to install Node on a per project basis. The windows version can be found here: https://github.com/coreybutler/nvm-windows
- Run
npm install
in the terminal, this will install all of the packages needed to run the project (and all of their dependencies)
- You should have completed the dev setup (install Node and all dependencies)
- run
npm start
to run the application
- Install Node
- Run the following commands in the project directory:
npm install npm start
Tests are stored in test/
, named after the files they are testing, ending in test.ts
.
-
To run the tests once use:
npm test
-
However, you usually want to watch the files while working. You can use:
npm run test:watch
to re-run the tests every time you make changes.