Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed bug that didint allow American Football to be played

  • Loading branch information...
commit 8532f1ad56e3baaf4e5def1d14a20d4c1a270645 1 parent 1b0cb00
Usmar A Padow authored
View
360 BASIC_examples/AmericanFootball.BAS
@@ -5,182 +5,198 @@
5 PRINT "YOU LOST TOSS"
6 REM when O is 1 player is on the offence 0 is on deffence
7 O=0
-8 GOTO 57
+8 GOTO 58
9 REM wintoss:
10 PRINT "YOU WON TOSS"
11 PRINT "[ENTER] TO CONTINUE"
12 INPUT Q
13 REM when O is 1 player is on the offence 0 is on deffence
14 O=1
-15 GOTO 57
+15 GOTO 58
16 REM menu:
-17 L=T
-18 T=L+1
-19 REM success downs in one game
-20 IF T=120 THEN 176
-21 REM info:
-22 PRINT "Score,YOU,COMP:"
-23 PRINT A
-24 PRINT B
-25 PRINT "[ENTER] TO CONTINUE"
-26 INPUT Q
-27 PRINT "Down,Yard"
-28 PRINT D
-29 PRINT E
-30 PRINT "[ENTER] TO CONTINUE"
-31 INPUT Q
-32 PRINT "1stDn,Turn of 120"
-33 C=F-E
-34 PRINT C
-35 PRINT T
-36 PRINT "[ENTER] TO CONTINUE"
-37 INPUT Q
-38 IF O=0 THEN 159
-39 PTINT "1)LONG PASS 3)RUN"
-40 PTINT "2)SHORTPASS 4)PUNT"
-41 PTINT "5)FIELD GOAL6)INFO"
-42 INPUT Q
-43 X=1
-44 Y=100+1
-45 N=RND
-46 IF Q=1 THEN 69
-47 IF Q=2 THEN 73
-48 IF Q=3 THEN 79
-49 IF Q=4 THEN 83
-50 IF Q=5 THEN 93
-51 IF Q=6 THEN 21
-52 PRINT "INCORRECT INPUT"
-53 PRINT "MUST INPUT 1 TO 6"
-54 PRINT "[ENTER] TO CONTINUE"
-55 INPUT Q
-56 GOTO 16
-57 REM kickoff:
-58 PRINT "KICKOFF"
-59 PRINT "[ENTER] TO CONTINUE"
-60 INPUT Q
-61 REM E is for Yard, start the down with a distance from 1 to 30
-62 Y=1
-63 X=30+1
-64 E=RND
-65 F=E+10
-66 REM D is for Down
-67 D=1
-68 GOTO 16
-69 REM longpass:
-70 PRINT "LONG PASS"
-71 IF N<10 THEN 120
-72 GOTO 112
-73 REM shortpass:
-74 PRINT "SHORT PASS"
-75 X=1
-76 Y=50+1
-77 IF N<25 THEN 120
-78 GOTO 112
-79 REM run:
-80 PRINT "RUN"
-81 IF N<50 THEN 120
-82 GOTO 112
-83 REM punt:
-84 REM I dont know how 83 works
-85 PRINT "PUNT"
-86 Y=1
-87 X=50+1
-88 E=RND
-89 F=E+10
-90 REM D is for Down
-91 D=1
-92 GOTO 137
-93 REM fieldgoal:
-94 PRINT "FIELD GOAL"
-95 REM I gotta ask if this is corrrect, I think it it wrong
-96 X=1
-97 Y=100+1
-98 N=RND
-99 IF N<50 THEN 102
-100 PRINT "FAILED"
-101 GOTO 137
-102 REM fielgoal120:
-103 PRINT "SUCCEDED"
-104 IF O=1 THEN 108
-105 L=B
-106 B=L+2
-107 GOTO 137
-108 REM add2pointsplayer:
-109 L=A
-110 A=L+2
-111 GOTO 137
-112 REM f159l:
-113 PRINT "FAILED"
-114 PRINT "[ENTER] TO CONTINUE"
-115 INPUT Q
-116 REM L is a temporary variable cause D=D+1 doesnt seem to work
-117 L=D
-118 D=L+1
-119 GOTO 16
-120 REM success:
-121 PRINT "SUCCEDED"
-122 PRINT "[ENTER] TO CONTINUE"
-123 INPUT Q
-124 N=RND
-125 REM P is previous line of scrimmage
-126 P=E
-127 L=E
-128 E=L+N
-129 IF E>99 THEN 148
-130 N=F+10
-131 IF E>N THEN 144
-132 REM L is a temporary variable cause D=D+1 doesnt seem to work
-133 L=D
-134 D=L+1
-135 IF D>4 THEN 137
-136 GOTO 16
-137 REM ballchangesides:
-138 IF O=1 THEN 141
-139 O=1
-140 GOTO 57
-141 REM setdeffence:
-142 O=0
-143 GOTO 57
-144 REM downone:
-145 D=1
-146 F=E+10
-147 GOTO 16
-148 REM touchdown:
-149 PRINT "TOUCHDOWN!"
-150 REM add extra point
-151 IF O=1 THEN 155
-152 L=B
-153 B=L+6
-154 GOTO 137
-155 REM add6pointsplayer:
-156 L=A
-157 A=L+6
-158 GOTO 137
-159 REM ai:
-160 REM ask my father how the computer should play
-161 PRINT "COMPUTER MOVE"
-162 IF D<4 THEN 165
-163 IF E>80 THEN 93
-164 IF E<60 THEN 83
-165 REM notfourth:
-166 X=1
-167 Y=3
-168 N=RND
-169 IF E<50 THEN 171
-170 IF N=2 THEN 73
-171 REM noshotrpass:
-172 IF D<3 THEN 79
-173 IF N=1 THEN 69
-174 IF N=2 THEN 69
-175 IF N=3 THEN 79
-176 REM gameover:
-177 PRINT "GameOver,YOU,COMP:"
-178 PRINT A
-179 PRINT B
-180 PRINT "[ENTER] TO CONTINUE"
-181 INPUT Q
-182 IF A>B THEN 185
-183 PRINT "COMPUTER WINS"
-184 END
-185 REM wingame:
-186 PRINT "YOU WIN"
+17 IF D=5 THEN 142
+18 L=T
+19 T=L+1
+20 REM 120 downs in one game
+21 IF T=120 THEN 192
+22 REM info:
+23 PRINT "Score,YOU,COMP:"
+24 PRINT A
+25 PRINT B
+26 PRINT "[ENTER] TO CONTINUE"
+27 INPUT Q
+28 PRINT "Down,Yard"
+29 PRINT D
+30 PRINT E
+31 PRINT "[ENTER] TO CONTINUE"
+32 INPUT Q
+33 PRINT "1stDn,Turn of 120"
+34 C=F-E
+35 PRINT C
+36 PRINT T
+37 PRINT "[ENTER] TO CONTINUE"
+38 INPUT Q
+39 IF O=0 THEN 175
+40 PTINT "1)LONG PASS 3)RUN"
+41 PTINT "2)SHORTPASS 4)PUNT"
+42 PTINT "5)FIELD GOAL6)INFO"
+43 INPUT Q
+44 X=1
+45 Y=100
+46 N=RND
+47 IF Q=1 THEN 70
+48 IF Q=2 THEN 76
+49 IF Q=3 THEN 82
+50 IF Q=4 THEN 88
+51 IF Q=5 THEN 98
+52 IF Q=6 THEN 22
+53 PRINT "INCORRECT INPUT"
+54 PRINT "MUST INPUT 1 TO 6"
+55 PRINT "[ENTER] TO CONTINUE"
+56 INPUT Q
+57 GOTO 16
+58 REM kickoff:
+59 PRINT "KICKOFF"
+60 PRINT "[ENTER] TO CONTINUE"
+61 INPUT Q
+62 REM E is for Yard, start the down with a distance from 1 to 30
+63 Y=1
+64 X=30+1
+65 E=RND
+66 F=E+10
+67 REM D is for Down
+68 D=1
+69 GOTO 16
+70 REM longpass:
+71 PRINT "LONG PASS"
+72 X=50
+73 Y=100
+74 IF N<10 THEN 125
+75 GOTO 117
+76 REM shortpass:
+77 PRINT "SHORT PASS"
+78 X=1
+79 Y=50
+80 IF N<25 THEN 125
+81 GOTO 117
+82 REM run:
+83 PRINT "RUN"
+84 X=1
+85 Y=100
+86 IF N<50 THEN 125
+87 GOTO 117
+88 REM punt:
+89 REM I dont know how 88 works
+90 PRINT "PUNT"
+91 Y=1
+92 X=50+1
+93 E=RND
+94 F=E+10
+95 REM D is for Down
+96 D=1
+97 GOTO 142
+98 REM fieldgoal:
+99 PRINT "FIELD GOAL"
+100 REM I gotta ask if this is corrrect, I think it it wrong
+101 X=1
+102 Y=100+1
+103 N=RND
+104 IF N<50 THEN 107
+105 PRINT "FAILED"
+106 GOTO 142
+107 REM fielgoal125:
+108 PRINT "SUCCEDED"
+109 IF O=1 THEN 113
+110 L=B
+111 B=L+2
+112 GOTO 142
+113 REM add2pointsplayer:
+114 L=A
+115 A=L+2
+116 GOTO 142
+117 REM f175l:
+118 PRINT "FAILED"
+119 PRINT "[ENTER] TO CONTINUE"
+120 INPUT Q
+121 REM L is a temporary variable cause D=D+1 doesnt seem to work
+122 L=D
+123 D=L+1
+124 GOTO 16
+125 REM success:
+126 PRINT "SUCCEDED"
+127 PRINT "[ENTER] TO CONTINUE"
+128 INPUT Q
+129 N=RND
+130 REM P is previous line of scrimmage
+131 P=E
+132 L=E
+133 E=L+N
+134 IF E>99 THEN 153
+135 N=F+10
+136 IF E>N THEN 149
+137 REM L is a temporary variable cause D=D+1 doesnt seem to work
+138 L=D
+139 D=L+1
+140 IF D>4 THEN 142
+141 GOTO 16
+142 REM ballchangesides:
+143 IF O=1 THEN 146
+144 O=1
+145 GOTO 58
+146 REM setdeffence:
+147 O=0
+148 GOTO 58
+149 REM downone:
+150 D=1
+151 F=E+10
+152 GOTO 16
+153 REM touchdown:
+154 PRINT "TOUCHDOWN!"
+155 IF O=1 THEN 165
+156 L=B
+157 B=L+6
+158 PRINT "EXTRA POINT"
+159 X=1
+160 Y=2
+161 N=RND
+162 L=B
+163 B=L+N
+164 GOTO 142
+165 REM add6pointsplayer:
+166 L=A
+167 A=L+6
+168 PRINT "EXTRA POINT"
+169 X=1
+170 Y=2
+171 N=RND
+172 L=A
+173 A=L+N
+174 GOTO 142
+175 REM ai:
+176 REM ask my father how the computer should play
+177 PRINT "COMPUTER MOVE"
+178 IF D<4 THEN 181
+179 IF E>80 THEN 98
+180 IF E<60 THEN 88
+181 REM notfourth:
+182 X=1
+183 Y=3
+184 N=RND
+185 IF E<50 THEN 187
+186 IF N=2 THEN 76
+187 REM noshotrpass:
+188 IF D<3 THEN 82
+189 IF N=1 THEN 70
+190 IF N=2 THEN 70
+191 IF N=3 THEN 82
+192 REM gameover:
+193 PRINT "GameOver,YOU,COMP:"
+194 PRINT A
+195 PRINT B
+196 PRINT "[ENTER] TO CONTINUE"
+197 INPUT Q
+198 IF A>B THEN 201
+199 PRINT "COMPUTER WINS"
+200 END
+201 REM wingame:
+202 PRINT "YOU WIN"
View
25 preprocessor/AmericanFootball.qb
@@ -14,22 +14,26 @@ REM when O is 1 player is on the offence 0 is on deffence
O=1
GOTO kickoff
menu:
+IF D=5 THEN ballchangesides
L=T
T=L+1
REM 120 downs in one game
IF T=120 THEN gameover
info:
PRINT "Score,YOU,COMP:"
+PRINT ""
PRINT A
PRINT B
PRINT "[ENTER] TO CONTINUE"
INPUT Q
PRINT "Down,Yard"
+PRINT ""
PRINT D
PRINT E
PRINT "[ENTER] TO CONTINUE"
INPUT Q
PRINT "1stDn,Turn of 120"
+PRINT ""
C=F-E
PRINT C
PRINT T
@@ -41,7 +45,7 @@ PTINT "2)SHORTPASS 4)PUNT"
PTINT "5)FIELD GOAL6)INFO"
INPUT Q
X=1
-Y=100+1
+Y=100
N=RND
IF Q=1 THEN longpass
IF Q=2 THEN shortpass
@@ -68,16 +72,20 @@ D=1
GOTO menu
longpass:
PRINT "LONG PASS"
+X=50
+Y=100
IF N<10 THEN success
GOTO fail
shortpass:
PRINT "SHORT PASS"
X=1
-Y=50+1
+Y=50
IF N<25 THEN success
GOTO fail
run:
PRINT "RUN"
+X=1
+Y=100
IF N<50 THEN success
GOTO fail
punt:
@@ -147,14 +155,25 @@ F=E+10
GOTO menu
touchdown:
PRINT "TOUCHDOWN!"
-REM add extra point
IF O=1 THEN add6pointsplayer
L=B
B=L+6
+PRINT "EXTRA POINT"
+X=1
+Y=2
+N=RND
+L=B
+B=L+N
GOTO ballchangesides
add6pointsplayer:
L=A
A=L+6
+PRINT "EXTRA POINT"
+X=1
+Y=2
+N=RND
+L=A
+A=L+N
GOTO ballchangesides
ai:
REM ask my father how the computer should play
View
360 preprocessor/PROGRAM.BAS
@@ -5,182 +5,198 @@
5 PRINT "YOU LOST TOSS"
6 REM when O is 1 player is on the offence 0 is on deffence
7 O=0
-8 GOTO 57
+8 GOTO 58
9 REM wintoss:
10 PRINT "YOU WON TOSS"
11 PRINT "[ENTER] TO CONTINUE"
12 INPUT Q
13 REM when O is 1 player is on the offence 0 is on deffence
14 O=1
-15 GOTO 57
+15 GOTO 58
16 REM menu:
-17 L=T
-18 T=L+1
-19 REM success downs in one game
-20 IF T=120 THEN 176
-21 REM info:
-22 PRINT "Score,YOU,COMP:"
-23 PRINT A
-24 PRINT B
-25 PRINT "[ENTER] TO CONTINUE"
-26 INPUT Q
-27 PRINT "Down,Yard"
-28 PRINT D
-29 PRINT E
-30 PRINT "[ENTER] TO CONTINUE"
-31 INPUT Q
-32 PRINT "1stDn,Turn of 120"
-33 C=F-E
-34 PRINT C
-35 PRINT T
-36 PRINT "[ENTER] TO CONTINUE"
-37 INPUT Q
-38 IF O=0 THEN 159
-39 PTINT "1)LONG PASS 3)RUN"
-40 PTINT "2)SHORTPASS 4)PUNT"
-41 PTINT "5)FIELD GOAL6)INFO"
-42 INPUT Q
-43 X=1
-44 Y=100+1
-45 N=RND
-46 IF Q=1 THEN 69
-47 IF Q=2 THEN 73
-48 IF Q=3 THEN 79
-49 IF Q=4 THEN 83
-50 IF Q=5 THEN 93
-51 IF Q=6 THEN 21
-52 PRINT "INCORRECT INPUT"
-53 PRINT "MUST INPUT 1 TO 6"
-54 PRINT "[ENTER] TO CONTINUE"
-55 INPUT Q
-56 GOTO 16
-57 REM kickoff:
-58 PRINT "KICKOFF"
-59 PRINT "[ENTER] TO CONTINUE"
-60 INPUT Q
-61 REM E is for Yard, start the down with a distance from 1 to 30
-62 Y=1
-63 X=30+1
-64 E=RND
-65 F=E+10
-66 REM D is for Down
-67 D=1
-68 GOTO 16
-69 REM longpass:
-70 PRINT "LONG PASS"
-71 IF N<10 THEN 120
-72 GOTO 112
-73 REM shortpass:
-74 PRINT "SHORT PASS"
-75 X=1
-76 Y=50+1
-77 IF N<25 THEN 120
-78 GOTO 112
-79 REM run:
-80 PRINT "RUN"
-81 IF N<50 THEN 120
-82 GOTO 112
-83 REM punt:
-84 REM I dont know how 83 works
-85 PRINT "PUNT"
-86 Y=1
-87 X=50+1
-88 E=RND
-89 F=E+10
-90 REM D is for Down
-91 D=1
-92 GOTO 137
-93 REM fieldgoal:
-94 PRINT "FIELD GOAL"
-95 REM I gotta ask if this is corrrect, I think it it wrong
-96 X=1
-97 Y=100+1
-98 N=RND
-99 IF N<50 THEN 102
-100 PRINT "FAILED"
-101 GOTO 137
-102 REM fielgoal120:
-103 PRINT "SUCCEDED"
-104 IF O=1 THEN 108
-105 L=B
-106 B=L+2
-107 GOTO 137
-108 REM add2pointsplayer:
-109 L=A
-110 A=L+2
-111 GOTO 137
-112 REM f159l:
-113 PRINT "FAILED"
-114 PRINT "[ENTER] TO CONTINUE"
-115 INPUT Q
-116 REM L is a temporary variable cause D=D+1 doesnt seem to work
-117 L=D
-118 D=L+1
-119 GOTO 16
-120 REM success:
-121 PRINT "SUCCEDED"
-122 PRINT "[ENTER] TO CONTINUE"
-123 INPUT Q
-124 N=RND
-125 REM P is previous line of scrimmage
-126 P=E
-127 L=E
-128 E=L+N
-129 IF E>99 THEN 148
-130 N=F+10
-131 IF E>N THEN 144
-132 REM L is a temporary variable cause D=D+1 doesnt seem to work
-133 L=D
-134 D=L+1
-135 IF D>4 THEN 137
-136 GOTO 16
-137 REM ballchangesides:
-138 IF O=1 THEN 141
-139 O=1
-140 GOTO 57
-141 REM setdeffence:
-142 O=0
-143 GOTO 57
-144 REM downone:
-145 D=1
-146 F=E+10
-147 GOTO 16
-148 REM touchdown:
-149 PRINT "TOUCHDOWN!"
-150 REM add extra point
-151 IF O=1 THEN 155
-152 L=B
-153 B=L+6
-154 GOTO 137
-155 REM add6pointsplayer:
-156 L=A
-157 A=L+6
-158 GOTO 137
-159 REM ai:
-160 REM ask my father how the computer should play
-161 PRINT "COMPUTER MOVE"
-162 IF D<4 THEN 165
-163 IF E>80 THEN 93
-164 IF E<60 THEN 83
-165 REM notfourth:
-166 X=1
-167 Y=3
-168 N=RND
-169 IF E<50 THEN 171
-170 IF N=2 THEN 73
-171 REM noshotrpass:
-172 IF D<3 THEN 79
-173 IF N=1 THEN 69
-174 IF N=2 THEN 69
-175 IF N=3 THEN 79
-176 REM gameover:
-177 PRINT "GameOver,YOU,COMP:"
-178 PRINT A
-179 PRINT B
-180 PRINT "[ENTER] TO CONTINUE"
-181 INPUT Q
-182 IF A>B THEN 185
-183 PRINT "COMPUTER WINS"
-184 END
-185 REM wingame:
-186 PRINT "YOU WIN"
+17 IF D=5 THEN 142
+18 L=T
+19 T=L+1
+20 REM 120 downs in one game
+21 IF T=120 THEN 192
+22 REM info:
+23 PRINT "Score,YOU,COMP:"
+24 PRINT A
+25 PRINT B
+26 PRINT "[ENTER] TO CONTINUE"
+27 INPUT Q
+28 PRINT "Down,Yard"
+29 PRINT D
+30 PRINT E
+31 PRINT "[ENTER] TO CONTINUE"
+32 INPUT Q
+33 PRINT "1stDn,Turn of 120"
+34 C=F-E
+35 PRINT C
+36 PRINT T
+37 PRINT "[ENTER] TO CONTINUE"
+38 INPUT Q
+39 IF O=0 THEN 175
+40 PTINT "1)LONG PASS 3)RUN"
+41 PTINT "2)SHORTPASS 4)PUNT"
+42 PTINT "5)FIELD GOAL6)INFO"
+43 INPUT Q
+44 X=1
+45 Y=100
+46 N=RND
+47 IF Q=1 THEN 70
+48 IF Q=2 THEN 76
+49 IF Q=3 THEN 82
+50 IF Q=4 THEN 88
+51 IF Q=5 THEN 98
+52 IF Q=6 THEN 22
+53 PRINT "INCORRECT INPUT"
+54 PRINT "MUST INPUT 1 TO 6"
+55 PRINT "[ENTER] TO CONTINUE"
+56 INPUT Q
+57 GOTO 16
+58 REM kickoff:
+59 PRINT "KICKOFF"
+60 PRINT "[ENTER] TO CONTINUE"
+61 INPUT Q
+62 REM E is for Yard, start the down with a distance from 1 to 30
+63 Y=1
+64 X=30+1
+65 E=RND
+66 F=E+10
+67 REM D is for Down
+68 D=1
+69 GOTO 16
+70 REM longpass:
+71 PRINT "LONG PASS"
+72 X=50
+73 Y=100
+74 IF N<10 THEN 125
+75 GOTO 117
+76 REM shortpass:
+77 PRINT "SHORT PASS"
+78 X=1
+79 Y=50
+80 IF N<25 THEN 125
+81 GOTO 117
+82 REM run:
+83 PRINT "RUN"
+84 X=1
+85 Y=100
+86 IF N<50 THEN 125
+87 GOTO 117
+88 REM punt:
+89 REM I dont know how 88 works
+90 PRINT "PUNT"
+91 Y=1
+92 X=50+1
+93 E=RND
+94 F=E+10
+95 REM D is for Down
+96 D=1
+97 GOTO 142
+98 REM fieldgoal:
+99 PRINT "FIELD GOAL"
+100 REM I gotta ask if this is corrrect, I think it it wrong
+101 X=1
+102 Y=100+1
+103 N=RND
+104 IF N<50 THEN 107
+105 PRINT "FAILED"
+106 GOTO 142
+107 REM fielgoal125:
+108 PRINT "SUCCEDED"
+109 IF O=1 THEN 113
+110 L=B
+111 B=L+2
+112 GOTO 142
+113 REM add2pointsplayer:
+114 L=A
+115 A=L+2
+116 GOTO 142
+117 REM f175l:
+118 PRINT "FAILED"
+119 PRINT "[ENTER] TO CONTINUE"
+120 INPUT Q
+121 REM L is a temporary variable cause D=D+1 doesnt seem to work
+122 L=D
+123 D=L+1
+124 GOTO 16
+125 REM success:
+126 PRINT "SUCCEDED"
+127 PRINT "[ENTER] TO CONTINUE"
+128 INPUT Q
+129 N=RND
+130 REM P is previous line of scrimmage
+131 P=E
+132 L=E
+133 E=L+N
+134 IF E>99 THEN 153
+135 N=F+10
+136 IF E>N THEN 149
+137 REM L is a temporary variable cause D=D+1 doesnt seem to work
+138 L=D
+139 D=L+1
+140 IF D>4 THEN 142
+141 GOTO 16
+142 REM ballchangesides:
+143 IF O=1 THEN 146
+144 O=1
+145 GOTO 58
+146 REM setdeffence:
+147 O=0
+148 GOTO 58
+149 REM downone:
+150 D=1
+151 F=E+10
+152 GOTO 16
+153 REM touchdown:
+154 PRINT "TOUCHDOWN!"
+155 IF O=1 THEN 165
+156 L=B
+157 B=L+6
+158 PRINT "EXTRA POINT"
+159 X=1
+160 Y=2
+161 N=RND
+162 L=B
+163 B=L+N
+164 GOTO 142
+165 REM add6pointsplayer:
+166 L=A
+167 A=L+6
+168 PRINT "EXTRA POINT"
+169 X=1
+170 Y=2
+171 N=RND
+172 L=A
+173 A=L+N
+174 GOTO 142
+175 REM ai:
+176 REM ask my father how the computer should play
+177 PRINT "COMPUTER MOVE"
+178 IF D<4 THEN 181
+179 IF E>80 THEN 98
+180 IF E<60 THEN 88
+181 REM notfourth:
+182 X=1
+183 Y=3
+184 N=RND
+185 IF E<50 THEN 187
+186 IF N=2 THEN 76
+187 REM noshotrpass:
+188 IF D<3 THEN 82
+189 IF N=1 THEN 70
+190 IF N=2 THEN 70
+191 IF N=3 THEN 82
+192 REM gameover:
+193 PRINT "GameOver,YOU,COMP:"
+194 PRINT A
+195 PRINT B
+196 PRINT "[ENTER] TO CONTINUE"
+197 INPUT Q
+198 IF A>B THEN 201
+199 PRINT "COMPUTER WINS"
+200 END
+201 REM wingame:
+202 PRINT "YOU WIN"
Please sign in to comment.
Something went wrong with that request. Please try again.