play_tetris: Tetris Game

Description Usage Arguments Examples

View source: R/play_tetris.R

Description

This function is an implementation of Tetris based on X window system.

Usage

1
play_tetris(nhint = 5, speed = 1, color, bg = "white", ...)

Arguments

nhint

the number of hint squares on the right.

speed

the level of speed at which block is falling.

color

colors of seven tetrominoes. Default color set is generated by hcl.colors with the palette "Dark 3".

bg

the color to be used for the background of the device region.

...

optional arguments to x11, except for width and height.

Examples

1
2
3
4
## Not run: 
play_tetris()

## End(Not run)

darrenproj/gamer documentation built on July 26, 2020, 4:12 a.m.