Type Racer Game is a fun and interactive web-based typing game where players can test and improve their typing skills by racing against each other in real-time. The game is built using Express and Next.js with WebSockets for seamless communication between players.
-
Real-time Typing: Players can compete against each other in real-time, typing the displayed text as quickly and accurately as possible.
-
Leaderboard: The game keeps track of the fastest typists and displays a leaderboard with the top performers.
-
Randomized Text: Each typing challenge presents random sentences or paragraphs, making each race exciting and different.
-
Clone the repository
-
Navigate to the backend folder
-
Run
npm install
to install the backend modules -
Run
node index.js
in the terminal - this will start the backend server -
Navigate to the frontend/disp folder
-
Run
npm install
to install the frontend modules -
Run
npm run dev
in another terminal - this will start the frontend -
Open your web browser and go to
http://localhost:3000
to access the Type Racer Game.
-
Choose the mode which you want to play and then enter the details respectively.
-
If playing multiplayer then wait for other players to join the race.
-
Once all players are ready, the game will start, and a random text will appear on the screen.
-
Type the displayed text as quickly and accurately as possible.
-
The first player to complete the text wins the race, and their time will be recorded on the leaderboard.
-
Enjoy and improve your typing speed with each game!
-
Express: A minimal and flexible Node.js web application framework.
-
Next.js: A React framework for building server-side rendered applications.
-
Socket.IO: Used for real-time communication between players during the typing race.