jjzjj

spareCell

全部标签

c# - Tic Tac Toe完美AI算法: deeper in "create fork" step

我已经在StackOverflow上阅读了许多TicTacToe主题。我发现维基百科上的策略适合我的演示项目:Aplayercanplayperfecttic-tac-toeiftheychoosethemovewiththehighestpriorityinthefollowingtable[3].1)Win:Ifyouhavetwoinarow,playthethirdtogetthreeinarow.2)Block:Iftheopponenthastwoinarow,playthethirdtoblockthem.3)Fork:Createanopportunitywhereyo