A simple tic tac toe game written in plain vanilla Java.
- Two players play the game one after another
- One player plays as "O" and the other player plays as "X"
- Whoever makes a a horizontal/vertical/diagonal row of three wins
- Grid size is 3X3
- One game is played at a time
- Only portrait mode
- State is not saved for revisiting a game
- Hitting restart button cleans the board and starts again
|_ Game Engine
|........|_ State Manager
|........|_ Game Manager
|_ Game View
|........|_ Base Game Activity
|........|_ Game Activity
|_ Splash
|........|_ Splash Activity
- Manages the state between PLAY and END
- Handles turns (Between X and O)
- Handles the board
- Checks for win condition
- Diagonal Check
- Vertical Check
- Horizontal Check
- Checks for Board Complete
- Communicates with the View on event
- Handles View for the blocks
- Handles Animations
- I have tried to keep the View as dumb as possible
- Since the turn management is quite basic, I let the statemanager handle it
- I have tried to limit image assets to reduce size
- I have used fast loading fonts
- Has been built to scale as almost all values are in the values folder
- I have tried not to overly complicate the folder structure as the number of files are not too much
- Hope you enjoy it!
- Make an ultimate tic tac toe with 3X3 grid of 3X3
- Add better winner management
- Store state
- Tests