Description Usage Arguments Value Note Author(s) References
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.
1 | Snake()
|
Keyboards |
events |
Fruits a snake got
Do not press Q if you do not want to quit R.
Wei Wang
/urlhttp://blog.fens.me/r-game-snake/, where the basic idea of this function came from.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.