![]() |
Starship Code Contest
0.1
A real student nightmare...
|
An example of artificial intelligence plugin moving in circle and shoting randomly. More...
Go to the source code of this file.
Functions | |
| void | decision_frame (Decision_frame *d) |
| the brilliant decision my AI is taking each frame. More... | |
| void | initialize_my_AI (void) |
| Initialization of this test plugin. More... | |
| void | clean_my_AI (void) |
| Clean this test plugin. More... | |
An example of artificial intelligence plugin moving in circle and shoting randomly.
Definition in file circle_rand_shot.c.
| void clean_my_AI | ( | void | ) |
Clean this test plugin.
void clean_my_AI(void)
There is nothing needing to be cleaned in this plugin.
Definition at line 83 of file circle_rand_shot.c.
| void decision_frame | ( | Decision_frame * | d | ) |
the brilliant decision my AI is taking each frame.
void decision_frame(Decision_frame* d)
| d | a pointer to a Decision_frame structure |
The starship will turn in circle (if there is no collision with borders or other starship) and shot in random directions.
Definition at line 36 of file circle_rand_shot.c.
References get_gun_status(), and Decision_frame::move.
| void initialize_my_AI | ( | void | ) |
Initialization of this test plugin.
There is nothing to initialize in this plugin.
Definition at line 71 of file circle_rand_shot.c.
1.8.13