hareeshghk / connect4

Implementation of connect4 game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

connect4game-cpp

Implementation of connect4 game

Completed backend code for Game engine

(TODO) Implement UI to expose board over browser.

Usage

make && ./connect4.out

Note: Update Makefile with cpp compiler you are using.(Default g++)

Sample output when run this Game:

Number of Games: 2

width of board: 5

height of board: 4

Current turn: 1

Give Input: 0

0 0 0 0 0

0 0 0 0 0

0 0 0 0 0

1 0 0 0 0

Board is printed after every output.

Game ends if any player won or if game results in draw.

Win message: "Game won by player <1/2>"

Draw Message: "Game resulted in a DRAW"

Once a game is completed next game starts, it depends on number of games chosen in beginning.

About

Implementation of connect4 game

License:Apache License 2.0


Languages

Language:C++ 97.3%Language:Makefile 2.7%