Site icon R-bloggers

A Review of Games Written in R on CRAN

[This article was first published on R on Dr. Rick Tankard, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

R is primarily designed for statistical computing and graphics, and that’s where I’ve spent most of my time in R. This includes developing an R package, exSTRa, for my PhD. R isn’t an ideal language for video games, without native support for reactive programming. Though where there’s computing, there are games.

A brief review of games

I decided to look at what games are available on CRAN, searching for either “game”. Games outside of CRAN may be covered in another post. For each R package that was a game, I’ve given a short review.

In this post, CLI stands for command-line interface (games without a graphics window).

Here’s the list, in a random order:

Two-player-only games:

Other packages I found that simulated or analysed games, but not a game in themselves, included:

Closing remarks

Have you tried any games in R? Games I’d recommend include BetaBit, pixelpuzzle, lightsout and my own package rwarrior. Some of the others aren’t really worth the hassle and you are better off playing a web version. With the Github released nara package, we might be seeing more graphical based games coming to R. Let’s just hope nara can get on CRAN soon.

To leave a comment for the author, please follow the link and comment on their blog: R on Dr. Rick Tankard.

R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.