Skip to content

TicTacToe: A Classic Naughts and Crosses Experience, Reimagined in Lua. Featuring an intuitive AI opponent

Notifications You must be signed in to change notification settings

GwyrddGlas/TicTacToe-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Tic-Tac-Toe Game (AI)

Description

This is a simple implementation of the classic game Tic-Tac-Toe, developed in Lua using the LOVE2D framework. In this build you will play against an "AI".

Features

  • Basic Tic-Tac-Toe gameplay
  • Alternating turns between two players
  • Win condition checks for rows, columns, and diagonals
  • Simple and intuitive UI

Requirements

To run this game, you need to have LOVE2D installed on your system. LOVE2D is a framework for making 2D games in Lua. You can download it from here.

Installation

Clone this repository or download the source code. Navigate to the project directory and run the game with LOVE2D:

How to Play

  • Run the game.
  • The game starts with player 'O' and alternates to player 'X'.
  • Click on an empty cell to place your symbol.
  • The first player to align three of their symbols in a row, column, or diagonal wins.
  • The game resets after a win or a tie.

love-JBLYTVJPc-T.png

About

TicTacToe: A Classic Naughts and Crosses Experience, Reimagined in Lua. Featuring an intuitive AI opponent

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages