资源简介

Othello (or Reversi) is a strategy board game for two players, played on an 8 × 8 uncheckered board.
There are sixty-four identical game pieces called disks (often spelled "discs"), which are light on one
side and dark on the other.

The object of the game is to have the majority of disks turned to display your color when the
last playable empty square is filled.

资源截图

代码片段和文件信息

#include “pch.h“
#include 
#include “Evaluate.h“
using namespace std;





//最大最小博弈与α-β剪枝 
Do * Find(Othello *board enum Option player int step int min int max Do *choice)
{
int i j k num;
Do *allChoices;
choice->score = -MAX;
choice->pos.first = -1;
choice->pos.second = -1;

num = board->Rule(board player);
if (num == 0)    /* 无处落子 */
{
if (board->Rule(board (enum Option) - player))    /* 对方可以落子让对方下.*/
{
Othello tempBoard;
Do nextChoice;
Do *pNextChoice = &nextChoice;
board->Copy(&tempBoard board);
pNextChoice = Find(&tempBoard (enum Option) - player step - 1 -max -min pNextChoice);
choice->score = -pNextChoice->score;
choice->pos.first = -1;
choice->pos.second = -1;
return choice;
}
else 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    ..A..H.     42496  2020-01-18 21:10  othello\.vs\othello\v15\.suo

     文件    5308416  2020-01-18 21:10  othello\.vs\othello\v15\Browse.VC.db

     文件     327680  2020-01-18 21:01  othello\.vs\othello\v15\ipch\b4860dd13a278689.ipch

     文件      94720  2020-01-18 21:08  othello\Debug\othello.exe

     文件     925504  2020-01-18 21:08  othello\Debug\othello.ilk

     文件     937984  2020-01-18 21:08  othello\Debug\othello.pdb

     文件       1064  2020-01-18 21:08  othello\othello\Debug\othello.log

     文件     216587  2020-01-18 21:08  othello\othello\Debug\othello.obj

     文件    2031616  2020-01-18 13:02  othello\othello\Debug\othello.pch

     文件       1978  2020-01-18 21:08  othello\othello\Debug\othello.tlog\CL.command.1.tlog

     文件      20710  2020-01-18 21:08  othello\othello\Debug\othello.tlog\CL.read.1.tlog

     文件       1876  2020-01-18 21:08  othello\othello\Debug\othello.tlog\CL.write.1.tlog

     文件       1758  2020-01-18 21:08  othello\othello\Debug\othello.tlog\link.command.1.tlog

     文件       3856  2020-01-18 21:08  othello\othello\Debug\othello.tlog\link.read.1.tlog

     文件       1016  2020-01-18 21:08  othello\othello\Debug\othello.tlog\link.write.1.tlog

     文件        281  2020-01-18 21:08  othello\othello\Debug\othello.tlog\othello.lastbuildstate

     文件       4480  2020-01-18 13:02  othello\othello\Debug\pch.obj

     文件     166912  2020-01-18 21:08  othello\othello\Debug\vc141.idb

     文件     430080  2020-01-18 21:08  othello\othello\Debug\vc141.pdb

     文件       9926  2020-01-18 21:08  othello\othello\Evaluate.h

     文件       6634  2020-01-18 21:08  othello\othello\Game.h

     文件      13884  2020-01-18 21:07  othello\othello\othello.cpp

     文件       8480  2020-01-18 20:08  othello\othello\othello.vcxproj

     文件       1331  2020-01-18 20:08  othello\othello\othello.vcxproj.filters

     文件        165  2020-01-18 12:43  othello\othello\othello.vcxproj.user

     文件        188  2020-01-18 12:43  othello\othello\pch.cpp

     文件        614  2020-01-18 12:43  othello\othello\pch.h

     文件       1435  2020-01-18 12:43  othello\othello.sln

     目录          0  2020-01-18 20:05  othello\.vs\othello\v15\ipch

     目录          0  2020-01-18 21:10  othello\.vs\othello\v15

............此处省略10个文件信息

评论

共有 条评论