Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gwyrddglas/connect4-ai

Connect4: A Classic board game Experience, Reimagined in Lua. Featuring an intuitive AI opponent
https://github.com/gwyrddglas/connect4-ai

4-in-a-line 4-in-a-row connect-4 connect4 lleuad-studios love2d love2d-game lua

Last synced: 17 days ago
JSON representation

Connect4: A Classic board game Experience, Reimagined in Lua. Featuring an intuitive AI opponent

Awesome Lists containing this project

README

        

# Connect4

## Description
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.

## Features
- Traditional Connect4 gameplay
- Alternating turns between two players
- Win condition checks for rows, columns, and diagonals
- Simple and intuitive UI
- Play against AI

## 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](https://love2d.org/).

## 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 '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.

## Credits
### Background Audio:
```
Music track: Talk by Chill Pulse
Source: https://freetouse.com/music
Royalty Free Music for Video (Safe)
```


[![connect4.png](https://i.postimg.cc/J0S0GXYf/connect4.png)](https://postimg.cc/n9YpWXJ2)****