top | item 5902927

Show HN: Playable Ultimate Tic Tac Toe

160 points| KennyCason | 12 years ago |ken-soft.com | reply

50 comments

order
[+] sigkill|12 years ago|reply
Fwiw I found this one better and it has a rudimentary AI too.

(not mine)

http://joeyrobert.org/projects/ultimatetictactoe/

[+] joeyrobert|12 years ago|reply
Thanks for the plug. I too hacked it out in a couple of hours after reading the article.
[+] KennyCason|12 years ago|reply
Cool. I'll add AI mine to mine later. It was a quick two hour hack. Thanks for the link to another one. I'll see what they did for AI. Though I'll probably employ a simple alpha-beta pruning alg
[+] Kiro|12 years ago|reply
It's fun to see that whenever a game concept reaches the front page there are at least 10 different implementations done within hours. Good job.
[+] KennyCason|12 years ago|reply
Thanks, I woke up around lunch and saw the post and was like, well, I guess I know what I'm doing today. Honestly I only originally planned on working on my "color pencil" line drawing. haha
[+] Falling3|12 years ago|reply
Nice... it'd be really cool to get an AI to play against as well.
[+] mbillie1|12 years ago|reply
Doing the AI would be fun... it seems like one of those cases where Haskell/Clojure could provide a very elegant solution.
[+] KennyCason|12 years ago|reply
I only had about 2-3 hours to work on it. :) But I agree it would be fun to add. I'll repost if I add AI in the future.
[+] rschmitty|12 years ago|reply
Hah, that was the first thing I thought about when I read the article yesterday. Then I checked out ultimatetictactoe.com and found it was registered the same day and I got sad :(
[+] KennyCason|12 years ago|reply
Fixed random mouse offset bug & whenever all tile become playable, they are all highlighted. With the exception of the start state (As I think it looks better white)
[+] atjoslin|12 years ago|reply
Now to make a multiplayer version... I would use Firebase and Angular probably. Unfortunately I don't feel like staying up all night on a project tonight :-p
[+] DanBC|12 years ago|reply
I'd love to see an HN competition of AIs learning and playing UltimateTicTacToe.
[+] KennyCason|12 years ago|reply
I'm inclined to say there are already a few simple AIs that play perfectly, so it would likel not be that exciting :/
[+] ramki|12 years ago|reply
http://i.imgur.com/QuPvQyF.png this is the bug i found with this game, how x can win, when I(in blue) scored 4 before x reaches 3
[+] redthrowaway|12 years ago|reply
The goal is not to win the most boards, but to complete 3 in a row on the large board by winning the small boards. If you're aware of that, I'm not sure what you're claiming the bug is. Could you clarify?
[+] bdirgo|12 years ago|reply
X got three in a row
[+] gus_massa|12 years ago|reply
I like it. The green highlighting of the active subboard is too subtle and sometimes I miss it. Another option is to flash the active subboard when the players try to use another subboard.
[+] KennyCason|12 years ago|reply
Yeah, I uploaded originally without the highlighting, but I kept getting lost as well haha
[+] mbillie1|12 years ago|reply
I was messing with this the last few hours... beat me to it :) well done! What'd you use?
[+] KennyCason|12 years ago|reply
Cool:) just used JQuery and canvas. I built all the draw functions myself just to get more familiar with HTML5
[+] Sami_Lehtinen|12 years ago|reply
If I would be unemployed, I would create ultimate 3D tic tac toe for hardcore players.
[+] KennyCason|12 years ago|reply
Step 1: quit job Step 2: create ultimate 3d tic tac toe
[+] gklitt|12 years ago|reply
Nice job Kenny! We should play sometime.
[+] KennyCason|12 years ago|reply
Sure! let me get the multi-player and AI-Complete version done, or we could bust out the marker board/paper :)
[+] deletes|12 years ago|reply
Too bad the first player always wins.
[+] sold|12 years ago|reply
First turn should belong to X not O.
[+] KennyCason|12 years ago|reply
fortunately that is very easy to fix, done.
[+] jrpt|12 years ago|reply
This is cool.