Skip to content

Javascript Poker created during the PAI course at ULL

Notifications You must be signed in to change notification settings

troppes/javascript-poker

Repository files navigation

Poker

How to play

To play it is best to use the normal Version without a canvas. There first player one deals. And hides them. The same goes for player two. After both players have their cards, they can talk an bet. To hold a card click on it and then Change Cards to exchange them.

To reveal the winner use the who won? - button.

Player

The top player is called Player1 and the bottom Player is Player2.

Tie-Braker

For all Pairs/Triple, the one with the highest Pair wins. If both have the same pair, the game it defaults to draw.

For all other cases the high card rule is used as tie breaker.

History

This program was created during a course at the ULL. The original task can be found in p13_poker.md

Tests

For all classes there are unit tests. They can be found in the test folder. To execute them use npm run test. That runs the tests and creates a coverage report.

Documentation

For the documentation use npm jsdoc.

Online version

The deployed version can be found here: https://troppes.github.io/javascript-poker/

About

Javascript Poker created during the PAI course at ULL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published