Skip to contents

Interact with the game by typing commands into the console and pressing enter.

Usage

play(game = NULL, ...)

Arguments

game

The name of a game to play. If NULL, you can choose a game interactively in the console.

...

Additional arguments passed to the chosen game.

Value

Calls the selected game function.

Examples

if (rlang::is_interactive()) play()

play("magic_8_ball")
#> ── 🎱 Magic 8 Ball 🎱 ──────────────────────────────────────────────────────────
#> 

▶▲
▶▲◄
▶▲◄▼
▶▲◄▼▶
▶▲◄▼▶▲
▶▲◄▼▶▲◄
▶▲◄▼▶▲◄▼
▶▲◄▼▶▲◄▼▶
▶▲◄▼▶▲◄▼▶▲
▶▲◄▼▶▲◄▼▶▲◄
▶▲◄▼▶▲◄▼▶▲◄▼
Most likely.