![]() |
Starship Code Contest
0.1
A real student nightmare...
|
An example of artificial intelligence plugin doing everything 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) |
| there is nothing to intialize in this More... | |
| void | clean_my_AI (void) |
| Clean nothing because there is nothing to clean. More... | |
An example of artificial intelligence plugin doing everything randomly.
This A.I. moves, turns gun and radar randomly. Using some static variables, the starship will change randomly its moving angle, gun angle and radar angle. As all decision are taken randomly, the plugin move but doesn't listen to its radar.
Definition in file rand_all.c.
| void clean_my_AI | ( | void | ) |
Clean nothing because there is nothing to clean.
void clean_my_AI(void)
There is nothing to clean for this plugin but the symbol but be present for loading.
Definition at line 93 of file rand_all.c.
| void decision_frame | ( | Decision_frame * | d | ) |
the brilliant decision my AI is taking each frame.
void decision_frame(Decision_frame* d)
| d | : a Decision_frame structure passed by pointer |
All decision are taken randomly.
Definition at line 58 of file rand_all.c.
References get_gun_status(), and Decision_frame::move.
| void initialize_my_AI | ( | void | ) |
there is nothing to intialize in this
plugin but the symbol but be present for loading.
Definition at line 88 of file rand_all.c.
1.8.13