資源簡介
代碼片段和文件信息
#include??
#include??
#include??
#include??
??
using?namespace?std;??
??
class?Gobang{??
????????
??????private:??
????????????????
?????????????int?chessboard[15][15];??????????//棋盤???
?????????????int?five[5][5];??????????????????//5*5小棋盤???
?????????????int?six[6][6];??
?????????????int?computernumhumannum;?????????//棋子數(shù)???
?????????????int?p1p2;???????????????????????//棋子數(shù)???
?????????????int?last1last2;????????????????????//記錄上一步????
?????????????int?comresults[15][15];?????????????//存儲(chǔ)分?jǐn)?shù)??
?????????????int?humresults[15][15];??
?????????????int?temp[15][15];?????????????//臨時(shí)棋盤???
?????????????int?max_commax_hummax_com_imax_com_jmax_hum_imax_hum_j;???????????//存儲(chǔ)電腦和玩家的最高分?jǐn)?shù)?和相應(yīng)的坐標(biāo)???
?????????????int?total_comtotal_hum;
評論
共有 條評論