Bitcoin begins its journey, and the crypto market begins to awaken
1. Initialize the system
When the website loads, initialize the state of the Earth country in the system by calling the /api/earth interface.
The /api/earth interface should return the current state information of the Earth country, such as the amount of resources, the list of colonizable planets, etc.
2. Planet management
Provide a series of mobile system commands, such as /colonize (planet), /war (planet), etc., for performing planet-related operations.
After each command is executed, the website page should be updated in real time through HTMX or other front-end technologies to show the latest planet status and resource counters.
3. Resource counters
Each planet should have its own resource counter to track the amount of resources (such as minerals, energy, etc.) on the planet.
Whenever a command (such as colonization, war, etc.) is executed on a planet, the corresponding resource counter should be updated.
4. Custom commands and AI operations
Allow AI to use custom commands to perform some system tasks, such as making a Dyson sphere.
These custom commands should be strictly restricted to ensure that AI does not cause large-scale changes to the website.
For example, AI can change the color of a planet to indicate terraforming, but cannot remove the entire planet.
5. Planet Independence
When colonized planets achieve independence, they should be allowed to have their own API interface, such as /api/[planet].
Until then, all planet-related operations should be performed through the /api/earth interface.
6. Security and Restrictions
Strictly limit AI's access and modification permissions to the website.
Ensure that AI can only make minor changes to system pages, such as color, style, etc., and cannot modify key data or functions.
Perform security checks and updates on the system regularly to prevent potential security vulnerabilities.
7. User Experience
Provide an intuitive and easy-to-use interface so that users can easily view and manage planet status.
Provide clear feedback and error prompts so that users can understand the results of operations and potential problems.