Cops and Robbers

A comic-style illustration of a robber in a striped shirt running past green bushes, leaving behind a sack of money and scattered banknotes.
Operating System:
Commodore 64
Category:
Game
Genre:
Detective, Logic, Strategy
Sources:
Science in Action - Computer Games
Date Added:
3 May 2026
DownloadBack to Results

You are a detective hunting down a bank robber on the run and trying to recover the money he stole. At the start of the game, the computer displays a forest surrounded by a hedge. The robber has just entered the forest from the West (left-hand side). As he blunders about among the trees, he leaves a trail of footprints and scattered banknotes. After a while, the robber may drop the bag of money in the hope of throwing you off his trail.

You will have to wait a few seconds while the computer gives the robber a ten-move start. Then begin tracking him by keying in the direction (N, E, S, W) you want to go, followed by a number for the distance you wish to move. After each move, any clues you find about the robber’s trail will be shown on the screen:

N, S etc = footprints going North, South etc

X = confused footprints going in several directions

£ = scattered banknotes

+ = shows that the robber no longer has the money

* = the stolen money

R = the robber

If the robber reaches the East (right) side of the hedge, he may escape from the woods and get away.

The game continues until both the robber (R) and the money (*) have been found. The object is to find both of them in as few moves as possible.

PROGRAM NOTES

Lines 100-260: Assign initial values to the variables and display your starting position in the wood.

Lines 270-330: Input your move and calculate your new position.

Lines 340-410: Decide whether you have found the robber or the money, then display your new position.

Line 420: Moves the robber, if necessary, using the subroutine at line 600.

Line 430: Jumps to line 270 for a new input if the game is not over.

Lines 440-500: Display the outcome of the game and the robber’s route.

Lines 600-740: Move the robber in a randomly selected direction.

Lines 750-800: Determine whether or not the robber has the money.

Download
5 1 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
0
Would love your thoughts, please comment.x
()
x