-
Notifications
You must be signed in to change notification settings - Fork 1
/
randMd.h
35 lines (30 loc) · 1.17 KB
/
randMd.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef RANDMD_H
#define RANDMD_H
#include "struct.h"
#include "labyrinthAPI.h"
/*! \file randMd.h
\brief Rand mode related functions descriptions.
\author Maeva Arlandis et Alexis Devillard
\version 6.2
\date 10 janvier 2017
*/
/*! \fn void gene_randmove(Map* L,t_move *move, int P)
\brief Generate random moves until it is possible for player P to do it (Map rotations and DO_NOTHING include).
\param L The labyrinth map structure.
\param move A pointer to recover the generated move.
\param P Number of the player we generate a move for.
*/
void gene_randmove(Map* L,t_move *move, int P);
/*! \fn void convert_movetype(int type, t_move *move)
\brief Generate a random move from an integer (Map rotations and DO_NOTHING include).
\param L The labyrinth map structure.
\param move A pointer to recover the generated move.
\param P Number of the player we generate a move for.
*/
void convert_movetype(int type, t_move *move);
/*! \fn void randMode(Map *L)
\brief Run the mode of the game where the player play with random moves (Map rotations and DO_NOTHING include).
\param L The labyrinth map structure.
*/
void randMode(Map *L);
#endif