Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

Tic Tac Toe Sample, V1

Sign in to follow this  


Well, I've got a computer oponent. It's not very smart. In fact, it's not smart at all. More like random.
Should be easy to improve upon though - it was a bit messy to reorganize the code to make it a bit more OO like, but now it should be a matter of improving the computer side algorithms at will, and everything should still work.

Without further ado : Tic Tac Toe Project, in vb 2005

Next: this is v1, but I do want to get some more challenging computer players - I'm thinking of building one that just follows simple rules (try to play where it can complete a line, and where it will get the most marks in a row for this play; if it can't win in this play and oponent is one spot from winning, play in that spot) and another learning player (stores all (maxed number?) the games it's been into, picks up the play that has the best average result), and a variant of this last one would pick a play targeting a difficulty level. (dificulty level would be directly associated with the average result of the plays chosen.).

Should be interesting to see how fast the pure learning player would reach an optimal play sequence (always leading to a tie or a win against an experienced player)

Bonus image:
Sign in to follow this  


Recommended Comments

There are no comments to display.

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
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!