classic tictactoe, but one player is an AI
the system works with a ss mechanism which select the best play after defining weights to every possible move,
the mechanism uses branching testing, that generate diferent weights on wires.
the system is around 80k blocks tall
the AI takes 3s to play
PS : no spam proofing, no win detection (you already know I can do that so I didn't include them for space purpose)
there is a "play same button" proofing
on the user interface, you have a reset button (in red), a "make AI play" button (in white), and the moves you can play in the grid itself.
you also have a loading bar on the left of the system,telling AI progress in calculating it choice
Comments
Broken coords
Added a '-' to X.
V2
there s a V2 just on the left of the V1, it s not done but pretty advanced still,
it s the same mecanism that is used but in a more compact and neet way.
I still have to finish the lines on the back of it, but you can also judge this one for compactness and class.
- drawcoco
Weird AI
I won against the AI. Me as starting player. V1.
Is this intentional? Order: 0,0 top left: (0|0), (2|2), (0|2), (0|1)
For me its not that important, that you have Win-Detection or other features. But iirc Woesh would like to see them, just to have the build complete and fancy.
I like your progress bars, these could be connected to the buttons too.
I prefer the wire-layout of V2.
Its nice, that you are using different weights instead of hard-coding the possibilities. But with the current volume hard-coding might work as well...
AI, could also stop as soon as someone won. And inputs be disabled.
Denied
For the reasons stated in the last comment. The current state of the build is not desirable.
Some political forces want to have it to be a build worthy of Builder, means it should be at least on a Regular level.
Thus have the regular requirements.
-> Don't allow input, once one player won.
-> Block invalid inputs.
-> And whatever was already mentioned and is obvious.
The art of Builder is to make this build with an AI and all the small features.
You can create a new PR, once you have the improved version.