--- Tic Tac Toe Game --- A simple yet engaging Tic Tac Toe game built with multiple difficulty levels for AI. This project demonstrates fundamental programming concepts and showcases the implementation of AI for strategic gameplay.
-- Features -- Single Player Mode: Play against AI with different difficulty levels:
Easy: Makes random moves. Medium: Plays a mix of strategic and random moves. Hard: Plays optimally to ensure the best possible outcome. Two Player Mode: Play with a friend on the same device.
Interactive UI: Easy-to-use interface for seamless gameplay.
Game Logic: Ensures valid moves and determines the winner or draw efficiently.
Technology Stack : Languages: Java, Algorithm: Minimax algorithm (for Hard AI difficulty)
-- Game Rules -- The game board is a 3x3 grid. Players take turns to place their mark (X or O) on an empty cell. The first player to align three marks horizontally, vertically, or diagonally wins. If all cells are filled without a winner, the game ends in a draw. AI Difficulty Levels Easy: Random moves with no strategy. Medium: Balanced gameplay with some strategy. Hard: Implements the Minimax algorithm for optimal moves.
-- Future Enhancements -- Implement online multiplayer functionality. Online mode play with Bluetooth. Introduce customizable board sizes.
-- Author -- Alok Kumar