Skip to content

Multiplayer Rock Paper Scissors game built using HTML, CSS, JavaScript, Node.js, Express, and Socket.io. It allows users to play, game against each other in real-time over the internet.

License

Notifications You must be signed in to change notification settings

Thiru-kumaran-R/Rock-Paper-Scissor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Two Player Rock-Paper-Scissors Game

This is a simple implementation of the classic rock-paper-scissors game for two players using WebSockets. Players can connect to the server and play against each other in real-time.

Features

  • Real-time gameplay using WebSockets.
  • Simple and intuitive user interface.
  • Support for two players to play against each other remotely.
  • Basic error handling and validation.

Technologies Used

  • HTML/CSS/JavaScript: Frontend user interface.
  • Node.js: Backend server.
  • WebSocket API: For real-time communication between clients and server.

Getting Started

To run this game locally, follow these steps:

  1. Clone this repository to your local machine.
  2. Navigate to the project directory in your terminal.
  3. Install dependencies by running npm install.
  4. Start the server by running node server.js.
  5. Open your web browser and navigate to http://localhost:3000.
  6. Share the link with another player to start playing!

How to Play

  1. Open the game URL in your browser.
  2. Share the URL with another player.
  3. Once both players are connected, they can start playing by choosing rock, paper, or scissors.
  4. The game will determine the winner based on the choices made by both players.
  5. Enjoy the game and have fun!

Demo

Login Page

App Screenshot

Game Area

App Screenshot

Waiting For Opponent's Choice

App Screenshot

Result Page

App Screenshot

Installation

To run this game locally follow these steps :

1 ) Clone this repository

  git clone https://github.com/Thiru-kumaran-R/Rock-Paper-Scissor.git

2 ) Navigate to the project directory:

 cd rock-paper-scissors

3 )Install dependencies:

 npm install

4 ) Start the server:

 npm start

5 ) Open your browser and visit http://localhost:3000 to play the game.

Contributing

Contributions are welcome! If you find any bugs or want to suggest improvements, feel free to open an issue or submit a pull request.

Acknowledgements

  • This project was inspired by the classic rock-paper-scissors game.

About

Multiplayer Rock Paper Scissors game built using HTML, CSS, JavaScript, Node.js, Express, and Socket.io. It allows users to play, game against each other in real-time over the internet.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published