The R package gridgame. This package provides a general-purpose game framework for grid game in R. The package includes 2 games about snake and 2048. You can run the function snake() or g2048() to startup the game. These games are only running on Window platform.
You can also install the development version from Github, which provides daily build of gridgame:
If you know GIT and
R CMD build, it is handly way:
git clone https://github.com/bsspirit/gridgame.git R CMD BUILD gridgame R CMD INSTALL gridgame_*.tar.gz
library(gridgame) # start snake game. snake() # start 2048 game. g2048()
- R语言游戏之旅 贪食蛇入门 http://blog.fens.me/r-game-snake/
- R语言游戏框架设计 http://blog.fens.me/r-game-framework/
- R语言游戏之旅 游戏2048 http://blog.fens.me/r-game-2048/
- 发布gridgame游戏包 http://blog.fens.me/r-game-gridgame/
This package is free and open source software, licensed under GPL-3.
*1. Deploy on CRAN:
You can install the stable version on CRAN:
*2. Deploy on RForge:
Another way, You can also install from RForge, which provides daily build of gridgame:
# update all existing packages first update.packages(ask = FALSE, repos = 'http://cran.rstudio.org') install.packages('gridgame', repos = c('http://rforge.net', 'http://cran.rstudio.org'),type = 'source')