Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gervinfung/connect4
A Connect-4 Game written in C# WinForms. This program was written to familiarize myself with C# syntax since C# is very similar to Java.
https://github.com/gervinfung/connect4
Last synced: 12 days ago
JSON representation
A Connect-4 Game written in C# WinForms. This program was written to familiarize myself with C# syntax since C# is very similar to Java.
- Host: GitHub
- URL: https://github.com/gervinfung/connect4
- Owner: GervinFung
- License: gpl-3.0
- Created: 2021-05-31T16:10:59.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-27T03:51:59.000Z (over 2 years ago)
- Last Synced: 2024-10-04T16:23:28.691Z (3 months ago)
- Language: C#
- Homepage:
- Size: 185 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## About
- A simple Connect 4 AI that implemented minimax & alpha-beta pruning & move-ordering to fully optimise the AI
- The Board for backend and frontend are represented in 1D Immutable List to optimise the code as most Connect4 board state are done with 2D array/list
- I wrote this game as I have always wanted to do some simple project in C#, and I figured that doing Connect4 would be a great start as it allows me to learn WinForms and Data Structure of C### Folder Structure
The workspace contains two folders by default, where:
- `engine`: the folder that contains the backend logic of the game
- `gui`: the folder that contains the user interface of the game
- `bin/Debug/net5.0-windows`: the folder that contains executable file## To play the Game
No. | Steps
--- | ----
1.| User can choose to play as Red/Black
2.| User can choose Red/Black as AI
3.| Or, user can watch AI play against itself## Game Features
No. | Features
--- | ----
1.| Restart new game
2.| Exit game
3.| Highlight turn
4.| Choose AI level from 1 to 5**Game Screen**
![Chess sample](Connect4Game/connect4.jpg)**EXE file**
[Connect4Game](Connect4Game/bin/Debug/net5.0-windows/Connect4Game.exe)**dll file**
[Connect4Game](Connect4Game/bin/Debug/net5.0-windows/Connect4Game.dll)