Jump to content
josich

Python Tic Tac Toe Game

Recommended Posts

In the process of explore new ways to use python in Houdini I decided to do the Tic Tac Toe game. It's a classic when one wants to learn how to program a game and I had a good time trying. I surprise how houdini is open enough to do silly things like this and how it is becoming my favorite tool ever.

In the way of typing clean and short code, I struggled with a simple but as efective AI I could. ( it's a simple test of machine wins in the next move if not, test if player wins at the next move if not, makes a random move). 

Actually is a very boring game, as said in the 80's movie of "War Games", because nobody wins eventually. I tryed and I just barely won two or three games in a row.

Please, let me know how many game you won in a row ( score points). HIP file in youtube video description.

 

Thanks for testing it !!

Oscar

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×