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

An example of artificial intelligence plugin shoting randomly but not moving. 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)
 turning gun and radar randomly and shoting everytime it is possible. 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 shoting randomly but not moving.

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

Definition in file 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 76 of file rand_shot.c.

◆ decision_frame()

void decision_frame ( Decision_frame d)

turning gun and radar randomly and shoting everytime it is possible.

void decision_frame(Decision_frame* d)

Parameters
da pointer to a Decision_frame structure
Returns
void

Definition at line 33 of file 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 64 of file rand_shot.c.