Description: In the game, there are two moving objects on a game board, a thief and a police.
The thief is controlled by the computer and moves around in the game board randomly.
The user (i.e., the player) moves the police left, down, right and up by pressing ‘A’, ‘S’, ‘D’ and ‘W’ respectively, so as to catch the thief.
When the police successfully arrested the thief, i.e., came to the same location as the thief, the player won the game. Your program should then display a “congratulation message” and the number of moves the player took to arrest the thief.
-In the game, there are two moving objects on a game board, a thief and a police.
The thief is controlled by the computer and moves around in the game board randomly.
The user (i.e., the player) moves the police left, down, right and up by pressing ‘A’, ‘S’, ‘D’ and ‘W’ respectively, so as to catch the thief.
When the police successfully arrested the thief, i.e., came to the same location as the thief, the player won the game. Your program should then display a “congratulation message” and the number of moves the player took to arrest the thief.
Platform: |
Size: 1638400 |
Author:潘家能 |
Hits:
Description: Design a 2x16 LCD moving message display. If RA0 = 0 then a message (for example,
“TESTING LCD” moves from left to right, otherwise (RA0=1) this message moves from
right to left. Platform: |
Size: 73728 |
Author:dolly chan |
Hits: