3 dimensional tic tac toe using flutter and dart. /Tic_Tac_Toe_3D/lib --> all source code
A few resources to get you started for your first Flutter project:
online documentation offers tutorials, samples, guidance on mobile development, and a full API reference.
Assuming you know nothing about Flutter:
- Everything for this project is in the
lib
directory - You’ll start with
main.dart
file — which defines the home screen. Then follow the screens from one to the next (home_screen.dart
,game_screen.dart
files respectively). - Every screen file has 2 classes. GameScreen and _GameScreenState for example. The
state
class has most of the magic. The first part is something that compiler needs. - The “framework” calls the “build” method (why/how doesn’t matter) — so you should start with the build method. When the framework calls
build
, it is expecting aScaffold
.Scaffold
means the whole screen. It's broken up into a "bar" at the very top (AppBar
) andbody
(the rest of the screen).
When you start with the build
method, you'll follow the methods it calls. Each method it calls should be very readable thanks to Dart.
-
Install Android Studio (Google)
-
Install Flutter & Configure AS accordingly (Links below provide further instructions)
https://flutter.io/docs/get-started/install
https://www.youtube.com/watch?v=Xy-qHlaHr6c (macOS install video)
https://www.youtube.com/watch?v=M3UfYS0bqhE&t=902s (Windows install video)
-
Download zip file from GitHub & Unzip (from this page)
-
Open project in Android Studio
-
Open and connect an android or ios device/emulator & run (This project was optimized for the Pixel XL API 28)
Enjoy 3D Tic Tac Toe!