Inspiration

We like to play games; and since we were also taking cloud computing this semester, we were particularly interested in learning to deploy a server that serves a game of snake for 2 players.

What it does

  • On deployment, the server awaits for 2 players to join the game
  • Once 2 players join, they get placed on a game board and play against each other!

How we built it

  • Node.js, Express.js, EJS
  • Deployed with UpCloud

Challenges we ran into

  • Designing and implementing a system for more than one player was something we had never tried. This includes Lobbying, starting a game, and updating content for both players as the game goes.

Accomplishments that we're proud of

  • Managed to make this in one day
  • Set up a connection of 2 clients to a server with socket.io
  • Got to cover most base cases of a game of snake: snake bumping into wall/another snake

What's next for Two Player Snake Game

  • Make the GUI look more colorful and add animations
  • Make the game scalable with more players
Share this project:

Updates