/Connect-Four

Connect 4 Game made in C# Winforms / windows forms app (csharp) ,Connect Four

Primary LanguageC#MIT LicenseMIT

c# .NET Framework 4.8

Connect-Four

Connect4 game made in C# windows forms app

Features

  • Checks for the winner or draw ofter every move
  • Use of keyboard buttons (1, 2, 3, 4, 5, 6, 7 also on the number pad) to choose column
  • Restart button + turn changes after each game, To restart the game you can also press "R" on your keyboard
  • Counts Wins for each player and moves
  • Form size is adjustable
  • Shows whose turn it is (Red or Yellow)
  • How to play buttons and instructions
  • Custom Form border color rgb(255,228,196)

Screenshots

image image

How to play

  1. Click on the circle of the column where you want to drop your colored pieces or press (1, 2, 3, 4, 5, 6, 7) on your keyboard or number pad .
  2. Take turns with your opponent until someone connects four circles in a row horizontally, vertically, or diagonally, or the grid is filled.
  3. The first player to connect four in a row wins.
  4. Click "Restart" button or "R" on your keyboard to play again.
  5. Have fun!

Operating Systems

Windows 7,8,10,11 .NET Framework installed


Made and Adjusted by Alireza Nobakht

███╗░░██╗███████╗██╗░░░██╗████████╗██████╗░░█████╗░███╗░░██╗
████╗░██║██╔════╝██║░░░██║╚══██╔══╝██╔══██╗██╔══██╗████╗░██║
██╔██╗██║█████╗░░██║░░░██║░░░██║░░░██████╔╝██║░░██║██╔██╗██║
██║╚████║██╔══╝░░██║░░░██║░░░██║░░░██╔══██╗██║░░██║██║╚████║
██║░╚███║███████╗╚██████╔╝░░░██║░░░██║░░██║╚█████╔╝██║░╚███║
╚═╝░░╚══╝╚══════╝░╚═════╝░░░░╚═╝░░░╚═╝░░╚═╝░╚════╝░╚═╝░░╚══╝