This package provides a general-purpose game framework for grid game in R.
R
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
R
dist
inst/tests
man
.Rbuildignore
.gitignore
DESCRIPTION
NAMESPACE
README.md
gridgame.Rproj

README.md

gridgame

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.

homepage for details and examples. See FAQ's for a list of frequently asked questions (including where to ask questions).

Installation

You can also install the development version from Github, which provides daily build of gridgame:

library(devtools)
install_github("gridgame","bsspirit")

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

Usage

library(gridgame)

# start snake game.
snake()

# start 2048 game. 
g2048()

Document

Screenshots

License

This package is free and open source software, licensed under GPL-3.

TODO

*1. Deploy on CRAN:

You can install the stable version on CRAN:

install.packages('gridgame')

*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')