/Tetris

Tetris game with shiny app in R

Primary LanguageRMIT LicenseMIT

Tetris

Tetris game with shiny app in R

Image description

Installation

devtools::install_github("https://github.com/TingtHou/Tetris.git")

Usage

launchGame()

Use "A"/"D" to move tetriminos to left/right

Use "S" to move down tetriminos

Use "W" rotate tetriminos

Limitation

The figure will flash when the game runs a long time.

The folder structure

- Tetris 
  |- inst 
     |- shinyapp 
         |- ui.R
         |- server.R
  |- R
     |- shiny.R
     |- TableID.R
     |- GameAction.R 
     |- TableAction.R 
     |- TetrominoAction.R 
  |- DESCRIPTION 
  |- ... 

Program process:

Image description