Hi, I'm Kavin Gray, I am a college student majoring in computer science.I specialize in web programming , website design, mobile web and software development.Check out my works to learn 'bout me, or follow me on twitter.
Simple Tic Tac Toe

Simple Tic Tac Toe release.This is a small funny game written in Python using Alpha-beta pruning algorithm. It’s also an experimental program for my py & wxpython study.So just sit back and enjoy this game.All the suggestions about this game will be welcome.

New Version update!

Detail:

Version: 1.1 Beta

Language: Python 2.5 + wxpyhon 2.8

Platforms: Windows XP/Vista/Windows 7

Last Update: February 27, 2009

How to play

Simple Tic Tac Toe is a funny game for two players, O and X, who take turns marking the spaces in a 3*3 grid.The player who succeeds in placing three respective marks in a horizontal, vertical or diagonal row first wins the game. (Learn more about the rules of tic tac toe)

1. Get Start:

Choose one mode (Robot VS Man(one player) mode or Man VS Man (two player)) on the meun to get start.You can pick a opponent in Robot VS Man mode.The Robot “King” which hava the highest AI is invincible.

2. Rules

You can keep playing if you agree to continue after each round is over.Your score will be recorded & updated in time.What’s more,you can save the current game or open a old game to continue.Final score will be printed when you close the running game or refuse to continue.You can check out whether you have set a new record on the High Score borad. lol

3. Score

Man VS Man Mode

Win +10 | Drawn +5 | Lost +0 | Goback +0

Man VS Robot Mode

U Vs Robot Jack: Win +10 | Drawn +5 | Lost +0 | Goback +0

U Vs Robot Queen: Win +15 | Drawn +10 | Lost +0 | Goback +0

U Vs Robot King: Win +50 | Drawn +15 | Lost +0 | Goback +0

(Notice: If one player go back in one round.He can’t score in this round even if he wins or draws.)

Feel free to leave a comment or mail me if u have any suggestion or find a bug in this game.Thank you

Update:

Fixed a bug that unable to end the process when the program is closed

Download (.py source &.exe file included)

Design

« Tic-Tac-Toe算法笔记(二):Alpha-beta剪枝算法

拂晓轻舞 »

Subscribe to This Post

Feb, 20th, 2009

14 Comments

4,835 views

14 Comments so Far

Post a Comment

brycholeat February 20, 2009 7:15 am

I just had a try on it.
On “How To Play”, you did make a simple mistake at the very beginning. It’s “An easy and funny game”. Haha.

Kavinat February 20, 2009 7:27 am

@brychole Oops,Got it = =! 真是低级错误,你眼够尖的,哈哈

bangat February 20, 2009 8:06 am

用英文写 这么牛

adrianat February 20, 2009 8:12 am

i would like to see you to port the code to IronPython, which is .NET implementation of Python, haha.

Kavinat February 20, 2009 8:24 am

@bang 为了过四级,哈哈~kidding
@adrian 嗯,好啊~我得先把代码再整理下,呵呵

jeffat February 20, 2009 3:56 pm

good

brycholeat February 21, 2009 6:02 pm

嘻嘻,有bug了。New Game的时候只要Name和Diffuculty都按Cancel一样可以进入游戏,而且Robot win了player还能继续玩,而且不会提示结束,你试试吧……

Kavinat February 21, 2009 6:51 pm

其实Robot win了还是可以继续下一局的~~~这个积分是一直这么一直积下去,直到你Close game或者在每局结束时选择不再继续才算结束。然后那个Cancel我还真给漏了,这就去改,哈哈

hooraceat February 22, 2009 11:02 pm

python的游戏其实有一个pygame的包的,用那个或许更好!

Kavinat February 22, 2009 11:28 pm

嗯,目前还没研究过pygame,当时我做这个其实是为了练习下wxpython,呵呵~

strangerat February 28, 2009 9:45 pm

全英文…

nataliia21at December 25, 2009 7:06 pm

I want to quote your post in my blog. It can?
And you et an account on Twitter?

Kavinat December 25, 2009 8:45 pm

@nataliia21 Sure u can. And my twitter account is @kavin_gray.

cihanat January 13, 2010 5:17 am

you did a good job kid, one of the best GUIs for this game i have ever seen, cool !

Name
Email
Homepage
Your name and e-mail address is required, but your e-mail will not be published.
Message