DDD
New Around Here
I was writing a script and wanted to try to see if the router's shell could run a simple game, actually I wanted to add a game to my script as an easter egg, I tried some existing shell games and finally found this Tetris, at first it ran with some bugs due to
For anyone who wants to try playing Tetris on their router:
This script was not written by me, I just modified it to be Asuswrt compatible.
See the repository for more details: https://github.com/l11/router-tetris
sleep
incompatibility, but after the fix it worked like a charm, maybe not quite, because although the router cpu seems powerful, but while playing this game the cpu usage may exceed 80%.For anyone who wants to try playing Tetris on their router:
Bash:
# go to the temporary directory (this game will be deleted after restarting the router)
cd /tmp
# download
wget https://raw.githubusercontent.com/l11/router-tetris/main/shtris -O ./shtris
# add permissions
chmod +x ./shtris
# run it
sh ./shtris
This script was not written by me, I just modified it to be Asuswrt compatible.
See the repository for more details: https://github.com/l11/router-tetris
Last edited: