Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Collection of Basic Computer Games
#4
Seriously:

In Amazing.bas when it prompted for dimensions you need to enter 2 values separated by a comma:

100 Input "WHAT ARE YOUR WIDTH AND LENGTH"; H, V

or else you get an array subscript error..

(otherwise change):
102 If H > 1 And V > 1 Then 110

In Checkers.bas there is a badly nested for loop which can be changed to:

Code: (Select All)
1340 X = R(3): Y = R(4)
1350 If S(X, Y) = -1 Then B = -2: For A = -2 To 2 Step 4: GoSub 1370: Next A: If R(0) <> -99 Then Print "TO"; R(3); R(4);: R(0) = -99: GoTo 1240
1360 If S(X, Y) = -2 Then For A = -2 To 2 Step 4: For B = -2 To 2 Step 4: GoSub 1370: Next B: Next A: If R(0) <> -99 Then Print "TO"; R(3); R(4);: R(0) = -99: GoTo 1240
Reply


Messages In This Thread
Collection of Basic Computer Games - by eoredson - 06-16-2024, 03:03 AM
RE: Collection of Basic Computer Games - by bplus - 06-16-2024, 01:23 PM
RE: Collection of Basic Computer Games - by eoredson - 06-20-2024, 02:31 AM
RE: Collection of Basic Computer Games - by bplus - 07-21-2024, 07:19 PM
RE: Collection of Basic Computer Games - by bplus - 07-21-2024, 11:28 PM
RE: Collection of Basic Computer Games - by bplus - 07-22-2024, 05:41 PM
RE: Collection of Basic Computer Games - by bplus - 07-22-2024, 06:54 PM



Users browsing this thread: 1 Guest(s)