Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cube Game Question
#7
Some of this old style code is just brain damaging.  Examples of poor coding back in the day:

380 LET A=INT(3*(RND(X)))
390 IF A<>0 THEN 410
400 LET A=3

Let's fix that in one line:

LET A = INT(3 * (RND(X))) + 1

Or even change line 390 to:

IF A = 0 THEN LET A = 3
Reply


Messages In This Thread
Cube Game Question - by bplus - 10-16-2023, 01:06 PM
RE: Cube Game Question - by bplus - 10-16-2023, 01:40 PM
RE: Cube Game Question - by JRace - 10-16-2023, 07:52 PM
RE: Cube Game Question - by bplus - 10-17-2023, 01:59 PM
RE: Cube Game Question - by JRace - 10-17-2023, 02:09 PM
RE: Cube Game Question - by bplus - 10-17-2023, 03:12 PM
RE: Cube Game Question - by SMcNeill - 10-17-2023, 02:14 PM
RE: Cube Game Question - by bplus - 10-17-2023, 03:20 PM
RE: Cube Game Question - by bplus - 10-16-2023, 08:04 PM
RE: Cube Game Question - by JRace - 10-17-2023, 12:59 AM
RE: Cube Game Question - by SMcNeill - 10-17-2023, 01:15 AM
RE: Cube Game Question - by SMcNeill - 10-17-2023, 01:22 AM
RE: Cube Game Question - by SMcNeill - 10-17-2023, 02:28 AM
RE: Cube Game Question - by JRace - 10-17-2023, 02:38 AM
RE: Cube Game Question - by SMcNeill - 10-17-2023, 02:48 AM
RE: Cube Game Question - by SMcNeill - 10-17-2023, 02:51 AM
RE: Cube Game Question - by mnrvovrfc - 10-17-2023, 05:09 PM
RE: Cube Game Question - by bplus - 10-17-2023, 05:38 PM
RE: Cube Game Question - by SMcNeill - 10-17-2023, 08:13 PM
RE: Cube Game Question - by bplus - 10-18-2023, 12:34 AM



Users browsing this thread: 8 Guest(s)