資源簡介
代碼片段和文件信息
#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;?????????//棋子數???
?????????????int?p1p2;???????????????????????//棋子數???
?????????????int?last1last2;????????????????????//記錄上一步????
?????????????int?comresults[15][15];?????????????//存儲分數??
?????????????int?humresults[15][15];??
?????????????int?temp[15][15];?????????????//臨時棋盤???
?????????????int?max_commax_hummax_com_imax_com_jmax_hum_imax_hum_j;???????????//存儲電腦和玩家的最高分數?和相應的坐標???
?????????????int?total_comtotal_hum;
評論
共有 條評論