The {r.oguelike} R package contains a (work-in-progress) text-based roguelike toy game demo for R. See the {r.oguelike} repository or documentation website for more details.
Click the 'launch binder' badge to launch RStudio in your browser with {r.oguelike} installed, thanks to the Binder project and {holepunch} package. You may need to wait a few minutes for it to load.
Once launched, begin a game with:
r.oguelike::start_game()