Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/gwyrddglas/connect4-ai
- Owner: GwyrddGlas
- Created: 2024-01-25T14:42:58.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-03-28T05:39:39.000Z (9 months ago)
- Last Synced: 2024-10-31T04:24:24.807Z (2 months ago)
- Topics: 4-in-a-line, 4-in-a-row, connect-4, connect4, lleuad-studios, love2d, love2d-game, lua
- Language: Lua
- Homepage:
- Size: 4.92 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)****