Skip to main content
Microsoft logo
Power Apps
    • AI Builder
    • Automate processes
    • Azure + Power Apps
    • Build apps
    • Connect data
    • Portals
  • Pricing
    • Overview
    • Become a Partner
    • Find a Partner
    • Find partner offers
    • Partner GTM Resources
    • Blog
    • Customer stories
    • Developer Plan
    • Documentation
    • For IT Leaders
    • Roadmap
    • Self-paced learning
    • Webinars
    • App development topics
    • Overview
    • Issues
    • Give feedback
    • Overview
    • Forums
    • Galleries
    • Submit ideas
    • User groups
    • Register
    • ·
    • Sign in
    • ·
    • Help
    Go To
    • Power Apps Community
    • Welcome to the Community!
    • News & Announcements
    • Get Help with Power Apps
    • Building Power Apps
    • Microsoft Dataverse
    • AI Builder
    • Power Apps Governance and Administering
    • Power Apps Pro Dev & ISV
    • Power Apps Portals
    • Connector Development
    • Power Query
    • Power Platform Integration - Better Together!
    • Power Platform Integrations
    • Power Platform and Dynamics 365 Integrations
    • Community Blog
    • Power Apps Community Blog
    • Galleries
    • Community Connections & How-To Videos
    • Community App Samples
    • Webinars and Video Gallery
    • Canvas Apps Components Samples
    • Kid Zone
    • Business Value Webinars and Video Gallery
    • Emergency Response Gallery
    • 2021 MSBizAppsSummit Gallery
    • 2020 MSBizAppsSummit Gallery
    • 2019 MSBizAppsSummit Gallery
    • Ideas
    • Power Apps Ideas
    • Community Engagement
    • Demo Extravaganza 2021
    • Demo Extravaganza - Components 2021
    • Power Apps Community Demo Extravaganza 2020
    • Experimental
    • Error Handling
    • Power Apps Experimental Features
    • Community Support
    • Community Accounts & Registration
    • Using the Community
    • Community Feedback
    cancel
    Turn on suggestions
    Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
    Showing results for 
    Search instead for 
    Did you mean: 
    • Power Apps Community
    • Galleries
    • Community App Samples
    • Tic-Tac-Toe Game

    Tic-Tac-Toe Game

    01-04-2022 13:47 PM - last edited 01-05-2022 11:21 AM

    AlanGraham
    New Member
    633 Views
    LinkedIn LinkedIn Facebook Facebook Twitter Twitter
    AlanGraham
    AlanGraham
    New Member
    • Mark as New
    • Bookmark
    • Subscribe
    • Mute
    • Subscribe to RSS Feed
    • Permalink
    • Print
    • Email to a Friend
    • Report Inappropriate Content

    Tic-Tac-Toe Game

    ‎01-04-2022 01:47 PM

    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:

     

    1. Easy-Medium-Hard Difficulty modes to make it more likely to win.
    2. Different colour palettes / better UI design in general.

    Enjoy!

    Tic-Tac-Toe_20220104214727.zip
    Labels:
    • Labels:
    • Formulas and Controls
    • Mobile App Design and User Experience
    • Offline App Design
    Message 1 of 1
    633 Views
    3 Kudos
    Reply
    • All posts
    • Previous Topic
    • Next Topic

    Power Platform

    • Overview
    • Power BI
    • Power Apps
    • Power Automate
    • Power Virtual Agents

    Power Apps

    • Sign in
    • Sign up

    Browse

    • Sample apps
    • Services

    Downloads

    • Studio
    • iOS
    • Android

    Learn

    • Documentation
    • Support
    • Community
    • Give feedback
    • Blog
    • Partners

    • © 2022 Microsoft
    • Follow Power Apps
    • Privacy & cookies
    • Manage cookies
    • Terms of use
    • Trademarks