Skip to content

2d command-line Connect4 game using C with AI feature

License

Notifications You must be signed in to change notification settings

Sakib62/Connect-Four

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Team X
Connect 4

Connect 4:

Connect-Four is a tic-tac-toe-like two-player game in which players alternately place pieces on a vertical board 7 columns across and 6 rows high. Each player uses pieces of a particular color (commonly black and red, or sometimes yellow and red), and the object is to be the first to obtain four pieces in a horizontal, vertical, or diagonal line. Because the board is vertical, pieces inserted in a given column always drop to the lowest unoccupied row of that column. As soon as a column contains 6 pieces, it is full and no other piece can be placed in the column.


Connect 4


Both players begin with 21 identical pieces, and the first player to achieve a line of four connected pieces wins the game. If all 42 shots are played and no player has places four pieces in a row, the game is drawn.


Our Project:


❖ In this project, we plan to create a digital version of the classic Connect 4 game entirely coded in C.

❖ The baseline project is that we build a command line version of the game, which prints the Board Layout, the Player Symbols, and any prompts or messages in plain ASCII text.

❖ It has two mode.
  1. Multi Player Mode: It would facilitate 2 human players to play the game.

Multi Player Demo1

Multi Player Demo2

  1. Single Player Mode: One player would play against an AI bot built using the minimax algorithm.

Single Player Demo1

Single Player Demo2



❖ Possible enhancements would include a proper GUI to the game with appropriate animations, using the graphics.h header-file.


Team X:

Team Member

Name Registration No.
Sakibul Islam 2019831062
Mahir Al Shahriar 2019831077
Zawadul Karim 2019831064
Naimur Rahman 2019831079
Md. Sabbir Hossin 2019831037

Team X

Team X