Starship Code Contest  0.1
A real student nightmare...
Functions
rand_move_info.c File Reference

An example of artificial intelligence plugin moving randomly and displaying information. More...

#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "../includes/acquisition.h"

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...
 

Detailed Description

An example of artificial intelligence plugin moving randomly and displaying information.

Version
0.1
Author
Nicolas Borie ( nicolas dot borie at u-pem dot fr )
Date
10 march 2014

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.

Function Documentation

◆ clean_my_AI()

void clean_my_AI ( void  )

Clean this test plugin.

void clean_my_AI(void)

Returns
void

There is nothing needing to be cleaned in this plugin.

Definition at line 116 of file rand_move_info.c.

◆ decision_frame()

void decision_frame ( Decision_frame d)

Function which produce a random move and scan elements with the radar.

void decision_frame(Decision_frame* d)

Parameters
da pointer to Decision_frame structure
Returns
void

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.

◆ initialize_my_AI()

void initialize_my_AI ( void  )

Initialization of this test plugin.

void initialize_my_AI(void)

Returns
void

There is nothing to initialize in this plugin.

Definition at line 104 of file rand_move_info.c.