This is a simple implementation of the classic game Connect4, developed in Lua using the LOVE2D framework. Players take turns to place their counter ('Yellow' or 'Red') on a 7x7 grid, and the first player to align three of their counters horizontally, vertically, or diagonally wins the game.
- Traditional Connect4 gameplay
- Alternating turns between two players
- Win condition checks for rows, columns, and diagonals
- Simple and intuitive UI
- Play against AI
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.
Clone this repository or download the source code. Navigate to the project directory and run the game with LOVE2D:
- Run the game.
- The game starts with player 'Yellow' and alternates to player 'Red'.
- Click on an empty cell to place your counter.
- The first player to align four of their counters in a row, column, or diagonal wins.
- The game resets after a win.
Music track: Talk by Chill Pulse
Source: https://freetouse.com/music
Royalty Free Music for Video (Safe)