Snake: R Snake

Description Usage Arguments Value Note Author(s) References

View source: R/Snake.R

Description

R snake is a classic game. Players use Up, Down, Left, Right to move and change directions. The head of the snake should not touch its tail or the ledge. The more fruits a snake eats, the higher a player will rank.

Usage

1

Arguments

Keyboards

events

Value

Fruits a snake got

Note

Do not press Q if you do not want to quit R.

Author(s)

Wei Wang

References

/urlhttp://blog.fens.me/r-game-snake/, where the basic idea of this function came from.


PHP2560-Statistical-Programming-R/r-package-the-best-team documentation built on May 13, 2019, 10:59 p.m.