38 lines
754 B
C++
38 lines
754 B
C++
#ifndef DEF_MAIN_H
|
|
|
|
#define DEF_MAIN_H
|
|
|
|
/* [1] Libs
|
|
=========================================================*/
|
|
/* (1) internes */
|
|
#include <iostream>
|
|
#include <string>
|
|
#include <vector>
|
|
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
|
|
/* (2) Externes */
|
|
#include "dep/term.h"
|
|
#include "dep/ChessContext.h"
|
|
|
|
/* (3) Namespace */
|
|
using namespace std;
|
|
|
|
|
|
/* [2] Enumerations et structures
|
|
=========================================================*/
|
|
enum KEYBOARD{
|
|
HAUT = 72,
|
|
BAS = 80,
|
|
GAUCHE = 75,
|
|
DROITE = 77
|
|
};
|
|
|
|
/* [3] Methodes
|
|
=========================================================*/
|
|
int main();
|
|
void display_board(ChessContext& ctx);
|
|
void game_routine(ChessContext& ctx);
|
|
void chess_input(int* origin, int* dest);
|
|
|
|
#endif |