01-04-2022 13:47 PM - last edited 01-05-2022 11:21 AM
Play against the computer in this PowerApps implementation of the Classic Tic-Tac-Toe game.
I wrote this as an example app to learn more unusual aspects of the Power Apps platform, and thought it might be useful to others. Like all things, the core of the app was written in a few evenings, but you know it takes a lot longer than that to "get it right". I spent a ridiculous amount of time getting the "Ticker / Console" labels working just right.
I had a debate with a friend as to whether it was even possible to code a competent computer-controlled player in PowerApps.
This one works just fine using the Minimax Algorithm to decide moves - though the algorithm is not coded within PowerApps. I wrote a C# command line program to output the best moves for each scenario via a look-up table. I've yet to be able to beat it - perhaps you can be the first to manage?
Things I will try to implement in future: