(04-16-2024, 01:16 PM)litdev Wrote: AB,
...
If the clients know nothing about what the other is doing, then what will the AI do apart from randomly move about blind?
(translated by Google translator)
At the moment, I plan to organize the Rabbit's decision-making process based only on the available "genetic" information.
As I wrote here before, for now the Rabbit will not see the Snake at all. The Rabbit does not see the Snake before its attack because the Snake has good camouflage. If the Snake misses during the attack because the Rabbit made a jump a moment before its attack, then the Rabbit again does not see the Snake, because the Snake is again invisible in the grass.
Thus, the Rabbit is alive as long as it makes unexpected leaps in an unexpected direction.
But, the time and direction of the Rabbit's jump will be unexpected only for the Snake. In reality, the time and direction of the Rabbit's jump will be determined by the starting "genetic" program and "life experience" that will accumulate "in the genes" from generation to generation.
Thus, the Rabbit only needs information about its position on the playing field so that the Rabbit does not hit the walls. This information will be sent to the Rabbit by the Server.
The Snake will also receive information from the Server about its position on the playing field and about the current position of the Rabbit, if it is located close enough. The snake will evaluate this current situation in the game and will make a decision based on its own considerations.
That is, each Client communicates only with the Server.
(this is my plan at the moment. I will be grateful for any comments and suggestions.)