home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Kids Cube
/
6_Math.iso
/
roo
/
game.rod
< prev
next >
Wrap
Text File
|
1992-01-21
|
3KB
|
164 lines
.DEMO
@@@@@
ET
TB
F3
RT
RT
DN
DN
DN
DN
DN
DN
ET
TB
+This demo describes the game mode of the Roo environment. Press any key.
$
+Press a key every time you have read a message in this line.
$
+The condition of a game: We are given pictures drawn by an invisible program.
$
+We have to create a program drawing the same pictures.
$
+THE MAIN IDEA: Every concept may be taught by using a series of games.
$
+The following game shows the concept of a program.
$
+This particular game is very easy. Even 4-5 years old kids may play it.
$
^T
BS BS BS BS BS BS BS BS BS BS
:linear
ET
Y
+The pattern program has been loaded into the "black box".
$
+The number of hearts reflects the level of complexity of the game.
$
+You are being given the condition of the game, that is the initial positions...
$
+...and the corresponding pictures. The red arrow shows the initial position.
$
+Press F1 to look at the resulting picture.
$
F1
+The condition of game is given. It is easy to tell that...
$
+...the pattern program consists of 4 commands: TURN, TURN, HOP, STEP.
$
+So here is the program:
$
+
#
RT
DN
DN
F3
F3
F1
F2
+Is it a solution? You may check it. Press TAB to switch the F-keys line.
$
TB
+Press F6 and then F2 to find if this solution is correct.
$
F6
$
A F6 F2$
#
+OK, this game was too easy. The next one will be more complicated.
$
+It was solved by 9 years old kids at the second lesson devoted to branchings.
$
^T
BS BS BS BS BS BS BS BS BS
:branch
ET
Y
+The purpose of this game is to show the concept of a branching.
$
+There are two initial positions (the first one you may see now) and...
$
+...two pictures. One has to create a program which will draw...
$
+...the first (the second) picture starting at the first (the second) position.
$
+Press F1 to see the first picture.
$
F1
+Now press F1 twice to see the next initial position and the next picture.
$
F1
$
F1
+The condition of the problem is given. Let us try to solve it.
$
#
+Suppose we are not so smart as those 9 years old guys and made a wrong program.
$
UP UP UP UP UP UP UP
^Y ^Y ^Y ^Y ^Y ^Y ^Y
:if Roo can move forward then\
:turn\
:turn\
:turn\
:hop\
:step\
:turn\
:step\
:step\
:turn\
:step\
:otherwise\
:turn\
:step\
:step\
:the end of branching\
+Let us try this program. Put Roo at the first initial position.
$
+For this purpose we have to recall the condition of the game. Press F6 and F1.
$
F6
$
A F6 F1
+This is the first initial position. We do not need a result now, so press ESC.
$
#
+Now press F1 to carry out our program.
$
F1
+Yes, it is not a square. Thus there is a bug in our program. Where is it?
$
+There are two possibilities to get a hint.
$
+First, you may look how the "pattern" program works. Just press F6 and then F3.
$
F6
$
A F6 F3$
+...and from the other position.
$
F1
#
+This hint "costs" one heart.
$
+Another possibility is to compare our program with the pattern one.
$
+In order to compare press F6 and then F4.
$
F6
+You will see the "pattern" Roo in the left pen and our Roo in the right one.
F6
$
A F6 F4$
+Each comparison "costs" two hearts.
$
#
+You may solve the problem yourself now. Good bye.
$
-
%