2016 ソフトウェア設計及び演習用の班Wiki
16::gr11::engine.h
#ifndef ENGINE_H #define ENGINE_H #include "commondefs.h" #include "list.h" #include <time.h> #include <stdlib.h> #include <stdint.h> int board_weight[YMAX][XMAX]; int coeff; int move_possible(int board[YMAX][XMAX], int x, int y, int color); void computer_turn(int board[YMAX][XMAX], int recommend_depth, int white_score, int black_score, int* x, int* y); void setup_board_weight(); int evaluate(int board[YMAX][XMAX], int color); int calc_value(int board[YMAX][XMAX], int self_color); int alpha_beta(int board[YMAX][XMAX], int alpha, int beta, int depth, int color, int* pos); int minimax(int board[YMAX][XMAX], int alpha, int beta, int depth, int color, int* pos); #endif
最終更新日:2016/08/02 16:50:04