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

An example of artificial intelligence plugin moving in circle and shoting 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)
 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 in circle and shoting randomly.

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

Definition in file circle_rand_shot.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 83 of file circle_rand_shot.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
da pointer to a Decision_frame structure
Returns
void

The starship will turn in circle (if there is no collision with borders or other starship) and shot in random directions.

Definition at line 36 of file circle_rand_shot.c.

References get_gun_status(), and 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 71 of file circle_rand_shot.c.