★ AMSTRAD CPC ★ GAMESLIST ★ THE CUBE (c) COMPUTER GAMER ★

COMPUTER GAMER
★ 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 ★ 

A few years ago there was a craze about fiddling with small multi coloured cubes, you may have thankfully forgotten the escapade – but not Computer Gamer.
In an opulent fit of nostalgia, Computer Gamer presents the computer simulation of this hideous torture.

The Cube

This is a computer simulation of the famous cube puzzle. The cube is made up of 27 smaller cubes. The aim of the puzzle Is to twist the small cubes around, 9 at a time, to end up with each face of the large cube coloured (completely) a different colour.

The game is best on a colour monitor or colour television with a modulator, because you need to recognise the colours.

You are shown a view of the cube which allows you to see three faces. You are also shown the view of the cube as it would look from the rear if you were holding the cube. (Not the view you would see through the cube if it was transparent).

Even experts on the cube may find this a difficult challenge.

To start with, you see the cube solved, There are letters around the sides to show the options for twisting the cube. Capitals twist it one way, small letters the other.

You have an option to start with of setting up a puzzle yourself, or getting the computer to set a random puzzle. In either case, you decide how many twists are to be made to reach the start position (up to 50 twists).

Next you go to the solve stage. You can either ask the computer to solve it or try yourself.

If you try yourself, the computer will allow you up to 100 turns. The computer recognizes a solution when it sees one and will congratulate you if you succeed. While trying to solve the puzzle, you have the option to quit or reset the cube. The latter option resets the cube as it was when you started so that you can either try again or get the computer to solve it

The Program

The program works by rotating the elements in the array fa( ) in different ways. The array pl( ) is a fixed array which keeps a record of the locations where elements of the cube are to be printed The array fa( ) matches this to the colours to be used.

The array rec() keeps a record of the reverse of each move used to set up a position or move made by the player.

Extensive error-trapping has been used on player input sections.

The longest section of the program is that updating the changes to the array fa() and printing the section of the cube that have changed as the result of a twist. When I first wrote the program this section was far shorter because I pictured the whole cube afresh after each change. But this proved to be too slow in practice.

COMPUTER GAMER #15

THE CUBE
(c) COMPUTER GAMER

AUTHOR: DAVID MUIR

★ YEAR: 1986
★ LANGUAGE:
★ GENRE: BASIC
★ LiCENCE: LISTING

★ AMSTRAD CPC ★ DOWNLOAD ★

Aucun fichier de disponible:
» Vous avez des fichiers que nous ne possédons pas concernent cette page ?
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 326 millisecondes et consultée 1270 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.