Skip to content

rkoprik/connect_four

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

connect_four

Connect Four game in R language

This is the game Connect Four in R language.

The game Connect Four is played by two people (or one vs. computer), who take turns dropping one disc (each player has a diferent color) from the top into a vertically suspended grid (usually 6x7, but can be chosen). 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. The game ends in a tie, if there is no free cell left and none of the players has a line of four.

You will have two options to play - 2 players or 1 player vs computer.

You can also select your grid size.

  • Use connect_four() function to start
  • Select number of players
  • Select grid size
  • Obs: it works for any size of grid

About

Connect Four game in R language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages