Each quadrant is further divided into an 8-by-8 grid of "sectors". The number of stars, Klingons, and starbases in any one quadrant is set at the start of the game, but their exact position changes each time the player enters that quadrant. The player can view a text-based map of the current quadrant by issuing the short-range scan command. Stars, Klingon ships, starbases, and the Enterprise itself are shown as text-based figures in a square grid; the Enterprise, for example, is represented with -E-. The player can also use the long-range scan to print out a map of the quadrants lying directly around the Enterprise, with a list of the number of stars, Klingons, and starbases in each quadrant. The player moves between and within quadrants with the warp drive. Klingon ships can be attacked with either phasers or photon torpedoes. Phasers do not have to be aimed, but their power and therefore damage amount falls off with distance, and the player must select how much power to put into each shot. Torpedoes do not suffer this drop in power and will destroy a Klingon ship with a single hit, but have to be aimed using polar coordinates. Later versions of the game expanded on this combat system by adding features such as Klingon ships moving after each shot if not destroyed, enemy attacks damaging systems such as scanners or shields, stars absorbing torpedoes that hit them, and a calculator to help in determining the proper angle to fire the torpedoes. Combat is turn-based, and Klingon ships will fire back at the player in their turn. Movement, combat, and shields all drain the energy supply of the Enterprise, which can be restored by flying to a starbase. In some versions of the game, there are additional options for emergency situations, such as calling for help from a starbase, using the experimental Death Ray, loading raw dilithium crystals into the warp drive, or abandoning ship. Movement commands take up time depending on how far the player is moving. The game ends when the Enterprise is destroyed, all Klingons are destroyed, or the time limit runs out. A score in the form of a ranking is presented at the end of the game based on energy usage, damage taken and inflicted, and any remaining time. Development Star Trek In 1971, Mike Mayfield, then in his final year of high school, frequented a