Ever find yourself stuck at your desk during slow moments in software development? idlegame is here to save the day! Whether you're waiting for a build to finish or just need a quick breather, this idle game is your perfect companion to make those downtime moments more fun and productive. Script your nanobots, collect resources, and defend your filetree, all while learning some handy zsh commands along the way.
Getting started with idlegame is a breeze. Open your terminal and run:
pip install idlegame
Once it's installed, you can jump right into the game by typing:
idlegame
-
Easy to Play: Just install and run in 2 simple steps.
-
Casual Gameplay: Perfect for short breaks or when you need to step away from coding.
-
Offline Progress: Your nanobots continue working even when you're not playing.
-
IncrediSave: Automatic saving ensures you'll never lose your progress.
-
ZSH Commands: All game commands are valid zsh commands, helping you learn or sharpen your command-line skills.
idlegame is an idle simulation where you script nanobots to collect resources, defend your filetree, and perform other tasks. It was for two purposes: one, to entertain you at work, and two, to teach you some zsh commands. To that end, every command in idlegame is a valid zsh command (or helper command, or real cli).
When you first start the game, you’ll be logged in via your username and can check on the status of your nanobots by typing:
bb@idlegame % uptime
This will show you how long your nanobots have been working since your last session, if you have any. Next, you'll need to create a nanobot using a nano core (a key resource in the game). Here's how you can get started:
bb@idlegame % nano --name mine&defend -y
After writing a simple script for your nanobot, it will start working. Here's an example bot script:
idle mine
on invasion defend
done
This bot will mine resources during idle time but switch to defense mode if your filetree is invaded.
- Resource Management: Script nanobots to mine, gather resources, and expand your capabilities.
- Filetree Defense: Your filetree can be invaded, so it's important to have nanobots ready to defend.
- Automation Mastery: Efficiently script your nanobots to handle multiple tasks autonomously.
- nano: Create and script nanobots using a nano core.
- uptime: Check the overall activity and status of your nanobots.
- man: Get a detailed list of available commands and their usage.
- See a list of all commands using
man
.
- Balance Offense and Defense: Create specialized nanobots—some focused on resource mining and others on defending your filetree. Diversify to ensure survival during invasions.
- Optimize Idle Time: Ensure your nanobots are always doing something useful, whether it's mining, defending, or exploring.
- Expand Your Workforce: As you gather more nano cores, create additional nanobots to speed up resource collection and improve defense strategies.
If you're ever unsure about a command or how to proceed, just type:
man
This will provide a full list of commands or you can run man [command] for specifics on any particular one.
Got ideas or feedback? We’d love to hear from you! Submit a pull request or open an issue on the GitHub repo. Your input helps make idlegame better for everyone.
This project is licensed under the MIT License. Check out the LICENSE file for more details.