Update
This commit is contained in:
parent
124b9d1e7c
commit
3f374a4713
85 changed files with 2281 additions and 2272 deletions
|
@ -169,7 +169,7 @@ void updateAnts(void)
|
|||
ants[i].chip = 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
ants[i].pos = newPos;
|
||||
}
|
||||
}
|
||||
|
@ -186,7 +186,7 @@ int main(void)
|
|||
ants[i].pos = rand() % (WORLD_SIZE * WORLD_SIZE);
|
||||
ants[i].chip = 0;
|
||||
}
|
||||
|
||||
|
||||
int i;
|
||||
|
||||
while (1)
|
||||
|
@ -204,4 +204,4 @@ int main(void)
|
|||
printWorld();
|
||||
return 0;
|
||||
}
|
||||
```
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue