井字游戏计算机移动 [英] Tic Tac Toe Game Computer Moves

查看:96
本文介绍了井字游戏计算机移动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我正在开发井字游戏.对于计算机移动,我使用了随机无功能.但是问题是,它并没有使挑战变得足够困难,无法使玩家远离胜利.
我需要帮助来开发算法,这样计算机才能发挥作用.

Hi guys, I am developing tic tac toe game. For Computer moves I have used random no functions. But the problem is, it does not make the challenge hard enough to keep player away from win.
I need help to develop an algorithm, so that, computer will play to win.

推荐答案

然后呢?您提出了一个问题,但不确定是什么阻止了您.

现在,请看这篇文章:实现了Tic Tac Toe C#和计算机播放器一起使用 [ Minimax说明 [
And? You came with a question but not specific on whats stopping you.

For now, look at this article: Tic Tac Toe Implemented in C# with Computer Player[^]

To add on, for best possible move, look at this algo: Minimax Explained[^]


在这里看看: http://stackoverflow.com/questions/8880064/c-sharp-tic- tac-toe-recursive-algorithm [ ^ ]-答案应该会对您有所帮助!
Have a look here: http://stackoverflow.com/questions/8880064/c-sharp-tic-tac-toe-recursive-algorithm[^] - the answers should help you!


这篇关于井字游戏计算机移动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆