Skip to content

An unbeatable tic-tac-toe game using the Minimax Algorithm in Java.

License

Notifications You must be signed in to change notification settings

DeeJack/Unbeatable-Tic-Tac-Toe-Minimax

Repository files navigation

Unbeatable-Tic-Tac-Toe-Minimax

A Tic-Tac-Toe (Tris) game in a console application written in Java. The game supports various modes:

  • SinglePlayer: play against the computer in 3 different difficulties:
    • Easy: the computer chooses random moves
    • Medium: uses the minimax algorithm with a depth of 1 (Just checks if he can win or lose in the next move)
    • Hard: minimax algorithm with a depth of 3
    • Impossible: Full minimax algorithm, you cannot win.
  • Local SinglePlayer: 2 players can play on the same computer;
  • Multiplayer (need to test in 2 actual computers);

"Impossible difficulty" (MinMax) Example

MinMax Example

About

An unbeatable tic-tac-toe game using the Minimax Algorithm in Java.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages