Skip to content

ArthurStep/TicTacToe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

16 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Tic-Tac-Toe Game

Architecture

Core Classes

  • TicTacToeGame: the game controller and managing the flow of the game
  • Board: the board state and logic
  • Player: tbstract base class for all player classes
  • HumanPlayer: tandle console input for human players
  • AIPlayer: trtificial intelligence player that uses minimax
  • GameStats: gather, show, and store game statistics

Development

Project Structure

src/main/java/main/artfix/
β”œβ”€β”€ Main.java              # Main entry point of the game
β”œβ”€β”€ TicTacToeGame.java     # Handle game play
β”œβ”€β”€ Board.java             # Handle game board logic
β”œβ”€β”€ Player.java            # Abstract player
β”œβ”€β”€ HumanPlayer.java       # Handle human player
β”œβ”€β”€ AIPlayer.java          # Handle AI player using minimax
β”œβ”€β”€ Position.java          # Handle board location
β”œβ”€β”€ GameSymbol.java        # X, O, Empty 
β”œβ”€β”€ GameState.java         # Win/Draw/Playing  
β”œβ”€β”€ GameStats

πŸ‘¨β€πŸ’» Author

Arthur Stepanyan

πŸ“„ License

This project is open source and available under the MIT License.


Built with β˜• and lots of strategic thinking!

About

Play TicTacToe with ArtFixBot

Topics

Resources

License

Stars

Watchers

Forks

Languages