Skip to content
No description, website, or topics provided.
JavaScript CSS HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Race Game

This is the product of one of the many homework assignments from the Web Development Immersive program at General Assembly. We were to create a game for two players using HTML, CSS, and Javascript. One must press A and the other must press L to race their circle across the screen. The first one to reach the end of the track wins.


  • HTML
  • CSS
  • JavaScript (jQuery)

Requirements from the assignment

  • The game should have two pages: a landing page and a game page
  • The landing page should have a "start" button that begins the game.
  • At the beginning of the game, something runs across that the 'racers' have to chase.
  • Your game should have two 'racers' that race across the screen when the right arrow key and 'z' are pressed.


  • Score each game based on the time it took to complete and by how much time they beat the opposing player
  • Display the time it took for the player to complete the race
  • Make a 'Best of 3' tournament and display the winner of the tournament
  • Keep track of best times/ high scores across page refreshes using localStorage
  • Add animations
  • Have players do something other than simply pressing a key to move their player, for example, make them type words, or solve simple math problems
You can’t perform that action at this time.