💻 PROJECT CODE ⭐⭐⭐
💻 PROJECT NAME ⭐⭐⭐
21 Lucky Game is a real time full stack single player game. This game is build with the help of MERN Stack, also incorporating dynamic animation to create an immersive gaming experience.
-
The objective of the game is to get a set of cards in which the sum must be 21. Or you can get as close as possible without bursting if you go over 21, you lose, if the dealer has 21 or less and you have less points than the dealer, you lose.
-
The repo includes both client-side and server-side.
- Clone this repository.
- Open the terminal and navigate to the folder.
- Run the following command to install dependencies:
npm install
- Run the following command to run the game:
npm run dev
- Enjoy!
-
HTML5
CSS3
JavaScript
ReactJS
TypeScript
-
NodeJS
ExpressJS
MongoDB
-
Chakra UI
CSS-Animations
-
cyclic
-
vercel
Serial No | Feature |
---|---|
1 | User signup, User Login |
2 | Able to play the game |
3 | Able to see the score |
4 | Dynamic Leaderboard |
Serial No | Backend | Frontend |
---|---|---|
1 | bcrypt | chakra-ui |
2 | mongoose | react-router-dom |
3 | cors | react-icons |
4 | dotenv | axios |
5 | express | typescript |
6 | jsonwebtoken | react-simple-chatbot |
graph TD;
App-->homePage
homePage-->registerPage;
homePage-->loginPage;
registerPage-->gamePage;
loginPage-->gamePage;
gamePage-->resultPage
resultPage-->gamePage
resultPage-->leaderboardPage
leaderboardPage-->homePage
Creators | Github | Portfolio | |
---|---|---|---|
Pallavi Jain | |||
Avinash kumar | |||
Raj Kumar Sahu |
- Home page includes the title of the game (21 Lucky Game) along with the feature to register a new user or to login an existing user, connected with the backend. After the login or registration is successfull, the player will be able to select a theme based on his/her choice and get notified with the help of a 'toast', and will be directly navigated to the 'Gaming Page'.
- HOW TO PLAY :
- The objective of the game is to get a set of cards in which the sum must be 21. Or you can get as close as possible without bursting if you go over 21, you lose, if the dealer has 21 or less and you have less points than the dealer, you lose.
- The numbered cards correspond to their respective value, the cards with letters, the situation changes a little, J, Q and K cards are worth 10 points. But "A" card has a value of 1.
- When you start the game, you will decide if you want more cards, or if you want to keep the amount you received, if you want to take more cards, it may happen that you exceed the score of 21, if that happens you will lose because the dealer will not ask for cards. But, if you still haven't exceeded, a timer will appear for you to play in up to 6 seconds, if you don't do anything, you will lose your turn (stay).
- After the game ends the scores will be shown on this page.
- The ranking of all the players registered with us will be shown here with their all time scores and level they have crossed.