Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/snelsi/poker
♠️ Poker Game
https://github.com/snelsi/poker
game hooks poker poker-game react styled-components typescript
Last synced: about 2 months ago
JSON representation
♠️ Poker Game
- Host: GitHub
- URL: https://github.com/snelsi/poker
- Owner: snelsi
- Created: 2020-07-04T07:51:51.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-06-08T11:33:27.000Z (over 3 years ago)
- Last Synced: 2023-03-04T02:19:21.907Z (almost 2 years ago)
- Topics: game, hooks, poker, poker-game, react, styled-components, typescript
- Language: TypeScript
- Homepage: https://poker.snelsi.now.sh/
- Size: 2.52 MB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![App shot](https://github.com/snelsi/poker/blob/master/public/shot.jpg)
# Poker Game
https://poker.snelsi.now.sh/
This is my technical assignment on the Middle Frontend developer offer on 'Poker' theme. Interpretation of the theme came out, maybe, not quite accurate, but whatever. In the end, I even overdid all tasks in it.
# Tasks:
1. Clicking the button should generate two random hands with cards in memory (console.log).
2. Clicking the button should render two random hands on the page as cards.
3. Determine the winning hand by its number of pairs, add class="winning" to hand.
4. Determine winning pairs and add class="pair0" (or "pair1" for 2nd pair) to cards.
5. [Extra Credit] Ensure that 90% of hands have at least one pairAll main logic is contained inside 'usePoker', 'useCombinations' and 'useRank' hooks.
Made with React/Typescript and Styled Components.This project is not optimized for mobile devices yet.
@ 2020