Simon Game is a web-based memory game where players must repeat a sequence of colors and sounds in the correct order. The game supports multiplayer functionality using WebSockets, allowing players to join or create rooms and compete in real-time.
- Multiplayer functionality with room-based game sessions.
- Real-time synchronization of game states between clients.
- Audio-visual feedback for game actions.
- Score tracking for each game session.
- HTML, CSS, and JavaScript for the frontend.
- jQuery for DOM manipulation.
- WebSocket for real-time communication.
- Node.js with Express for the backend server.
- Node.js installed on your machine.
- Clone the repository:
git clone https://github.com/your-username/simon-game.git
cd simon-game
- Install the necessary dependencies:
npm install
Start the server using the following command:
node server.js
The server will start running on http://localhost:8080
.
- Open your browser and navigate to
http://localhost:8080
. - You can create a new room or join an existing room to start playing the game.
server.js
: Backend server code handling WebSocket connections and game logic.index.html
: Main HTML file for the game interface.game.html
: HTML file for the game room interface.styles.css
: CSS file for styling the game.scripts1.js
: JavaScript file for the game logic.sounds/
: Directory containing sound files used in the game.
- Create Room: Click on "Create Room" to generate a new room code and start a new game session.
- Join Room: Enter an existing room code to join a game session.
- Play the Game: Watch the sequence of colors and repeat it by clicking the corresponding buttons. The sequence will get longer with each round.
- Game Over: If you click the wrong button, the game is over. Your score will be displayed.
Contributions are welcome! Please fork the repository and create a pull request with your changes.
For any inquiries, please contact [2004agarwalyash@gmail.com].
Enjoy playing the Simon Game!