★ AMSTRAD CPC ★ GAMESLIST ★ BATTLESHIPS (POPULAR COMPUTING WEEKLY) (c) POPULAR COMPUTING WEEKLY ★

Popular Computing Weekly
★ Ce texte vous est présenté dans sa version originale ★ 
 ★ This text is presented to you in its original version ★ 
 ★ Este texto se presenta en su versión original ★ 
 ★ Dieser Text wird in seiner Originalfassung präsentiert ★ 

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.
I decided to make the computer play a rather dumb game so as to give you (the player) a chance of winning! You could make the game more difficult by altering the routine which searches for your ships (Lines 1980-2150).

Program Notes
Conversion

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.
Lower$ converts a variable to lower case, while Upper$ converts a stnng to upper case.
Locate X, Y moves the text cursor to position X, Y. This is equivalent to Print Tab (X, Y) on the BBC. Print At on the Spectrum and Plot x, y, AS on the Oric.

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

  • cc holds computer score
  • yc holds your score
  • a$(x,y) holds your board
  • b$(x,y) holds computer's board
  • c$(x) holds names of ships
  • d$(x) holds mput co-ordinates
  • xl,yl,x,y hold co-ordinates
  • l,p, hold length of ships

Line No.

  • 10-50 selects mode/colours
  • 60 titles/instructions
  • 70-170 dim arrays'reads ships
  • 180-320 draws board
  • 330-470 program control
  • 490-610 instructions
  • 620-1000 sets up computer's board
  • 1010-1070 checks array
  • 1080-1120 fills array
  • 1130-1480 sets up your board
  • 1510-2150 fires torpedoes

PopularComputingWeekly841115

BATTLESHIPS (POPULAR COMPUTING WEEKLY)
(c) POPULAR COMPUTING WEEKLY

AUTHOR: Steve W. Lucas

★ YEAR: 1984
★ LANGUAGE:
★ GENRE: INGAME MODE 1 , BOARD , MULTIPLAYER , BATTLESHIP , BASIC
★ LiCENCE: LISTING

 

★ AMSTRAD CPC ★ DOWNLOAD ★

Type-in/Listing:
» Battleships    (Popular  Computing  Weekly)    ENGLISHDATE: 2018-08-29
DL: 290
TYPE: ZIP
SiZE: 7Ko
NOTE: Uploaded by CPCLOV ; 40 Cyls
.HFE: Χ

Dump cassette (originale):
» Battleships    (Popular  Computing  Weekly)    ENGLISHDATE: 2018-11-29
DL: 185
TYPE: ZIP
SiZE: 5Ko
NOTE:

Je participe au site:
» Vous avez des infos personnel, des fichiers que nous ne possédons pas concernent ce jeu ?
» Vous avez remarqué une erreur dans ce texte ?
» Aidez-nous à améliorer cette page : en nous contactant via le forum ou par email.

CPCrulez[Content Management System] v8.7-desktop/c
Page créée en 007 millisecondes et consultée 2078 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.