childhood games
1984-2008 Eugenio Tisselli

horse races

Choose your horse, put the money on the table and ride faster than everyone else across the finish line. Originally just a betting game, "horse races" is now also filled with keyboard-banging action.

Instructions

1. Choose a horse by typing its name and press Enter.
2. Type the amount of money you want to bet, press Enter.
3. Ride your horse using the space bar. Warning: You must be very fast to win. Don't trash your keyboard! Especially if you are playing on a laptop... ;)
4. The races will be over when you loose all your money.
If the keyboard is not responding, click on the game to activate it.

Play "Horse Races"

I remember writing "horse races" in the waiting room of a doctor's office. Surely, the wait was a long one... This is then only game I can associate to a more or less specific time and place. Besides, it is the first one on my notebook.

Original code

Transcription

0 DI=10000
1 ?"[clr][5xDown][5xRight]CARRERAS[Down]DE[Down]CABALLOS"
2 ?"COMPETIDORES:"
3 ?"STAR"
4 ?"OGREN"
5 ?"SUPERMAN"
6 ?"SIETE"
7 PRINT:INPUT"A QUE CABALLO APUESTAS";A$
8 INPUT"CUANTO";A
9 ?"[clr]":POKE 53281,5
10 B=1104:C=1264:D=1424:E=1584:F=1124:G=1284:H=1444:I=1604
11 PRINT:PRINT:PRINT:?"[20x _ ]"
12 PRINT:PRINT:PRINT:?"[20x _ ]"
13 PRINT:PRINT:PRINT:?"[20x _ ]"
14 PRINT:PRINT:PRINT:?"[20x _ ]"
15 POKEB,94:POKEB+54272,0
16 POKEC,94:POKEC+54272,0
17 POKED,94:POKED+54272,0
18 POKEE,94:POKEE+54272,0
19 W=INT(RND(1)*3)
20 X=INT(RND(1)*3)
21 Y=INT(RND(1)*3)
22 Z=INT(RND(1)*3)
23 POKEB,32:B=B+W
24 POKEC,32:C=C+X
25 POKED,32:D=D+Y
26 POKEE,32:E=E+Z
27 IF B>=F THEN F$="STAR":GOTO 32
28 IF C>=G THEN F$="OGREN":GOTO 32
29 IF D>=H THEN F$="SUPERMAN":GOTO 32
30 IF E>=I THEN F$="SIETE":GOTO 32
31 GOTO 15
32 FOR G=1 TO 5000:NEXT
33 ?"[clr]"
34 ?"EL GANADOR:";F$
35 IF F$=A$ THEN 39
36 ?"HAS PERDIDO : $";A
37 ?"TIENES ";DI-A:LET DI=DI-A:IF DI<=0 THEN END
38 FOR H=1 TO 9000:NEXT:GOTO 1
39 ?"HAS GANADO!"
40 ?"TIENES ";DI+A:LET DI=DI+A:GOTO 38

Comments

* The game works fine just as it is, I didn't find any technical problems in the code.

* In the original version, players could only bet their money on a horse, and then simply watch it run without having the possibility of intervening. Winning or loosing was an entirely random thing. I decided to make a radical change in the new version, by letting the player also be the rider.

New Processing code (download)

<<< back