Learn R Programming

fourinarow (version 0.1.1)

Play "Four in a Row"

Description

Play or simulate games of "Four in a Row" in the R console. This package is designed for educational purposes, encouraging users to write their own functions to play the game automatically. It contains a collection of built-in functions that play the game at various skill levels, for users to test their own functions against.

Copy Link

Version

Install

install.packages('fourinarow')

Monthly Downloads

107

Version

0.1.1

License

MIT + file LICENSE

Maintainer

Kelly Street

Last Published

November 21st, 2025

Functions in fourinarow (0.1.1)

play4inaRow

Play a game of Four in a Row
testBots

Simulate many games of Four in a Row
invertPieces

Switch X's and O's
humanPlayer

Human player
bots

Bot players for Four in a Row
getSetsof4

All possible sets of 4 in a row