A simple race car game played in excel (VBA)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
CreateBoard.bas
GameControl.frm
GameControl.frx
Instruct.frm
Instruct.frx
LICENSE
README.md
racetrack.xlsm

README.md

RaceTrack

Code Review

A game created in response to a challenge on http://codereview.stackexchange.com/

Review of this game: http://codereview.stackexchange.com/q/100714/75587

Description of game:

In the game of Racetrack, cars race around a track bounded by two concentric closed loops drawn on a square grid

Each player has a car at an integer position (x,y) on the grid with a velocity vector (vx,vy) that starts at (0,0). Players take turns to move their cars. A move consists of:

  1. updating the velocity vector by adding −1, 0, or +1 to each component;

  2. moving the car to (x+vx,y+vy).