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

An example of artificial intelligence plugin doing everything 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 doing everything randomly.

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

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.

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 93 of file rand_all.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

All decision are taken randomly.

Definition at line 58 of file rand_all.c.

References get_gun_status(), and Decision_frame::move.

◆ 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 88 of file rand_all.c.