15 Puzzle is a game where user moves tiles to rearrange them in a particular order.
This game is programmed in C Programming language, and operates on DE1-SOC computer and ARM processor.
- Go to CPULator
- Select C as the Programming Language
- Copy all the codes in 15-puzzle-game.c and paste them into the editor
- Compile and Load (F5), then press Continue (F3)
- VGA: 8 tiles numbered 1-8 will be displayed in a 3x3 block in random order
- Hex: the timer value is displayed on hex, counting up (time limit is 3 minutes)
-
Type PS2 keyboard Right Arrow or Left Arrow to select the tile you want to move.
-
Right Arrow selects clockwise, Left Arrow selects counterclockwise
-
The selected tile is indicated with a thick black frame
-
Type PS2 Enter key to move the tile
-
Selected tile slides to the empty spot
-
Repeat until the tiles are sorted in ascending order (shown below)
1 2 3 4 5 6 7 8
-
If user is able to arrange the tiles within the time limit, “You Win” appears on VGA
-
If time limit is exceeded, “You Lose” appears on VGA
-
Type PS2 Backspace key is used to restart the game (after a game ends) or shuffle the tile arran
Name | Work Done | Relative % Work Done |
---|---|---|
Ruqhia |
|
50 |
Nancy |
|
50 |