Game of KOBO in digital version built with React.js! Currently work in progress. You can check out the demo here. This version of KOBO is a two player game. It's the digital implementation of my favourite card game and is a fun and effective way of practicing my React.js skills. The game goes like that: each player takes turn and tries to lower the sum of their points as much as possible. The player with the lowest count wins!
To run the app on your local device:
- Clone this repository
git clone https://github.com/sabinarusielik/kobo-game-react.git
- Install packages with:
npm install
- Start the development server with:
npm run start
- JavaScript
- React.js
- PropTypes
- Sass
- NPM
- ESLint
- Prettier
- Each player gets 4 cards but can only flip and see 2 of them at the beginning of the game. You can't peek into your opponent's cards.
- Players take turns and draw one card from the remaining deck or from the rejected cards deck (which are facing up). Player decides if they want to replace one of their cards with the new one or get rid of it.
- When player gets rid of a card they do it so that the opponent can also see what card it was. No matter if the rejected card was the replaced one or the newly drawn one.
- The goal of the game is to have the lowest possible sum of card values. If you're feeling confident in your score simply click KOBO button. Your opponent makes their last turn and you both reveal your counts to each other. One with the lowest sum wins!
Going up from Ace through 2 to 10 ending at Jack, Queen and King the values consecutively go from 1 to 13. There is an exception though: both red Kings' values are 0.
Here are some things I'm still working on and planning on implementing in future:
- Rejecting cards with the same values
- Saving unfinished games and players' names to local storage
- Mobile version
- Unit tests
- Maybe?: online 2 device game
You can contact me on LinkedIn or via mail - sabinarusielik@gmail.com
Enjoy the game!