Learn R Programming

player

Installation

You can install the development version of player from GitHub with:

# install.packages("pak")
pak::pkg_install("rossellhayes/player")

Games

player includes 10 games that you can player entirely within the R console:

  • Coin Flip
  • Hangman
  • Jumble
  • Magic 8 Ball
  • Poker
  • Rock, Paper, Scissors
  • Shut the Box
  • Spelling Bee
  • 2048
  • Global Thermonuclear War

Install the package and run player::play() to get playing!


Hex sticker image by Flavia Rossell Hayes.

Copy Link

Version

Install

install.packages('player')

Version

0.1.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Alexander Rossell Hayes

Last Published

September 22nd, 2025

Functions in player (0.1.0)

play_jumble

Play a game of jumbles in the console
play_magic_8_ball

Ask a Magic 8 Ball a question in the console
look_busy

Look like you're working hard when you're hardly working
play_shut_the_box

Play a game of shut the box in the console
play_poker

Play five-card draw poker
play_spelling_bee

Play a game of Spelling Bee in the console
play

Play a game in the console
play_rock_paper_scissors

Play a game of rock, paper, scissors in the console
play_hangman

Play a game of hangman in the console
play_coin_flip

Flip a coin
player-package

player: Play Games in the Console
reexports

Objects exported from other packages