Skip to content

Commit

Permalink
change comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Cloud Wei committed Dec 4, 2011
1 parent 1798099 commit 6cd7ef2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions R/sliding_puzzle.R
@@ -1,12 +1,9 @@
##' Sliding puzzle in R
##'
##' Use R to play sliding puzzle (currently only the Windows screen
##' display).
##' Use R to play sliding puzzle
##'
##' If \code{size} is specified and \code{z} is \code{NULL}, then the
##' function will generate a solvable sliding puzzle. In addition, the
##' function only works under the Windows screen display because of
##' the limitation of function \code{getGraphicsEvent}.
##' function will generate a solvable sliding puzzle.
##' @param size two dimensional vector, the size of sliding
##' puzzle. Note: the element of \code{size} must be greater than 1.
##' @param bg the background color of blocks.
Expand All @@ -30,7 +27,6 @@
##' sliding_puzzle()
##'
##' sliding_puzzle(z=matrix(0:11, 3, 4))

sliding_puzzle <- function(size = c(3, 3), bg = "lightblue", z = NULL) {
if (!interactive()) return()
if(!is.null(size)){
Expand Down

0 comments on commit 6cd7ef2

Please sign in to comment.