![]() |
Starship Code Contest
0.1
A real student nightmare...
|
An example of artificial intelligence plugin moving randomly and displaying information. More...
Go to the source code of this file.
Functions | |
| void | decision_frame (Decision_frame *d) |
| Function which produce a random move and scan elements with the radar. 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 randomly and displaying information.
This A.I. moves, and turns radar randomly. Using some static variables, the starship will change randomly its moving angle and radar angle. Each frame, this A.I. write on the standard output information it collected.
Definition in file rand_move_info.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 116 of file rand_move_info.c.
| void decision_frame | ( | Decision_frame * | d | ) |
Function which produce a random move and scan elements with the radar.
void decision_frame(Decision_frame* d)
| d | a pointer to Decision_frame structure |
One a random move of the starship and the radar is done, the plugin write all information the standard output. To left you time to read it, the plugin make a pause waiting for you to type the Enter key. THIS IS NOT A VALID PLUGIN... Its purpose is just to show you how to collect all possible information. This is also a test plugin to check that the internal trigonometric functions work fine.
Definition at line 41 of file rand_move_info.c.
References Decision_frame::move.
| void initialize_my_AI | ( | void | ) |
Initialization of this test plugin.
There is nothing to initialize in this plugin.
Definition at line 104 of file rand_move_info.c.
1.8.13