This repository contains Java implementations of the classic Tic Tac Toe game, featuring two different gameplay modes: player versus player and player versus computer.
Contents:
-
TicTacToeTwoPlayers.java: This file contains the code for a two-player Tic Tac Toe game where two human players take turns making moves on the game board. The game ends when one player achieves three consecutive marks in a row, column, or diagonal, or when the game board is full without a winner.
-
TicTacToePlayerVsComp.java: This file implements a Tic Tac Toe game where a single human player competes against a computer opponent. The player takes turns making moves, while the computer's moves are generated randomly. The game concludes when either the player or the computer achieves three consecutive marks in a row, column, or diagonal, or when the game board is full without a winner.