06-06-2024, 05:39 PM
(This post was last modified: 06-06-2024, 05:55 PM by AbsoluteBeginner.)
(translated by Google translator)
Hi all.
I published the first version of the prototype of the "AI Snake" SYSTEM.
I call it a System because now it requires three files to use.
- The first is the "Nature" program: RPSQ181.000-5
This is the server part of the System. This program provides communication with the Rabbit and the Snake. And in this program all modeling of the game process is carried out.
- Two other programs are Clients of this Server. This is the "Snake AI" program: TJSG543.000
And the "Rabbit AI" program: XBWP716.000-0
It is better to create a separate folder for each client program. When I first launched the client from the same folder from which the server was already running, then I received a message that the libraries were already in use by another program. The process was stopped.
The code of both Clients has already been created using a universal template.
I tried to describe in the template all the operations that are necessary for communication between the Client and the Server.
In addition, I tried to highlight those places where any developer of a different version of AI can easily insert their code.
But it’s still impossible to tell all the features at once. Therefore, I will wait for information about errors from you.
I will be grateful to you for all your comments and suggestions for improving the code, the design of the game and improving the gameplay.
Thank you.
( Addition. My Clients, whose IDs I indicated in this message, are not AI. These are simple hard algorithms that are used to debug the system. )
Hi all.
I published the first version of the prototype of the "AI Snake" SYSTEM.
I call it a System because now it requires three files to use.
- The first is the "Nature" program: RPSQ181.000-5
This is the server part of the System. This program provides communication with the Rabbit and the Snake. And in this program all modeling of the game process is carried out.
- Two other programs are Clients of this Server. This is the "Snake AI" program: TJSG543.000
And the "Rabbit AI" program: XBWP716.000-0
It is better to create a separate folder for each client program. When I first launched the client from the same folder from which the server was already running, then I received a message that the libraries were already in use by another program. The process was stopped.
The code of both Clients has already been created using a universal template.
I tried to describe in the template all the operations that are necessary for communication between the Client and the Server.
In addition, I tried to highlight those places where any developer of a different version of AI can easily insert their code.
But it’s still impossible to tell all the features at once. Therefore, I will wait for information about errors from you.
I will be grateful to you for all your comments and suggestions for improving the code, the design of the game and improving the gameplay.
Thank you.
( Addition. My Clients, whose IDs I indicated in this message, are not AI. These are simple hard algorithms that are used to debug the system. )