We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Small Basic AI Championship
(translated by Google translator)

Here's what I found in the saved variables file.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
. (from File) . . . . . . . . . . . . . . . . . . . . (from Code)
number_of_sequences = 624 . . . . . Text.Append("number_of_sequences = ", number_of_sequences)
number_of_dead_snakes = 2 . . . . . Text.Append("number_of_dead_snakes = ", _stat_deadSnakes)
Level of training(%) = 101  . . . . . . . Text.Append("Level of training(%) = ", _x)
Ratio = 23. . . . . . . . . . . . . . . . . . . . Text.Append("Ratio = ", Math.Floor(_stat_caughtRabbits/_x))
lis_SequenceLevel[i] =  . . . . . . . . . . Text.Append("lis_SequenceLevel[i] = ", LDList.GetAt(lis_SequenceLevel, n_sequenceNumber))
number_of_sequences = = 624 . . . Text.Append("number_of_sequences = ", number_of_sequences)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
The saved variables file contains lines in which the method saved the "Text.Append()" function ARGUMENTS as variables.
When reading the file, the "number_of_sequences" variable received an incorrect value. I was able to notice this because the strings "Level of training(%)", "Ratio" and "lis_SequenceLevel[i]" are not variables at all.

Am I correct in thinking that it is better to use the "LDList.Write()" method to save lists, and "LDSettings." to save variables?  Huh

Thank you.
Reply


Messages In This Thread
Small Basic AI Championship - by AbsoluteBeginner - 09-13-2023, 06:24 PM
RE: Small Basic AI Championship - by litdev - 09-13-2023, 08:18 PM
RE: Small Basic AI Championship - by litdev - 09-14-2023, 11:30 PM
RE: Small Basic AI Championship - by z-s - 04-01-2024, 10:38 AM
RE: Small Basic AI Championship - by litdev - 04-01-2024, 08:13 PM
RE: Small Basic AI Championship - by z-s - 04-02-2024, 09:16 AM
RE: Small Basic AI Championship - by z-s - 04-02-2024, 05:05 PM
RE: Small Basic AI Championship - by z-s - 04-04-2024, 05:16 AM
RE: Small Basic AI Championship - by Scout - 04-04-2024, 02:08 PM
RE: Small Basic AI Championship - by litdev - 04-04-2024, 03:05 PM
RE: Small Basic AI Championship - by z-s - 04-04-2024, 04:30 PM
RE: Small Basic AI Championship - by litdev - 04-04-2024, 05:02 PM
RE: Small Basic AI Championship - by jrmrhrb00 - 04-04-2024, 10:04 PM
RE: Small Basic AI Championship - by litdev - 04-04-2024, 10:13 PM
RE: Small Basic AI Championship - by jrmrhrb00 - 04-04-2024, 11:07 PM
RE: Small Basic AI Championship - by litdev - 04-10-2024, 07:31 PM
RE: Small Basic AI Championship - by litdev - 04-11-2024, 10:03 AM
RE: Small Basic AI Championship - by z-s - 04-11-2024, 02:29 PM
RE: Small Basic AI Championship - by litdev - 04-16-2024, 01:16 PM
RE: Small Basic AI Championship - by z-s - 04-16-2024, 03:04 PM
RE: Small Basic AI Championship - by litdev - 04-16-2024, 05:42 PM
RE: Small Basic AI Championship - by z-s - 04-17-2024, 06:24 AM
RE: Small Basic AI Championship - by z-s - 04-17-2024, 02:28 PM
RE: Small Basic AI Championship - by litdev - 04-19-2024, 07:01 PM
RE: Small Basic AI Championship - by litdev - 04-20-2024, 10:09 AM
RE: Small Basic AI Championship - by litdev - 04-22-2024, 08:24 AM
RE: Small Basic AI Championship - by z-s - 04-23-2024, 06:29 AM
RE: Small Basic AI Championship - by Scout - 04-24-2024, 02:48 PM
RE: Small Basic AI Championship - by Scout - 04-24-2024, 05:55 PM
RE: Small Basic AI Championship - by litdev - 04-24-2024, 08:39 PM
RE: Small Basic AI Championship - by z-s - 04-25-2024, 04:28 AM
RE: Small Basic AI Championship - by z-s - 04-25-2024, 05:19 AM
RE: Small Basic AI Championship - by z-s - 05-01-2024, 06:06 AM
RE: Small Basic AI Championship - by z-s - 05-01-2024, 07:18 AM
RE: Small Basic AI Championship - by litdev - 05-01-2024, 04:24 PM
RE: Small Basic AI Championship - by litdev - 05-18-2024, 01:33 PM
RE: Small Basic AI Championship - by litdev - 06-07-2024, 10:44 AM
RE: Small Basic AI Championship - by litdev - 06-13-2024, 08:03 AM
RE: Small Basic AI Championship - by Scout - 06-13-2024, 05:46 PM
RE: Small Basic AI Championship - by litdev - 06-13-2024, 07:16 PM
RE: Small Basic AI Championship - by litdev - 06-21-2024, 09:35 AM
RE: Small Basic AI Championship - by litdev - 06-21-2024, 12:44 PM
RE: Small Basic AI Championship - by z-s - 06-21-2024, 05:20 PM
RE: Small Basic AI Championship - by litdev - 06-24-2024, 05:17 PM
RE: Small Basic AI Championship - by litdev - 06-27-2024, 08:03 PM
RE: Small Basic AI Championship - by litdev - 06-28-2024, 10:32 AM
RE: Small Basic AI Championship - by AbsoluteBeginner - 06-28-2024, 01:15 PM
RE: Small Basic AI Championship - by litdev - 06-28-2024, 02:16 PM
RE: Small Basic AI Championship - by litdev - 06-29-2024, 08:50 AM
RE: Small Basic AI Championship - by litdev - 06-29-2024, 04:59 PM
RE: Small Basic AI Championship - by z-s - 07-02-2024, 12:21 PM
RE: Small Basic AI Championship - by z-s - 07-02-2024, 02:38 PM
RE: Small Basic AI Championship - by z-s - 07-06-2024, 02:19 AM
RE: Small Basic AI Championship - by z-s - 07-06-2024, 01:02 PM
RE: Small Basic AI Championship - by z-s - 07-06-2024, 04:01 PM
RE: Small Basic AI Championship - by z-s - 07-06-2024, 04:45 PM
RE: Small Basic AI Championship - by litdev - 07-06-2024, 11:07 PM
RE: Small Basic AI Championship - by z-s - 07-11-2024, 02:55 AM
RE: Small Basic AI Championship - by z-s - 07-11-2024, 06:39 AM
RE: Small Basic AI Championship - by litdev - 07-13-2024, 10:53 PM
RE: Small Basic AI Championship - by z-s - 07-14-2024, 03:37 AM
RE: Small Basic AI Championship - by litdev - 07-14-2024, 09:05 AM
RE: Small Basic AI Championship - by z-s - 07-15-2024, 06:16 AM
RE: Small Basic AI Championship - by litdev - 07-17-2024, 08:31 PM
RE: Small Basic AI Championship - by litdev - 07-18-2024, 11:45 AM
RE: Small Basic AI Championship - by litdev - 08-25-2024, 06:44 PM
RE: Small Basic AI Championship - by litdev - 08-26-2024, 08:24 AM
RE: Small Basic AI Championship - by litdev - 09-01-2024, 06:53 PM
RE: Small Basic AI Championship - by litdev - 09-01-2024, 08:25 PM
RE: Small Basic AI Championship - by litdev - 09-02-2024, 01:59 PM

Forum Jump:


Users browsing this thread: 41 Guest(s)