Giter Site home page Giter Site logo

tic_tac_toe_ui's Introduction

tic_tac_toe_ui

Summary

tic_tac_toe_ui is a user interface to play tic tac toe, it is agnostic to the outcome and just facilitates game play. It connects to an api to play the computer.

How to Run Locally

  • Prerequisites:

    1. ✔ go go1.16.6 darwin/amd64 brew install golang
    2. ✔ Dart 2.13.4 brew tap dart-lang/dart then brew install dart
    3. ✔ Flutter 2.2.3 installer
      • Make sure to set flutter binaries on your PATH: export PATH=$HOME/bin:/usr/local/bin:$PATH:~/flutter/bin
    4. ✔ Chrome browser brew install --cask google-chrome
    5. tic-tac-toe-api
  • Running:

    1. ✔ Before starting the UI, clone and launch tic-tac-toe-api See the tic-tac-toe-api/README.md for steps to run
    2. ✔ run flutter pub get to install the dependencies
    3. ✔ run: flutter run to launch the application
    4. ✔ interact with the application using chrome

Screenshot

App Screenshot

Details

  • When the screen first launches, user will be prompted with a StartupDialog and must select either "X" or "O"
  • If they select "X', they go first
  • After making a move, a request is sent to tic-tac-toe-api to get the computers next move. The request sent to the api should include the player the computer is using and the moves that have already been played so that it can constuct a game state.
  • The UI is then updated with the computers move, and will evaluate if there is a winner or stalemate each time a move is played.

ENJOY!

@author Chris Osborn

tic_tac_toe_ui's People

Contributors

cosbor11 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.