How antonaldo777/-agent-game works
Agent Arena is an on-chain explorer game with two related runtime paths: a standalone LLM-driven Python simulation and a web application that configures a game, submits transactions through a Flask/Web3 backend, and displays world state. The README also describes natural-language agent behavior and composable world logic; the contract and module nodes preserve that capability at the available tree level. Source excerpts show the main API and transaction calls, but do not expose Solidity internals or all frontend routes, so those relationships are not inferred.
Main entry points: web3game.py Web3 Game Adapter · ExplorerAgent.py Explorer Agent · Game.js Game Setup & View · app.py Game API
Components 12
Python Simulation
- Explorer Agent
ExplorerAgent.py - Explorer World
ExplorerWorld.py
Web Game
- Game Setup & View
frontend/src/Game.js - Game API
backend/app.py - Web3 Game Adapter
backend/web3game.py
On-chain World
- Game Factory
blockchain/contracts/Factory.sol - Gameplay Contract
blockchain/contracts/GamePlay.sol - Composable Modules
blockchain/contracts/Modules - On-chain Game State
blockchain/contracts/GamePlay.sol
Agent Intelligence
- On-chain Agent
backend/AgentConfig.py
Other components
- Player
- LLM Provider
Connections 14
- Player → Game Setup & View: configures
frontend/src/Game.js - Game Setup & View → Game API: submits game actions
frontend/src/Game.js - Game API → Web3 Game Adapter: dispatches requests
backend/app.py - Web3 Game Adapter → Game Factory: starts game
backend/web3game.py - Web3 Game Adapter → Gameplay Contract: sends transactions
backend/web3game.py - Web3 Game Adapter → On-chain Agent: creates agents
backend/web3game.py - Web3 Game Adapter → Composable Modules: deploys modules
backend/web3game.py - Gameplay Contract → On-chain Game State: updates state
- Composable Modules → Gameplay Contract: extends gameplay
- On-chain Agent → LLM Provider: requests decisions
- Player → Explorer Agent: defines principles
README.md - Explorer Agent → Explorer World: acts in world
ExplorerAgent.py - Explorer Agent → LLM Provider: generates actions
- Game Setup & View → Game API: polls world state
frontend/src/Game.js