These are projects posted by the students of Dr. Gove Allen at Brigham Young University. These students have taken one semester-long course on VBA and generally have had no prior programming experience

Saturday, April 9, 2011

Traffic Jam

For my project I created a Traffic Jam game in Excel. The Traffic Jam game is a six by six grid with cars placed horizontally or vertically on it. The cars are constrained to move only left and right or up and down, depending on their orientation. The goal is to move a car, typically red, out of the grid. The difficulty is arranging the cars to clear a path.

I became fascinated with the game for its simplicity and complexity. On the gird there are only 36 tiles, but some games require over 20 moves to free the red car. This project is largely a continuation of my fascination with the game.