A classic snake game with a twist – two players competing in the same arena!
Each player controls their own snake, aiming to collect as many apples 🍎 as possible while avoiding collisions with walls, themselves, or the opponent's snake.
- Two-player gameplay on the same computer
- Collect apples to increase your score
- Lose if you hit the walls, yourself, or the other snake
- Simple and minimalist design using Canvas
-
Player 1 (Green Snake)
- 🔼
Arrow Up- Move Up - 🔽
Arrow Down- Move Down ◀️ Arrow Left- Move Left▶️ Arrow Right- Move Right
- 🔼
-
Player 2 (Blue Snake)
- 🔼
W- Move Up - 🔽
S- Move Down ◀️ A- Move Left▶️ D- Move Right
- 🔼
-
The game ends when both players reach 3 losses.
- Make sure you have Node.js installed.
- Install dependencies:
npm install
- running:
npm start