R2048

This is an R version of the 2048 game


Project maintained by davidseres Hosted on GitHub Pages — Theme by mattgraham

R2048.

I've programmed (a non-fancy version of) the famous 2048 game in R. The original can be found here. To start the game, just issue the following commands in an R session:

source("R2048.R")
start_2048()

This will initialize the game in R. You will see the grid in a plot window. Upon the call the user will be prompted for input.

How to play

Use the keys w (up), a (left), s (down) and d (right) followed by enter to move the tiles in the desired direction. The rules are to merge two identical numbers into one with the sum of the two merged numbers.

Remarks

This program was written using the 64-bit version of R 3.0.2.

Author

2014, David Seres (@davidseres)