★ AMSTRAD CPC ★ GAMESLIST ★ BATTLESHIPS (POPULAR COMPUTING WEEKLY) (c) POPULAR COMPUTING WEEKLY ★ |
Popular Computing Weekly |
Batten down the hatches as you fight it out with your Amstrad CPC 464 in Battleships by Steve Lucas This is a computerised version of the familiar game of Battleships in which you and your opponent hide five ships on a nine by nine grid. Each location on the grid is given a co-ordinate name such as A4 (letter first) and you must take turns with your opponent (the computer) to fire torpedoes at your opponents grid. The winner is the one who sinks all their opponents ships first. When typing in this program, take care to distinguish between the variable 1 Cower case L) and the number 1. Program Notes The program makes use of many special commands available in Amstrad Basic. The While Wend loop could be replaced with either a Repeat Until loop or a conditional Goto. Note that the While Wend loop checks for the condition at the start of the loop, whereas a Repeat Until loop checks the condition at the end of the loop. Ink is used to select the four colours available in the palette for Mode 1, a 40 column mode. Paper and Pen choose foreground and background colours from the Inks available. The Amstrad interprets upper case and lower case variables as being identical Variables
Line No.
PopularComputingWeekly841115 |
|
|
Page créée en 044 millisecondes et consultée 2053 fois L'Amstrad CPC est une machine 8 bits à base d'un Z80 à 4MHz. Le premier de la gamme fut le CPC 464 en 1984, équipé d'un lecteur de cassettes intégré il se plaçait en concurrent du Commodore C64 beaucoup plus compliqué à utiliser et plus cher. Ce fut un réel succès et sorti cette même années le CPC 664 équipé d'un lecteur de disquettes trois pouces intégré. Sa vie fut de courte durée puisqu'en 1985 il fut remplacé par le CPC 6128 qui était plus compact, plus soigné et surtout qui avait 128Ko de RAM au lieu de 64Ko. |