Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aaron-contreras/connect-four

A ruby console connect-four game.
https://github.com/aaron-contreras/connect-four

Last synced: 26 days ago
JSON representation

A ruby console connect-four game.

Awesome Lists containing this project

README

        

# Connect-four!

Built in TDD-style

__Note__: The program's UI is optimized to work with Repl.it's terminal. Alignment and styling may be different if ran locally.

[View on repl.it](https://connect-four.aaroncontreras.repl.run/)

## Gameplay details
- The grid is __7-columns__ wide by __6-rows__ tall.
- Pieces "fall" straight down occupying the _lowest available space_.
- __Objective__: Be the first to form a horizontal, vertical or diagonal line with four of one's own discs. If the board fills up without a player reaching four consecutive discs in-a-row, then the game is a draw.