mutantcamel
Experienced Member
- Joined
- Dec 14, 2007
- Messages
- 76
I'm trying to get this CC-40 program running, the original program is for TI99 Basic.
It's a simple Horse Racing game, where you choose one of 5 horses to bet on and the computer updates you with the race. The string values have been assigned as follows
190 A$(1)="RED RUM"
200 A$(2)="BLUE NUN
etc....
I get the first 2 parts to work, it prints they're off and then a random horse is printed with the line "it's....in the lead.", then that's it, the program just stops and doesn't print out the next bit.
The program part that doesn't work is as follows:
160 RFN=INT(RND*5+1)
410 PRINT “THEY’RE OFF!”: : : :
420 GOSUB 710
430 R=RFN
440 PRINT “IT’S “;A$(R);” IN THE LEAD.”::::
450 GOSUB 710
460 R1=RFN
470 IF R1=R THEN 460
480 PRINT “RUNNING NECK AND NECK IS “;A$(R1);” ::::
etc....
710 FOR K=1 TO 1000
720 NEXT K
730 RETURN
I'm really new to programming so any help would be great!
It's a simple Horse Racing game, where you choose one of 5 horses to bet on and the computer updates you with the race. The string values have been assigned as follows
190 A$(1)="RED RUM"
200 A$(2)="BLUE NUN
etc....
I get the first 2 parts to work, it prints they're off and then a random horse is printed with the line "it's....in the lead.", then that's it, the program just stops and doesn't print out the next bit.
The program part that doesn't work is as follows:
160 RFN=INT(RND*5+1)
410 PRINT “THEY’RE OFF!”: : : :
420 GOSUB 710
430 R=RFN
440 PRINT “IT’S “;A$(R);” IN THE LEAD.”::::
450 GOSUB 710
460 R1=RFN
470 IF R1=R THEN 460
480 PRINT “RUNNING NECK AND NECK IS “;A$(R1);” ::::
etc....
710 FOR K=1 TO 1000
720 NEXT K
730 RETURN
I'm really new to programming so any help would be great!