James Posted April 7, 2008 Share Posted April 7, 2008 So is this 1 player vs CPU or player vs player? I would play it but I am not on Windows at the moment. It looks great though! Maybe you should make a connect 4 game next Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
JSThePatriot Posted April 7, 2008 Share Posted April 7, 2008 I think you need to create the AI for it. This currently is a PvP game. I prefer to have the computer compute at different levels and play against me.http://www.vortexrevolutions.com/computers/ttt.cfmThe above link takes you to my first web page, and first web program. It actually plays tic tac toe with you. There are 3 different levels that work. The 4th level would have made the computer never lose. I have never went back and finished work on level 4. I studied the game and created the game in 8 hours total. It was quite a fun experience.Enjoy,JS AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) Link to comment Share on other sites More sharing options...
James Posted April 7, 2008 Share Posted April 7, 2008 I am currently working on a multi-level AI tic-tac-toe game. I have found some cool algorithms from around the internet, I quite like the look of NegaMax. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
JustinReno Posted April 8, 2008 Author Share Posted April 8, 2008 so your not releasing the source I have trouble figuring out ways of checking if objects are connected together such as 3 objects in a row for games I have tried to make this could help me and others.I will, don't worry. So is this 1 player vs CPU or player vs player? I would play it but I am not on Windows at the moment. It looks great though!Maybe you should make a connect 4 game nextIts just player vs player (I contemplated if I should add a CPU, but I never really got around to it )I think you need to create the AI for it. This currently is a PvP game. I prefer to have the computer compute at different levels and play against me.http://www.vortexrevolutions.com/computers/ttt.cfmThe above link takes you to my first web page, and first web program. It actually plays tic tac toe with you. There are 3 different levels that work. The 4th level would have made the computer never lose. I have never went back and finished work on level 4. I studied the game and created the game in 8 hours total. It was quite a fun experience.Enjoy,JSCool, thanks. I am currently working on a multi-level AI tic-tac-toe game. I have found some cool algorithms from around the internet, I quite like the look of NegaMax.Cool, hope to see it soon! I'll check out that algorithm Thanks.Anyways, still, expect to see some minor or major improvements (Levels, AI(Maybe), better music, sounds, pictures). Thanks for all of the feedback and I hope to see more in the future. Link to comment Share on other sites More sharing options...
James Posted April 8, 2008 Share Posted April 8, 2008 Check out this algorithm I am using here when I have a basic AI I shall post it along with my game. Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
JellyFish666 Posted May 7, 2008 Share Posted May 7, 2008 still interested in source, if you wouldn't mine sharing. Link to comment Share on other sites More sharing options...
NELyon Posted May 7, 2008 Share Posted May 7, 2008 still interested in source, if you wouldn't mine sharing.He's been banned Link to comment Share on other sites More sharing options...
JellyFish666 Posted May 8, 2008 Share Posted May 8, 2008 He's been banned oh that is sad was really looking forward to it.I want to know how he detected if objects were in same row/touching. Link to comment Share on other sites More sharing options...
James Posted May 8, 2008 Share Posted May 8, 2008 Using arrays. Le't say the board is in an array like so: $iBoard[9] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] If you wanted to check if a side was blocked from the middle then you could check either side of $iBoard[4] (I think it's 4) Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
enaiman Posted May 29, 2008 Share Posted May 29, 2008 If you're curious about how the code might look - you can search for my Tic-tac-Toe or Nahuel's. And to make the script to play on different levels - that would be possible by putting some "Random" statements. SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now