AIMmo
raw JSON → 2.11.3 verified Fri May 01 auth: no python
AIMmo is a game-based platform for learning artificial intelligence and programming, featuring the creation of AI agents to compete in a multiplayer game. Current version is 2.11.3, with irregular releases.
pip install aimmo Common errors
error ModuleNotFoundError: No module named 'aimmo.avatar' ↓
cause Avatar class moved to aimmo directly in version 2.0.0.
fix
Change import to: from aimmo import Avatar
error AttributeError: module 'aimmo' has no attribute 'Game' ↓
cause Incorrect installation or very old version (pre-2.0.0).
fix
Upgrade aimmo: pip install --upgrade aimmo
Warnings
breaking In version 2.0.0, the Avatar class was moved from aimmo.avatar to aimmo directly. Old imports will break. ↓
fix Use 'from aimmo import Avatar' instead of 'from aimmo.avatar import Avatar'.
deprecated The 'run()' method without arguments is deprecated; use 'run(render=True)' to enable rendering. ↓
fix Pass render=True to game.run() if you need visual output.
gotcha Requires eventlet for WebSocket functionality; missing installation will cause runtime errors when the game tries to connect. ↓
fix Install eventlet: pip install eventlet
Imports
- Game
from aimmo import Game - Avatar wrong
from aimmo.avatar import Avatarcorrectfrom aimmo import Avatar
Quickstart
from aimmo import Game
game = Game()
# Start the game with default settings
game.run()
print('Game started successfully')