Alice Community  

Go Back   Alice Community > Alice 2 > Share Worlds

Reply
 
Thread Tools Display Modes
Tic-Tac-Toe
Old
zonedabone
Senior Member
 
zonedabone's Avatar
 
Status: Offline
Posts: 578
Join Date: Nov 2008
Location: In the interwebs
Default Tic-Tac-Toe - 03-27-2010, 07:31 PM

I was wanting to make a good Tic-Tac-Toe game WITH AI. Well. I've done it! Currently, I only checks for immediate problems, such as imminant failure or success. I'm wanting to add a set of "algorithms" that will specify certain tricks if certain conditions are met. Enjoy! You can click on squares to place your tile there, or use the numpad.

EDIT: 2.0 cannot be beaten as far as I know! See if you can, and if you can, post the moves!
Attached Files
File Type: a2w tic-tac-toe 1.0.a2w (372.4 KB, 99 views)
File Type: a2w tic-tac-toe 2.0.a2w (809.6 KB, 117 views)


'Apple Macintosh' - An anagram of 'Complaints Heap'

M.A.C.I.N.T.O.S.H. - Machine Always Crashes, If Not, The Operating System Hangs.

You're *such* a mac person.

Last edited by zonedabone; 03-28-2010 at 10:34 PM.
   
Reply With Quote
Old
zonedabone
Senior Member
 
zonedabone's Avatar
 
Status: Offline
Posts: 578
Join Date: Nov 2008
Location: In the interwebs
Default 03-28-2010, 10:58 PM

!bump!


'Apple Macintosh' - An anagram of 'Complaints Heap'

M.A.C.I.N.T.O.S.H. - Machine Always Crashes, If Not, The Operating System Hangs.

You're *such* a mac person.
   
Reply With Quote
Old
Veryuhbull
Guest
 
Status:
Posts: n/a
Default 03-28-2010, 11:30 PM

I'll give it a try and tell you what happens.
   
Reply With Quote
Did it!
Old
Veryuhbull
Guest
 
Status:
Posts: n/a
Default Did it! - 03-28-2010, 11:37 PM

Didn't take so long. It was a good opponent.

Edit: now to explain. I wanted to get in a time of how long it actually took to beat, about 6 minutes. I think it was about a 15-18 matches before I won. I am a good problem solver so don't feel bad zone. I was really happy when I finally won, a feeling I normally don't get from most alice games. This was great fun zonedabone.

Here's what happened:
_|_|_
_|_|_
_|_|_

_|_|_
_|_|_
_|_|R

B|_|_
_|_|_
_|_|R

B|_|_
_|_|_
_|R|R

B|_|_
_|_|_
B|R|R

B|_|_
R|_|_
B|R|R

(I started smiling at this point)

B|_|B
R|_|_
B|R|R

B|R|B
R|_|_
B|R|R

B|R|B
R|B|_
B|R|R WIN!

And I checked the pattern is repeatable.

And i just found the mirror image works too.
B|R|B
_|B|R
B|R|R

Last edited by Veryuhbull; 03-29-2010 at 12:00 AM.
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 03-29-2010, 09:36 AM

Yah, thats the pattern to win in reality too. Works almost everytime, i can do it, ill see if i can do it in the game...testing and...nope, cant beat it...trying it again and...no, sorry


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames

Last edited by jediaction; 03-29-2010 at 09:40 AM.
   
Reply With Quote
Nice
Old
captain
Guest
 
Status:
Posts: n/a
Default Nice - 04-01-2010, 12:28 PM

i was toying with the idea of an intelligent tictactoe (not alice). i thought make the computer remember all moves you make and the board setup and everything, and when one of the recorded moves or even a mirror and/or rotation is on the board, itll do what you did. in effect, you are its teacher. it plays exactly like you. this might be hard with alice though unless you could get it to save your moves in a file. just thought if you want a challenge.
   
Reply With Quote
Old
jediaction
Senior Member
 
jediaction's Avatar
 
Status: Offline
Posts: 5,064
Join Date: Jul 2009
Location: Bel Air, Maryland
Default 04-01-2010, 12:44 PM

There is a game like that. The game is like battle front, but the game learns your moves and it uses them on you the next game. ITS AWSOME


Website: www.salokingames.com
FaceBook: www.facebook.com/SalokinGames
   
Reply With Quote
Old
reuben2011
Senior Member
 
reuben2011's Avatar
 
Status: Offline
Posts: 489
Join Date: Sep 2009
Location: Hawaii
Default 04-07-2010, 06:57 PM

you should make different difficulty levels. I know it would be hard but it would make the game more fun for novice players.

Last edited by reuben2011; 04-07-2010 at 07:02 PM.
   
Reply With Quote
Old
zonedabone
Senior Member
 
zonedabone's Avatar
 
Status: Offline
Posts: 578
Join Date: Nov 2008
Location: In the interwebs
Default 04-07-2010, 07:33 PM

Yeah. I was thinking of doing the thing where it remembers the moves. Of course, It'd only be for moves that make you win. Otherwise, you could teach it to lose!

That'd actually be cool! Like, for example, it starts off as just choosing a random move, but as you make moves, every one is recorded from winning games, which would be common at the time. After that, it'd get harder and harder, so you'd get better, too!

Another thing I was thinking of is this: The current move set would be used, but if any game is won by the user, the game will be uploaded to a server where me and my buddies can make a solution. We then put it on a move server and presto!


'Apple Macintosh' - An anagram of 'Complaints Heap'

M.A.C.I.N.T.O.S.H. - Machine Always Crashes, If Not, The Operating System Hangs.

You're *such* a mac person.
   
Reply With Quote
well done
Old
arty-fishL
Senior Member
 
arty-fishL's Avatar
 
Status: Offline
Posts: 1,878
Join Date: Mar 2008
Location: In the corner of your eye
Thumbs up well done - 04-11-2010, 08:04 PM

Well done on this, it is very good. I was making a tic-tac-toe game, but mine would be completely unbeatable, because I worked out all the possible outcomes to my moves and ways to counter attack them, but that got boring so I stopped it. And here is zonedabone with a much simpler, yet much smarter and somehow more complicated game that actually works.


█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█
█░░▓░░░░░░░▓░░░░░░░░░░░▓▓░░▓░░░░░░▓░░░▓░░░░█
█░▓░▓░▓▓▓░▓▓▓░▓░▓░░░░░░▓▒▒░░▒░░▓▓░▓▓▓░▓▒░░░█
█░▓▓▓▒▓▒▒▒░▓▒▒▓▓▓▒▓▓▓░▓▓▓░░▓░░░▓▒▒▓▒▓▒▓▒░░░█
█░▓▒▓▒▓▒░░░▓▓░░▒▓▒░▒▒▒░▓▒▒░▓▓░▓▓▒░▓▒▓▒▓▒░░░█
█░▓▒▓▒░▒░░░░▒▒▓▓▓▒░░░░▓▓▒░░░▒▒░▒▒░░▒░▒▓▓▓░░█
█░░▒░▒░░░░░░░░░▒▒▒░░░░░▒▒░░░░░░░░░░░░░░▒▒▒░█
█░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░█

I have mostly moved on from Alice, but may still respond to messages if important [-]
   
Reply With Quote
Reply

Tags
zonedabone

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2018, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.