一款让你扮演操作系统,管理进程、内存和 I/O 事件的游戏。
A game where you're an OS and have to manage processes, memory and I/O events

原始链接: https://github.com/plbrault/youre-the-os

在《You're the OS》中,你将扮演一个操作系统,负责管理进程、内存和 I/O 事件。你的目标是保持进程高效运行;如果无法做到这一点,用户会感到沮丧,从而导致系统重启。 该游戏提供网页版和桌面应用程序版本。它需要 Python 3.14(通过 `pyenv` 管理),并使用 `pipenv` 进行依赖管理。该项目包含面向开发者的功能,例如用于自定义关卡测试的沙盒模式和自动化脚本接口。 源代码采用 GNU GPL v3 许可证开源。鼓励通过 GitHub 进行贡献,特别是针对标记为“bug”或“help wanted”的开放问题。有兴趣开发的开发者请参阅提供的 `AGENTS.md` 以获取指南。你可以在 [https://plbrault.github.io/youre-the-os](https://plbrault.github.io/youre-the-os) 或通过 itch.io 在线游玩。

``` Hacker News 最新 | 过往 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 一款扮演操作系统,管理进程、内存和 I/O 事件的游戏 (github.com/plbrault) 15 分,由 exploraz 发布于 1 小时前 | 隐藏 | 过往 | 收藏 | 4 条评论 帮助 petee 29 分钟前 | 下一条 [–] 重启可以作为一个小游戏:在用户放弃之前,你需要躲避几次他们按下的 BIOS 快捷键。 回复 Affric 6 分钟前 | 上一条 | 下一条 [–] 玩过最初的版本,很高兴看到现在加入了脚本功能。 回复 drfunk 29 分钟前 | 上一条 | 下一条 [–] 听起来很像恶搞账号 @PeterMolydeux 发的推文! 回复 dmaginas 1 小时前 | 上一条 [–] 好主意! 回复 准则 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索: ```
相关文章

原文

This is a game where you are the operating system of a computer. As such, you have to manage processes, memory and I/O events. Make sure not to leave processes idling for too long, or the user will get really impatient and reboot you!

You can play the game here: https://plbrault.github.io/youre-the-os

Also available on itch.io.

In-game screenshot

  • Python 3.14
    • The project is not guaranteed to work with other versions.
    • If needed, use pyenv to install the required version without impacting your system globally.
  • pipenv
  • An empty .venv directory at the root of the project

The main branch can be unstable. For a stable version, checkout a release tag.

Install dependencies:

Run as a desktop app:

Run web version:

Run sandbox mode

The sandbox mode allows you to skip the menu and immediately run a custom stage. It is provided for development purposes.

First, you need to create a sandbox configuration file. An example is provided in src/sandbox/sample.py. It is recommended to store your configuration file in that same src/sandbox directory. Files added to that directory will be ignored by Git.

Next, run the following command, replacing sandbox.sample by the Python module path from src to your own configuration file (for instance, if your file is src/sandbox/myConfig.py, the module path will be sandbox.myConfig):

pipenv run sandbox sandbox.sample

Run with an automated script:

(Original implementation by @Wiguwbe)

WARNING: Running automation scripts (including the provided example) may cause rapidly changing colors on the screen.

pipenv run auto <script.py> [args]
# to get all the available options
pipenv run auto --help

See automation/skeleton.py for information on how to write your script.

Build web version without running:

Create web.zip archive for itch.io:

Run linter:

Run unit tests:

Pull requests that address open issues labeled bug or help wanted are welcome.

If you use AI, please ensure your agent follows all instructions in AGENTS.md.

If you have an idea for an improvement to this game, please share it in the Discussions tab.

Copyright © 2023-present Pier-Luc Brault [email protected]

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

联系我们 contact @ memedata.com