matt-dray / actionsquirrel Goto Github PK
View Code? Open in Web Editor NEW:chipmunk::chestnut: R package: a squirrel game in your R console, made with {R6}
Home Page: https://www.rostrum.blog/2021/10/03/squirrel/
License: Other
:chipmunk::chestnut: R package: a squirrel game in your R console, made with {R6}
Home Page: https://www.rostrum.blog/2021/10/03/squirrel/
License: Other
Nut?
For example a nut ๐ฐ that spawns randomly and stays in situ until the player reaches that space. Could be used for a scoring system. Could have a running tally like the moves tally that's printed with the output.
Two end states: winter and death by owl. Third state: death in winter if too few nuts collected.
Yeah, it's pretty stupid. Move towards player? Second antagonist? Maybe a fox moves in the current owl pattern, while the owl swoops like a rook or bishop.
Could provide a reminder of how to play.
If dead or winter, prevent further player actions. Finalizer?
?!
Like #2, except you want to avoid it. Could move randomly or toward the player.
For example, prevent moving left from the leftmost 'column'.
In the game, the console is cleared with cat("\014")
between frames. This only clears the screen in RStudio, though. In the terminal it would need to be system("clear")
.
To detect whether R is running via RStudio or not, one can check Sys.getenv("RSTUDIO") which is set to 1 when running in RStudio.
We can detect this on startup, set a field value and then have if
statements to choose between cat("\014")
and system("clear")
whenever the console needs to clear.
Limit the total number of steps. Concept of seasons? Could change the overworld emoji to mimic 'seasons'?
Consider {keypress} for recording user input from arrow keys/WASD.
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.