Table of contents

🫣 Peek

Connect Four

On a 6x7 grid, 2 players take turns and drops colored tokens, the tokens fall straight down, taking the lowest available space within 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 tokens.

Documentation

Documentation made for learning github actions to build and deploy docs automatically , so not actual full documentation of code.

πŸ“¦ Structure

.
β”œβ”€β”€ lib
β”‚Β Β  β”œβ”€β”€ connect_four
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ board.rb
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ data_structure
β”‚Β Β  β”‚Β Β  β”‚Β Β  β”œβ”€β”€ linked_list.rb
β”‚Β Β  β”‚Β Β  β”‚Β Β  └── node.rb
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ display.rb
β”‚Β Β  β”‚Β Β  β”œβ”€β”€ game.rb
β”‚Β Β  β”‚Β Β  └── player.rb
β”‚Β Β  └── connect_four.rb
β”œβ”€β”€ main.rb // just a file to run my game
β”œβ”€β”€ README.md
└── spec //tests
    β”œβ”€β”€ connect_four
    β”‚Β Β  β”œβ”€β”€ board_spec.rb
    β”‚Β Β  β”œβ”€β”€ game_spec.rb
    β”‚Β Β  └── player_spec.rb
    β”œβ”€β”€ connect_four_spec.rb
    └── spec_helper.rb
β”œβ”€β”€ Gemfile
β”œβ”€β”€ Gemfile.lock