The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

pixelpuzzle

Puzzle game for the R console. Restore the pixel art by shifting rows!

example pixel art

Installation

CRAN

install.packages("pixelpuzzle")

Github

# install from github
if (!require(devtools)) install.packages("devtools")
devtools::install_github("rolkra/pixelpuzzle")

Start Game

library(pixelpuzzle)
pixelpuzzle()

Pixel Art

{pixelpuzzle} comes with predefined pixel art you can play with. Just start the game with pixelpuzzle() to select one.

In case you want to define your own pixel art you can use the following color codes for each pixel:

library(pixelpuzzle)

sprite <- c(
  "RRRRRRRRR",
  "MMMMMMMMR",
  "BBBBBBBMR",
  "CCCCCCBMR",
  "GGGGGCBMR",
  "YYYYGCBMR",
  "WWWYGCBMR",
  "SSWYGCBMR",
  "XSWYGCBMR"
)

show_sprite(sprite)

define pixel art

You can use this pixel art by passing it as parameter to pixelpuzzle()

pixelpuzzle(sprite)

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.