Jump to content

Python Tic Tac Toe Game


josich

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

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...