-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAI.h
20 lines (15 loc) · 1.02 KB
/
AI.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once
#include "functions_definitions.h"
/*
Functions that allows us to create an AI player
*/
void AI1_make_move(Board* table_s, Player* player_AI);
void AI2_make_move(Board* table_s, Player* player_AI);
bool AI1_check_insert_conditions(Board* table_s, Player* player_AI, int i, int j, char AI_pawn_char, int dice_value);
bool AI2_check_insert_conditions(Board* table_s, Player* player_AI, int i, int j, char AI_pawn_char, int dice_value);
void AI1_insert_pawn_from_bar(Board* table_s, Player* player_AI, int dice_value, char AI_pawn_char);
void AI2_insert_pawn_from_bar(Board* table_s, Player* player_AI, int dice_value, char AI_pawn_char);
void AI1_take_pawns_off_the_board(Board* table_s, Player* player_AI, char AI_pawn_char);
void AI2_take_pawns_off_the_board(Board* table_s, Player* player_AI, char AI_pawn_char);
void AI1_move_pawn(Board* table_s, Player* player_AI, int i, int j, int dice_sum, char AI_pawn_char);
void AI2_move_pawn(Board* table_s, Player* player_AI, int i, int j, int dice_sum, char AI_pawn_char);