Skip to content

Zach10za/VideoPoker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


videopoker

Try it out at videopoker.zachloza.com




How to play

The goal of the game is simple: score as many points as possible. To score points you must create poker hands. To start, press Deal to draw 5 cards from a new deck. Once you have 5 cards, you may choose to discard 0 to 5 of them. To discard just select all the cards you do not want and then hit Go.

You will then draw cards until you're back to 5. Based on a set few poker hands, you will recieved betwen 100 and 1000 points.

Hand Points
4 of a Kind 1000
Full House 800
Flush 700
Straight 500
3 of a Kind 300
Two Pair 200
Pair 100

Getting Started

Installing

This project has a number of dependencies. Naviagate to the project directory and run

npm install

File Structure

├── public                    # Compiled files (alternatively `dist`)
├── src                       # Source files
│   ├── assets                # Static resources such as images
│   │   └── cards             # SVG files for all 52 playing cards
│   ├── components            # React components
│   ├── redux                 # Redux related functions (store, actions, reducers)
│   │   └── reducers          # Redux reducers
│   ├── stylesheets           # Scss files
│   └── utils                 # Utility functions
├── sw-precache-config.js      # Service worker cache configuration
└── README.md

Running Tests

Testing is all done with Jest. To run test navigate to the project directory and run the command

npm test

This launches an interactive test runner.

Using Sass

This project uses sass. To compile the scss files, run the command

npm run build-css

To watch scss files and compile them on save, run

npm run watch-css

Deployment

To build this project, run the command

npm run build

This builds the app for production to the build folder. It correctly bundles React in production mode and optimizes the build for the best performance.

Built With

  • React - Library used for user interface
  • Redux - State control

About

Video Poker Coding Challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published