This is an R version of the 2048 game
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.
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.
This program was written using the 64-bit version of R 3.0.2.
2014, David Seres (@davidseres)