From fir@3:633/280.2 to All on Mon Apr 8 03:18:50 2024
i can code 1-pixel sized bots on black screen
(say 100 red bots/agents and 100 green)
and then spread a 1-pixel yelow food (say 1000)
then could make competition for example like
that - in each turn (and you got like 100 maybe
200 turns on a second) each agnet has given 1.0
time to spend
he may use this time in varios way
1) he may move 1.0 pixel far in chosen direction
(he may alos move sat 0.7 pixel far and use 0.3
time for other purposes)
2) he may change direction - by the cost 0.4 for 360
degrees or proportionally less ofr part of it
3) he may look out on surrounding pixels - but the looking
out has cost say 0.01 time for one pixel look out
(and also given pixel-agent probably will have a
radius where he can look at most - say 20 pixels far)
4) he may dock to food and then drag it like an ant in
given dorection (maybe by the cost of 2 times more
than normal move
5) i also think if it shouldnt be able to drag also
enemies but enemy could drag also him to
the goal would be to drag some amount of food
to his own base (say drawed as a circle on radius 25
or something like that
i wonder if coding this owuld make something interesting
or only something stupid .. right now i coded
basics of it and get tired..but i eventually could try later
void SperadFood(int amount)
{
for(int i=0; i<amount; i++)
{
int x = rand2(0,frame_size_x-1);
int y = rand2(0,frame_size_y-1);
SetPixelSafe(x,y,0xffff00);