Small Basic Forum
Small Basic AI Championship - Printable Version

+- Small Basic Forum (https://litdev.uk/mybb)
+-- Forum: Small Basic (https://litdev.uk/mybb/forumdisplay.php?fid=1)
+--- Forum: Discussion (https://litdev.uk/mybb/forumdisplay.php?fid=4)
+--- Thread: Small Basic AI Championship (/showthread.php?tid=9)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19


RE: Small Basic AI Championship - AbsoluteBeginner - 04-24-2024

(translated by Google translator)

Hi all.
Today I can show the next version of the prototype of the "Nature" program.
I used shapes again to create the Server switch. I tried using regular buttons, but I didn't like it.
I learned and first used tooltips in Small Basic.  Shy
I used Message Windows to simulate some events.
...
In this version of the prototype, you can test the correctness of the principle of information exchange between the Server and Clients.
Program code: PJBJ480.021


RE: Small Basic AI Championship - Scout - 04-24-2024

There's something wrong with the program ID  Huh


RE: Small Basic AI Championship - AbsoluteBeginner - 04-24-2024

Scout,

Try # RPSQ181.000
I was able to download it.

(I don’t know how to publish new versions of an already existing program. How can I do this?)  Huh


RE: Small Basic AI Championship - Scout - 04-24-2024

Hi AB,
I don't know if this is the best or correct way, but the program ID remains the same and only the index is incremented.
For small changes:
Import the existing program
Make the changes
Publish the program

For major changes over several days:
Import the existing program
Copy the entire new source code over the existing program
Publish the program

The import ID is provided with an index that automatically increments.
This must be taken into account when entering the program ID as a comment in the source code   (see RPSQ181.000-1  line 2 ).

I don't know if the default ID can still be changed when publishing. Have fun experimenting.

The optional fields when publishing can be viewed in SB-Prime via "Imported Program Details" (see RPSQ181.000-0).


RE: Small Basic AI Championship - AbsoluteBeginner - 04-24-2024

(translated by Google translator)

Thank you, Scout.
Now I have at least one option.
The options I had come up with up to this point seemed incredible to me. I couldn't believe that publishing a new version of an existing program should be done in this way.

If no one finds a serious bug in my latest version of the prototype, then I will continue development.
The most incomprehensible question for me is how to transmit an array of data in a message.
Am I correct in assuming that the message being passed is always a string?

Thank you.


RE: Small Basic AI Championship - litdev - 04-24-2024

Everything in Small Bsic is a type called Primitive that includes numbers, strings and arrays and any of them can be passed about easily, e.g. "1=Hello;2=World;" is an array.  What SB does with data is context dependent, numbers can be multiplied, arrays can be looped through.

So just have a go and I bet it will just work!

This single type in SB is one of its neat features.


RE: Small Basic AI Championship - z-s - 04-25-2024

AB After dot in program code comes three zeros so your previous program code corrected is this : PJBJ480.000

http://smallbasic.com/program/?PJBJ480.000

AB Is this GUI Only ?? I Cant Find How To Connect Client.


RE: Small Basic AI Championship - AbsoluteBeginner - 04-25-2024

(04-25-2024, 04:28 AM)z-s Wrote: AB After dot in program code comes three zeros so your previous program code corrected is this : PJBJ480.000

http://smallbasic.com/program/?PJBJ480.000

Hello, Z-S.
I agree with you.
I just couldn't publish a new version of the "Nature" program, giving it the name PJBJ480.021.
The system offered me a different name. The system did not allow me to insert my new name using Ctrl + V.
The system allowed me to enter a name PJBJ480.021 using the keyboard. But it turned out that my program with this name was not published.
That's how I ended up at a dead end.  Smile
---
I will only now start working with Clients.


RE: Small Basic AI Championship - z-s - 04-25-2024

Ok I Will Be Waiting For The Project ReleaseSmile


RE: Small Basic AI Championship - AbsoluteBeginner - 04-30-2024

(translated by Google translator)

Hi all.
For many days now I have been feeling sorry for the Rabbit. The Rabbit doesn't see the Snake. The Rabbit's ability to survive depends almost entirely on luck.
But today I thought that not everything is so simple.
The snake also has vulnerability. A snake cannot crawl through itself.
Thus, the Rabbit has the probability of the occurrence of such a sequence of jumps that will provoke the Snake to move along a trajectory that leads the Snake to a dead end.
Since the Rabbit sees the edges of the playing field, combinations of the directions of the jumps and skillful use of the walls and corners of the field can greatly complicate the life of the Snake.

Smile