This is a collection of R games and other funny stuff, such as the classic Mine sweeper and sliding puzzles.
yihui / fun Goto Github PK
View Code? Open in Web Editor NEWUse R for Fun
Home Page: https://cran.rstudio.com/package=fun
Use R for Fun
Home Page: https://cran.rstudio.com/package=fun
> library(fun)
> sliding_puzzle()
Error in while ((len.right%%2) != (len.z%%2) | (all(z == z.right))) { :
argument is of length zero
Hey Yihui,
you might want to check out https://github.com/MattSen/Games-in-R.
These are two games in R, I programmed while not writing my thesis ;-P
Cheers
MattSen
需要一个更好的在*nix下自动提醒用户使用基于Xlib的X11。
if (.Platform$OS.type == 'windows') dev.new(width = width, height = height) else X11(width, height, type = 'Xlib')
会让Windows下的R CMD check
抱怨没有type参数。而简单的
dev.new(width = width, height = height)
又不能迫使用户使用Xlib。
I tried both sourcing the code and install.packages('fun') and get the same results:
fun::mine_sweeper()
fun::lights_out()
Both get this errror:
Error in setGraphicsEventEnv(which, as.environment(list(...))) :
this graphics device does not support event handling
fun::sliding_puzzle()
Error in while ((len.right%%2) != (len.z%%2) | (all(z == z.right))) { :
argument is of length zero
fun::htmlspecialchars()
Error in gsub(x[i], subx[i], string, fixed = TRUE) :
argument "string" is missing, with no default
fun::tag_cloud()
Error in gsub(x[i], subx[i], string, fixed = TRUE) :
argument "tagData" is missing, with no default
The others are working.
How about my Astrarium minigame generator? It could be added :) Astrarium is a minigame from Dragon Age: Inquisition. See more info here (with the function):
https://rfunctions.blogspot.com/2021/05/astrarium2-r-game-about-linking-stars.html
Best,
José Hidasi-Neto
Something for your fun
package.
http://stackoverflow.com/questions/8479058/how-do-i-find-waldo-with-mathematica
Is it possible to use the functions in fun package in a shiny app?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.