How to link subprograms to a main program's game loop?
- by Jim
I recently discovered Crobot which is (briefly) a game where each player codes a virtual robot in a pseudo-C language. Each robot is then put in an arena where it fights against other robots.
A robots' source code has this shape :
/* Beginning file robot.r */
main()
{
while (1)
{
/* Do whatever you want */
...
…