-
Notifications
You must be signed in to change notification settings - Fork 0
/
Engine.h
27 lines (23 loc) · 876 Bytes
/
Engine.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
#pragma once
#include <iostream>
#include "Omok.h"
#include "OmokMove.h"
extern long long moves_generated;
// 3-state board functions
int next_player(Omok omok);
bool five_in_a_row(int cells[]);
int winner_of(Omok omok);
std::vector<OmokMove> next_moves(Omok omok, int radius);
Omok result(Omok omok, OmokMove move);
int evaluate(Omok omok);
int minimax(Omok omok, int depth);
std::vector<OmokMove> evaluate_moves(Omok omok, int radius, int depth);
// Bitboard functions
bool five_in_a_row_bitboard(bool cells[]);
bool next_player_bitboard(Omok omok);
bool bitboard_state(Omok omok, bool player);
std::vector<OmokMove> next_moves_bitboard(Omok omok, int radius);
double evaluate_bitboard(Omok omok);
Omok result_bitboard(Omok omok, OmokMove move);
int minimax_bitboard(Omok omok, int depth);
std::vector<OmokMove> evaluate_moves_bitboard(Omok omok, int radius, int depth);