closeYourWindow: Play the Close Your Window game in R

Description Usage Arguments Details Author(s) Examples

View source: R/closeYourWindow.R

Description

Use R to play the Close Your Window game (currently only for Windows system).

Usage

1
2
3
closeYourWindow(width = 5, height = 5, steps = 3, cheat = FALSE, 
                col.closed = "black", col.open = "white", 
                col.frame = "lightblue", seed = NULL, ...)

Arguments

width

number of grids in horizontal axis.

height

number of grids in vertical axis.

steps

number of "seed" grids to initialize the puzzle. In general, the larger steps is, the more complex this puzzle may be.

cheat

logical. If TRUE a data frame indicating the steps to solve this puzzle will be printed.

col.closed

color of closed window.

col.open

color of open window.

col.frame

color of window frame.

seed

seed for random number generator.

...

other arguments passed to set.seed.

Details

In default, the white grids in the graphics stand for the windows that are open, and black ones for the closed. When you click on a window, this window as well as the four ones next to it will change its status. Your mission is to close all the windows.

Author(s)

Yixuan Qiu

Examples

1
2
3
4
## Not run: 
closeYourWindow(width=5, height=5, steps=3)

## End(Not run)

fun documentation built on May 2, 2019, 6:06 p.m.