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.
-
Prerequisites:
- ✔ go go1.16.6 darwin/amd64
brew install golang
- ✔ Dart 2.13.4
brew tap dart-lang/dart
thenbrew install dart
- ✔ Flutter 2.2.3 installer
-
- Make sure to set flutter binaries on your PATH:
export PATH=$HOME/bin:/usr/local/bin:$PATH:~/flutter/bin
- Make sure to set flutter binaries on your PATH:
- ✔ Chrome browser
brew install --cask google-chrome
- ✔ tic-tac-toe-api
- ✔ go go1.16.6 darwin/amd64
-
Running:
- ✔ Before starting the UI, clone and launch
tic-tac-toe-api
See the tic-tac-toe-api/README.md for steps to run - ✔ run
flutter pub get
to install the dependencies - ✔ run:
flutter run
to launch the application - ✔ interact with the application using chrome
- ✔ Before starting the UI, clone and launch
- 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