|
Post by me3you2 on Mar 17, 2006 0:04:28 GMT -5
So I got bored and started making a tictacktoe game for Lunar. This is just me getting the images aligned, it doesnt do anything yet. The hard part for me is going to make the AI for it. I'll keep everyone updated on the progress. Update: Got most of the game done. Just need to add how the user pick what spot to move to. The Computer AI isnt too good. Will have a copy out soon. Update #2: Ok here it is. phantom3.org/Lunar/tictacktoe.zipExtract the Zip to your Lunar\Scripts folder. It binds Keys 1 ,2,3,4,5,6,7,8,9,0,Insert 0 is to restart the game at any time. Insert is to Exit the game. All other keys represent each box on the game board. The code is a mess. If you find any bugs let me know. My resolution while making the game was: WINDOWER.INI X Resolution=1024 Y Resolution=768 FFXI: Overlay:1024x768 Background:1024x1024 Enjoy. ^.^
|
|
|
Post by TinyTerror on Mar 17, 2006 0:26:01 GMT -5
hahahahahhahahah nice!
|
|
sdphantom
Full Member
Savior and Destroyer
Posts: 230
|
Post by sdphantom on Mar 18, 2006 15:39:06 GMT -5
This has me thinking of a perfect AI where no matter what you do, the result is either, computer wins or a tie occurs. I used to be so good at this game, I could make that happen no matter who I played.
Basically, there are 2 ways to make the AI.
A heuristic AI runs through a bunch of if statements and puts in randomization where a play doesn't matter. The more random it is, the easier it is to beat.
Another, more precise AI involves a bit of ingenuity that involves each move the player makes and refers to a complex array to tell it what spot to claim. This'll result in having a huge AI data code, but when made right, it'll be impossible to beat.
|
|
|
Post by me3you2 on Mar 18, 2006 16:36:49 GMT -5
The AI that is in the game I put together very fast. All it does for now is picks a random num from 1-9, and checks if that spot is taken. If it is it pick a new one.
|
|
sdphantom
Full Member
Savior and Destroyer
Posts: 230
|
Post by sdphantom on Mar 18, 2006 18:02:49 GMT -5
It's hardly an AI if it just does that, but it's something, lol.
|
|
Sufo
New Member
Extreme Web Designer and Scripter
Posts: 48
|
Post by Sufo on Mar 18, 2006 18:32:45 GMT -5
nice. now you should make a chess game! jk. that would take to long.
|
|
|
Post by DarkAquaus on Aug 5, 2006 12:17:29 GMT -5
rofl ;P Nice work
|
|