Rush Hour Game

Overview

This project uses an sd card reader, a speaker, an amplifier, a 5 direction analog joystick, and a uLCD display to implement the Rush Hour board game on the MBED. The user uses the joystick to select different blocks of cars/trucks to move out of the way of the main car that must reach the exit gate.

Gameplay

To win, the user must move the red 2x1 car to the exit gate on the edge of the 6x6 grid. In its way will be a series of cars and trucks that must be moved in the right order to properly open up the way for the main car. All vehicles in the game can only be moved backward and forward, and the vehicles may not move through each other.

Currently, there are 3 different levels in the game with different difficulties, but the vehicles were turned into objects, so additional levels can be made very easily.

Components

  • Mbed Microcontroller
  • SD Card Reader
  • Speaker
  • Class D Audio Amp
  • 5 Direction Analog Joystick
  • External 5 Volt power supply
  • uLCD-1.44" LCD Display

Pinout

MBEDSD Card ReaderAmpSpeakerJoystick5V SupplyULCD
GNDGNDPWR - & IN-GNDGNDGND
VOUTVCCVCC
VU5V
5DI
6D0
7SCK
8CS
17HORZ
18IN+
19VERT
20SEL
27TX
28RX
30RES
OUT --
OUT ++
PWR+5V

Import programRushHourGame

Rush Hour board game on MBED for 4180 final project


Please log in to post comments.