# Tic Tac Toe with "Artificial Intelligence"

**URL:** <https://community.thunkable.com/t/tic-tac-toe-with-artificial-intelligence/229456>\
**Category:** Promote your App\
**Created:** [September 16, 2019, 4:56pm UTC](https://community.thunkable.com/t/tic-tac-toe-with-artificial-intelligence/229456 "2019-09-16T16:56:33Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [September 16, 2019, 4:56pm UTC](https://community.thunkable.com/t/tic-tac-toe-with-artificial-intelligence/229456/1 "2019-09-16T16:56:33Z")

</div>

We set ourselves a challenge here recently of going through the entire app publication process (again!) to see what had changed since last time. To do this an app was required - so we chose Tic Tac Toe (or naughts and crosses, or Xs and Os - whichever you prefer.)

After a few weeks testing, here is version 1.0. There’s a lot of room for improvement, but I’d love to get feedback on what you think should be fixed first.

> <https://play.google.com/store/apps/details?id=com.thunkable.domhnall.ttt>
>
> Enjoy the ancient game of tic tac toe directly on your phone.
> 
> This two player version requires humans to play as both X and O for now, but in a future update we hope to introduce single player mode where you can play against an AI opponent...

## Game Play

Main Menu:

 ![screener_1568638299197](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/9/79b399c75ae8ba1c6a5a370acdbfc39e720db22e.png)

Game Screen:

 ![screener_1568638315150](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/e/5e25d46c9048f4ae5a75c4628f218ef95a0d718b.png)

Identify the winner:

 ![screener_1568638339322](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/0/b08f3d4810695fbaa02f5d997bf6429a1d12aae1.png)

Game Over

 ![screener_1568638360037](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/3/a32c258ffd7ed616822a142e9f8554ec85b13801.png)

## Thanks

I want to thank the [@Community\_Testers](https://community.thunkable.com/groups/community_testers) who helped out while this app was in beta, in particular @BlueWhaleYT and @eoinparkinson who helped improve the UX greatly.

If you want to help Beta Test apps for other Community members, please consider joining the [Community Testers](http://community.thunkable.com/t/become-a-community-app-tester/208874) group

---

<div class="post-metadata">

**Author:** ![BlueWhaleYT](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bluewhaleyt/32/28437_2.png) [@BlueWhaleYT](https://community.thunkable.com/u/BlueWhaleYT)\
**Post date:** [September 16, 2019, 11:05pm UTC](https://community.thunkable.com/t/tic-tac-toe-with-artificial-intelligence/229456/2 "2019-09-16T23:05:37Z")

</div>

The undo button are weird,look like is overlapping many shadow of the button.  
(when disabled

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [September 16, 2019, 11:08pm UTC](https://community.thunkable.com/t/tic-tac-toe-with-artificial-intelligence/229456/3 "2019-09-16T23:08:52Z")

</div>

Thanks again @BlueWhaleYT - I have an update planned around this button as it happens, so I might remove the shadows then too.

---

<div class="post-metadata">

**Author:** ![Red\_Panda](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/red_panda/32/19387_2.png) [@Red\_Panda](https://community.thunkable.com/u/Red_Panda)\
**Post date:** [September 17, 2019, 10:39am UTC](https://community.thunkable.com/t/tic-tac-toe-with-artificial-intelligence/229456/4 "2019-09-17T10:39:46Z")

</div>

I tried to do this as a challenge for myself, too. Great job on the UI everyone 👏 Since there is an ideal strategy, playing against a computer opponent would be nice. I found this very difficult in my version of the app, since there is no way to cycle through the fields, similar to the `AnyComponent` from Thunkable Classic

---

<div class="post-metadata">

**Author:** ![eoinparkinson](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/eoinparkinson/32/143769_2.png) [@eoinparkinson](https://community.thunkable.com/u/eoinparkinson)\
**Post date:** [September 17, 2019, 8:19pm UTC](https://community.thunkable.com/t/tic-tac-toe-with-artificial-intelligence/229456/5 "2019-09-17T20:19:10Z")

</div>

The AI is fantastic, credit where credit is due. The stats is a pretty cool feature, can’t find any bugs with this version of the app. The UI is simple and intuitive, by far the best update for this app! Can’t wait to see what else you will add in the future. Maybe online multi-player? 🙂

---

<div class="post-metadata">

**Author:** ![BlueWhaleYT](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/bluewhaleyt/32/28437_2.png) [@BlueWhaleYT](https://community.thunkable.com/u/BlueWhaleYT)\
**Post date:** [September 17, 2019, 11:22pm UTC](https://community.thunkable.com/t/tic-tac-toe-with-artificial-intelligence/229456/6 "2019-09-17T23:22:37Z")

</div>

Hi there, @domhnallohanlon.  
When I switched to play with A.I  
Sometimes it said Oops!The O cannot move there  
After I close the dialog,the O user become my control.  
The X user also is mine.  
The A.I accidentally revoked.

---

<div class="post-metadata">

**Author:** ![sushil\_balami](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@sushil\_balami](https://community.thunkable.com/u/sushil_balami)\
**Post date:** [September 18, 2019, 7:28am UTC](https://community.thunkable.com/t/tic-tac-toe-with-artificial-intelligence/229456/7 "2019-09-18T07:28:50Z")

</div>

![ttt](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/3/f39c679f4c474c475a26bb156123ef7bb4173b1a.png)

It’s good. 😅 To play with AI  
I don’t feel overlapping problems on mine Redmi 5  
AI is failing mine many tricks 😅  
AI is best.

Like I suggest to make some levels like  
Easy  
hard  
medium

And firebase leaderboard also so that user will be attached more with it 😌

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [September 30, 2019, 9:50am UTC](https://community.thunkable.com/t/tic-tac-toe-with-artificial-intelligence/229456/8 "2019-09-30T09:50:24Z")

</div>

> [@Red\_Panda](#):
>
> there is no way to cycle through the fields

Thanks for the nice feedback @Red_Panda - just to let you know that I used the [Any Component](https://docs.thunkable.com/any-component-blocks) blocks in Thunkable X - these were [added a while ago](http://community.thunkable.com/t/any-component-blocks-and-full-screen-video-now-available-in-thunkable-2019-07-19/251443)

* * *

> [@eoinparkinson](#):
>
> The AI is fantastic

Thanks @eoinparkinson - yes, the long term goal for this is to have an “invite your friend” style multiplayer whenever I get time, but for now I have lots of small tweaks and updates to make first.

* * *

Thanks @BlueWhaleYT for reporting this - I redid the blocks for how turns are handled, so hopefully this works more reliably now.

* * *

> [@sushil\_balami](#):
>
> Like I suggest to make some levels like

Great suggestions @sushil_balami, I’ll definitely add different strengths to the AI, not sure how the leaderboard would work though. I’ll have a think about it.

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [September 30, 2019, 9:57am UTC](https://community.thunkable.com/t/tic-tac-toe-with-artificial-intelligence/229456/9 "2019-09-30T09:57:11Z")

</div>

Thanks to everyone who downloaded, tested and left reviews in the Android version.

Just by way of a quick update - the iOS version of this app is now available. If you happen to have an iPhone or iPad I’d love to know how well this works for you.

> **[‎Tic Tac Toe AI](https://apps.apple.com/ie/app/tic-tac-toe-ai/id1481463050)**
>
> ‎In this initial release of Tic Tac Toe AI you can play Xs and Os against your phone or against another human in real life.
> 
> Choose who goes first and keep track of your stats to monitor your progress.
> 
> For future releases we hope to bring you online...

---

<div class="post-metadata">

**Author:** ![aidenbok203](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/aidenbok203/32/47032_2.png) [@aidenbok203](https://community.thunkable.com/u/aidenbok203)\
**Post date:** [October 3, 2019, 2:39pm UTC](https://community.thunkable.com/t/tic-tac-toe-with-artificial-intelligence/229456/10 "2019-10-03T14:39:32Z")

</div>

The app is quite good I think

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [October 3, 2019, 2:59pm UTC](https://community.thunkable.com/t/tic-tac-toe-with-artificial-intelligence/229456/11 "2019-10-03T14:59:42Z")

</div>

Thanks for the feedback @aidenbok203!

Any features you’d like to see in the future??

---

<div class="post-metadata">

**Author:** ![ruybmello](https://avatars.discourse-cdn.com/v4/letter/r/e79b87/32.png) [@ruybmello](https://community.thunkable.com/u/ruybmello)\
**Post date:** [October 4, 2019, 1:54pm UTC](https://community.thunkable.com/t/tic-tac-toe-with-artificial-intelligence/229456/12 "2019-10-04T13:54:13Z")

</div>

The app works nicely! Sound effects would be a nice addition to the game. Also, using a “hidden” navigator would help prevent the screens from sliding in the middle of the game.

---

<div class="post-metadata">

**Author:** ![Red\_Panda](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/red_panda/32/19387_2.png) [@Red\_Panda](https://community.thunkable.com/u/Red_Panda)\
**Post date:** [October 17, 2019, 9:32pm UTC](https://community.thunkable.com/t/tic-tac-toe-with-artificial-intelligence/229456/13 "2019-10-17T21:32:24Z")

</div>

> [@domhnallohanlon](#):
>
> [Any Component](https://docs.thunkable.com/any-component-blocks) blocks in Thunkable X - these were [added a while ago](http://community.thunkable.com/t/any-component-blocks-and-full-screen-video-now-available-in-thunkable-2019-07-19/251443)

I must’ve missed that. I was now able to rework parts of my app, let’s see if anyone can get a computer player to work. The blocks canvas is still awfully laggy, I have up to two seconds delay. Not very responsive…

---

<div class="post-metadata">

**Author:** ![JiQoyn](https://avatars.discourse-cdn.com/v4/letter/j/90ced4/32.png) [@JiQoyn](https://community.thunkable.com/u/JiQoyn)\
**Post date:** [October 22, 2019, 6:09pm UTC](https://community.thunkable.com/t/tic-tac-toe-with-artificial-intelligence/229456/14 "2019-10-22T18:09:05Z")

</div>

Is it possible to get the project so I can learn how you performed the steps?

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [October 22, 2019, 11:12pm UTC](https://community.thunkable.com/t/tic-tac-toe-with-artificial-intelligence/229456/15 "2019-10-22T23:12:41Z")

</div>

I might open source this project in the future if I end up not having the time to maintain it, but happy to answer any specific questions if you have them.

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [June 10, 2020, 10:23am UTC](https://community.thunkable.com/t/tic-tac-toe-with-artificial-intelligence/229456/16 "2020-06-10T10:23:21Z")

</div>

It’s been a while since I’ve updated this project - but you can now play it as a web app.

Check it out:

> **[Thunkable X Web Companion](https://thunk.app/web-build/index.html?webAppId=bu44caKFv&from=x)**
>
> Powered by Thunkable

---

<div class="post-metadata">

**Author:** ![browncoatjustice52](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/browncoatjustice52/32/71039_2.png) [@browncoatjustice52](https://community.thunkable.com/u/browncoatjustice52)\
**Post date:** [June 10, 2020, 10:25am UTC](https://community.thunkable.com/t/tic-tac-toe-with-artificial-intelligence/229456/17 "2020-06-10T10:25:35Z")

</div>

Wow the app looks fantastic…  
Good job everybody who made this. The AI version sounds great.

---

<div class="post-metadata">

**Author:** ![zbk0612eip8w](https://avatars.discourse-cdn.com/v4/letter/z/7ab992/32.png) [@zbk0612eip8w](https://community.thunkable.com/u/zbk0612eip8w)\
**Post date:** [June 13, 2020, 2:00pm UTC](https://community.thunkable.com/t/tic-tac-toe-with-artificial-intelligence/229456/18 "2020-06-13T14:00:23Z")

</div>

please give me link for remix in latest version

---

<div class="post-metadata">

**Author:** ![zbk0612eip8w](https://avatars.discourse-cdn.com/v4/letter/z/7ab992/32.png) [@zbk0612eip8w](https://community.thunkable.com/u/zbk0612eip8w)\
**Post date:** [June 19, 2020, 8:58am UTC](https://community.thunkable.com/t/tic-tac-toe-with-artificial-intelligence/229456/19 "2020-06-19T08:58:19Z")

</div>

Very good but please fix this AI issue that the AI rarely wins. It is so easy to beat the AI even with better AI mode on

---

<div class="post-metadata">

**Author:** ![zbk0612eip8w](https://avatars.discourse-cdn.com/v4/letter/z/7ab992/32.png) [@zbk0612eip8w](https://community.thunkable.com/u/zbk0612eip8w)\
**Post date:** [June 21, 2020, 9:21am UTC](https://community.thunkable.com/t/tic-tac-toe-with-artificial-intelligence/229456/20 "2020-06-21T09:21:46Z")

</div>

@domhnallohanlon please give me link to remix thanks 🙂

[Next page](https://community.thunkable.com/t/tic-tac-toe-with-artificial-intelligence/229456.md?page=2)
