Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Work in Progress / learning AI (20liner)

Author
Message
Teh Go0rfmeister
20
Years of Service
User Offline
Joined: 17th Aug 2003
Location:
Posted: 22nd Feb 2004 14:11 Edited at: 22nd Feb 2004 14:18
atm i'm working on a 20 liner, its a O and X's game, where the AI gets better the more you play it. It does this by remembering what combination of moves caused it to lose, and will try to steer away from them as much as possible. its 66 lines so far but i havent optimised/compressed it or got rid of extra garbage i dont need yet.

so, for teh screenshots:



'scuse the row at the back ground ^_^



btw, 76593815 that you see there is the string that it remembers as the combo of moves to save to a file.

I WIN! (yup this is the bug i'm stuck on atm)

The biggest prob at the start of this was the fact the numpad (which controls which square you wanna put an X in) is backwards to how the co-ords of an array work.

version 2: you can have 2 player, and the AI will learn by watching
version 3: You can choose to be either X or O

(that depends if i can fit it all into 20 lines, i'm cramped with just version 1)

http://www.tinnedhead.tk under re-construction.

Login to post a reply

Server time is: 2024-04-27 18:35:05
Your offset time is: 2024-04-27 18:35:05