A possibly (as far as I have tested) unbeatable NxN Tic Tac Toe AI logic, where linesize=N
-
GenericTicTacToe.java - file with AI logic
-
Thanks to this redditor for finding fault with previous version of code
- Wrote a test to confirm 3x3 board is unbeatable for all possible moves with the patch
-
To do: Test 4x4 and higher board sizes
Here's an illustration of how this AI works
To make a playable version, cross-platform game development framework libGDX was used
- Android apk
- Java Jar file
- Asset Credits
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License
