https://github.com/uefi-code/hackerinring
HackerInRing is an innovative strategy game inspired by the x86 Ring mechanism and Emperor permissions. In this captivating game, players will experience the tension of power, strategy, and competition.
https://github.com/uefi-code/hackerinring
ring0 toy-computer
Last synced: 3 months ago
JSON representation
HackerInRing is an innovative strategy game inspired by the x86 Ring mechanism and Emperor permissions. In this captivating game, players will experience the tension of power, strategy, and competition.
- Host: GitHub
- URL: https://github.com/uefi-code/hackerinring
- Owner: UEFI-code
- Created: 2024-03-07T13:13:19.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-09T03:58:12.000Z (almost 2 years ago)
- Last Synced: 2024-04-14T23:19:43.689Z (almost 2 years ago)
- Topics: ring0, toy-computer
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HackerInRing
## 概要
HackerInRingは、x86のRing特権メカニズムをシミュレートしたゲームです。プレイヤーはRing0、Ring1、Ring2、Ring3のいずれかに分布し、皇帝、政府、平民、ハッカーの役割を果たします。
## ゲームの目的
このゲームの目的は、特権レベルの概念を理解し、それがシステムのセキュリティと効率にどのように影響するかを学ぶことです。
## ゲームの流れ
プレイヤーは、特定のRingに配置され、そのRingの特権に基づいて操作を実行します。プレイヤーは、他のRingに移動することで、異なる特権を得ることができます。
## コードの説明
`main.py`には、ゲームの主要なロジックが含まれています。`HackerInRing`クラスは、仮想マシンを表現し、各プレイヤーの動作を制御します。`run_cmd_humanloop`メソッドは、プレイヤーがコマンドを入力し、それを解析して実行するループを制御します。
## 今後の開発
現在、基本的なフレームワークとゲームのロジックが実装されていますが、まだ開発の初期段階にあります。今後は、ゲームのルールを拡張し、ユーザーインターフェースを改善し、さらにエンゲージングなゲーム体験を提供する予定です。