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

An example of artificial intelligence plugin moving randomly. More...

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

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

Detailed Description

An example of artificial intelligence plugin moving randomly.

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

Definition in file rand_move.c.

Function Documentation

◆ clean_my_AI()

void clean_my_AI ( void  )

Clean nothing because there is nothing to clean.

void clean_my_AI(void)

Returns
void

There is nothing to clean for this plugin but the symbol but be present for loading.

Definition at line 80 of file rand_move.c.

◆ decision_frame()

void decision_frame ( Decision_frame d)

the brilliant decision my AI is taking each frame.

void decision_frame(Decision_frame* d)

Parameters
d: a Decision_frame structure passed by pointer
Returns
void

The starship will move randomly and will not shot any missile.

Definition at line 35 of file rand_move.c.

References Decision_frame::move, and Decision_frame::shot.

◆ initialize_my_AI()

void initialize_my_AI ( void  )

there is nothing to intialize in this

void initialize_my_AI(void)

Returns
void

plugin but the symbol but be present for loading.

Definition at line 69 of file rand_move.c.