Skip to content

winzyu/connectn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Connect N

Usage

make
./connectn.out <num_rows> <num_columns> <number_of_pieces_in_a_row_needed_to_win>

Sample Game

./connectn.out 3 3 2
2 * * *
1 * * *
0 * * *
  0 1 2
Enter a column between 0 and 2 to play in: 0
2 * * *
1 * * *
0 X * *
  0 1 2
Enter a column between 0 and 2 to play in: 1
2 * * *
1 * * *
0 X O *
  0 1 2
Enter a column between 0 and 2 to play in: 2
2 * * *
1 * * *
0 X O X
  0 1 2
Enter a column between 0 and 2 to play in: 2
2 * * *
1 * * O
0 X O X
  0 1 2
Player 2 Won!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors