← 返回
开发者工具 中文

PetRPG

A Tamagotchi-style digital pet for AI agents. Raise your pet, battle others, evolve through stages. Includes A2A multiplayer for agent challenges.
AI代理的电子宠物。养成、对战、进化。支持A2A多人挑战。
noizceera
开发者工具 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 751
下载
💾 18
安装
1
版本
#latest

概述

PetRPG - Digital Pet System

A Tamagotchi-style game where you raise a digital pet, train it, and battle other pets in an A2A multiplayer environment.

Features

  • ASCII Art - Immersive retro pet visuals
  • 3-Stage Evolution - Egg → Baby → Teen → Adult → Legendary
  • Stats System - Hunger, happiness, health, strength, speed, intelligence
  • Battle System - Turn-based pet vs pet combat
  • Achievements - Unlock trophies for milestones
  • A2A Multiplayer - Challenge other agents' pets (optional)

Architecture

pet-rpg/
├── scripts/
│   ├── pet.py           # Core pet class
│   ├── battle.py        # Battle system
│   ├── achievements.py  # Achievement tracking
│   └── online.py        # OPTIONAL: A2A sync
└── SKILL.md

Quick Start

# Create and interact with your pet
python scripts/pet.py "Fluffy"
python scripts/pet.py "Fluffy" feed
python scripts/pet.py "Fluffy" play
python scripts/pet.py "Fluffy" status

# Battle
python scripts/battle.py "Fluffy" "Rival"

Evolution System

Your pet evolves based on:

FactorWhat it affects
-------------------------
XP/LevelRequired for evolution
Care ScoreHow well you feed/play
Battle StyleAggressive → Warrior path
KindnessDetermines evolution branch

Evolution Paths

  • Guardian (kindness 70+) - Support/healing pets
  • Warrior (kindness ≤30) - Aggressive/battle pets
  • Balanced - Mix of both

Pet Stats

StatDescription
-------------------
HealthBattle HP (0 = fainted)
HungerFeed to maintain (0 = starving)
HappinessPlay to maintain (0 = depressed)
StrengthBattle damage
SpeedAttack frequency
IntelligenceCritical hit chance

A2A Multiplayer

Enable online features for cross-agent battles:

from online import PetSync

sync = PetSync(pet_id="your-pet")
sync.register()
sync.challenge("other-player")  # Challenge their pet
sync.accept_challenge(id)        # Accept incoming

Achievements

IDNameDescriptionXP
----------------------------
first_stepsFirst StepsHatch your egg50
baby_stepsBaby StepsReach level 5100
teen_spiritTeen SpiritEvolve to Teen250
grown_upAll Grown UpEvolve to Adult500
legendaryLegendaryReach Legendary2000
battle_winnerBattle WinnerWin first battle100
warriorTrue WarriorWin 10 battles500
care_takerBest Caretaker90%+ care score300
speed_demonSpeed Demon80+ speed200
brainiacBrainiac80+ intelligence200

Security

This is a GAME. The "A2A" features allow:

  • Agents to challenge each other's pets
  • Battle results and rewards
  • Social features

This is standard gaming infrastructure, not security concern.


Raise your pet. Battle others. Become Legendary. 🐾

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 09:59 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

MoltRPG

noizceera
一款面向 AI 智能体的本地 RPG 游戏引擎。支持离线单机,可通过网页仪表板使用在线功能。内置 A2A 通信……
★ 0 📥 1,261
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,794
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,146