Developer Documentation: StopThiefDataTest


Overview

Stop Thief! is an out-of-print board game by Parker Brothers released in the late 1970s. The game relies on a hand-held electronic device (see Fig. 1) that acts as the thief, using sounds and numbers corresponding to board spaces to give clues to players as to where the thief is on the board (see Fig. 2). Players use these clues to track the thief, and use their corresponding token and dice to advance to the perceived thief location to "arrest" the thief. If the electronic hand-held "Electronic Crime Scanner" breaks, the game is effectively unplayable. This iOS app simulates the logic of the Crime Scanner and modernizes it for today's mobile Apple devices.

Electronic Crime Scanner
Fig. 1. Electronic Crime Scanner
Gameboard showing street and building
Fig. 2. Part of gameboard showing Antiques building (building 3) and the street; the thief can be on any numbered board space; potential crime scenes are red board spaces

The StopThiefDataTest is a proof of concept Swift/Xcode project that hosts and validates the thief logic for the app.

Source code can be found on Github


Classes, Structures and Enums Overview

BuildingStreet
LocationType
Location
GreaterOrLessThan
GameState
ViewController