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
MBED | SD Card Reader | Amp | Speaker | Joystick | 5V Supply | ULCD |
---|---|---|---|---|---|---|
GND | GND | PWR - & IN- | GND | GND | GND | |
VOUT | VCC | VCC | ||||
VU | 5V | |||||
5 | DI | |||||
6 | D0 | |||||
7 | SCK | |||||
8 | CS | |||||
17 | HORZ | |||||
18 | IN+ | |||||
19 | VERT | |||||
20 | SEL | |||||
27 | TX | |||||
28 | RX | |||||
30 | RES | |||||
OUT - | - | |||||
OUT + | + | |||||
PWR+ | 5V |
Import programRushHourGame
Rush Hour board game on MBED for 4180 final project
Please log in to post comments.