Skip to content

Commit 043968f

Browse files
committed
added Connect Four challenge
1 parent 518f3e4 commit 043968f

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

07-connect-four/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Challenge: Connect Four Game
2+
3+
Code an implementation of the game _Connect Four_ that can be played by 2 players.
4+
5+
[Video description][youtube] of Connect Four
6+
7+
From [Wikipedia][wikipedia]:
8+
> Connect Four is a two-player connection game in which the players first choose a color and then take turns dropping one colored disc from the top into a seven-column, six-row vertically suspended grid. The pieces fall straight down, occupying the lowest available space within the column. The objective of the game is to be the first to form a horizontal, vertical, or diagonal line of four of one's own discs. Connect Four is a solved game. The first player can always win by playing the right moves.
9+
10+
If you are feeling ambitious you can also support single player mode where the player competes against the computer.
11+
12+
Try to decouple the game logic from UI presentation so that different UI implementations can connected.
13+
14+
A simple non-graphical user interface that executes in a terminal is sufficient for this challenge.
15+
16+
[wikipedia]: https://en.wikipedia.org/wiki/Connect_Four
17+
[youtube]: https://www.youtube.com/watch?v=utXzIFEVPjA

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ These are some additional coding challenges to sharpen your Python programming s
99
0. [Shakespeare Word Frequency](https://github.com/PDXPythonPirates/code-challenges/blob/master/04-shakespeare-frequency/)
1010
0. [Bowling Scores](https://github.com/PDXPythonPirates/code-challenges/tree/master/05-bowling-scores/)
1111
0. [A Grep Clone](https://github.com/PDXPythonPirates/code-challenges/tree/master/06-pygrep/)
12+
0. [Connect Four](https://github.com/PDXPythonPirates/code-challenges/tree/master/07-connect-four/)
1213

1314

1415
## How to Contribute

0 commit comments

Comments
 (0)