Phillip
The SSBM "Phillip" AI.
Install / Use
/learn @vladfi1/PhillipREADME
The Phillip AI
An SSBM player based on Deep Reinforcement Learning.
NOTE: This project is no longer active and is subject to bit-rot. There is a successor project based on imitation learning from slippi replays at https://github.com/vladfi1/slippi-ai.
Requirements
Tested on: Ubuntu >=14.04, OSX, Windows 7/8/10.
- The dolphin emulator. You will probably need to compile from source on Linux. On Windows you'll need to install a custom dolphin version - just unpack the zip somewhere.
- The SSBM iso image. You will need NTSC 1.02.
- Python 3. On Windows, you can use Anaconda which sets up the necessary paths. You can also use the linux subsytem on Windows 10.
- Install phillip. You can download and extract a zip file or clone this repository. Then, from the phillip root, run
pip install -e .. - Some trained agents are included in the
agentsdirectory. The full set of trained agents is available here.
Play
You will need to know where dolphin is located. On Mac the dolphin path will be /Applications/Dolphin.app/Contents/MacOS/Dolphin. If dolphin-emu is already on your PATH then you can omit this.
python3 phillip/run.py --gui --human --start 0 --reload 0 --epsilon 0 --load agents/FalconFalconBF --iso /path/to/SSBM.iso --exe /path/to/dolphin [--windows]
Trained agents are stored in the agents directory. Aside from FalconFalconBF, the agents in agents/delay0/ are also fairly strong. Run with --help to see all options. The best human-like agent is delay18/FalcoBF, available in the Google Drive zip.
Windows Notes
- The
--exewill be the path to theBinary\x64\Dolphin.exeyou unzipped. In general, the forward/s should be back\s for all paths, unless you are using MinGW, Cygwin, git bash, or some other unix shell emulator. - You may need to omit the
3from commands likepython3andpip3. - If not using Anaconda, you will likely need to modify your PATH so that python is visible to the command prompt.
- Communication with dolphin is done over the local loopback interface, enabled with the
--tcp 1flag (now implied by--windows). You may also need to open port 5555 in your firewall. - If on Windows 10 you can do everything in the Linux subsystem and follow the linux instructions, except for obtaining dolphin. You will need to pass in an explicit user directory with
--user tmp(the temp directories that python creates start with/tmp/...and aren't valid for windows dolphin).
Train
Training is controlled by phillip/train.py. See also runner.py and launcher.py for training massively in parallel on slurm clusters. Phillip has been trained at the MGHPCC. It is recommended to train with a custom dolphin which uses zmq to synchronize with the AI - the below commands will likely fail otherwise.
Local training is also possible. First, edit runner.py with your desired training params (advanced). Then do:
python3 runner.py # will output a path
python3 launcher.py saves/path/ --init --local [--agents number_of_agents] [--log_agents]
To view stats during training:
tensorboard --logdir logs/
The trainer and (optionally) agents redirect their stdout/err to slurm_logs/. To end training:
kill $(cat saves/path/pids)
To resume training run launcher.py again, but omit the --init (it will overwrite your old network).
Training on Windows is not supported.
Thanks to microsoftv there is now an instructional video as well!
Support
Come to the Discord!
Recordings
I've been streaming practice play over at http://twitch.tv/x_pilot. There are also some recordings on my youtube channel.
Credits
Big thanks to altf4 for getting me started, and to spxtr for a python memory watcher. Some code for dolphin interaction has been borrowed from both projects (mostly the latter now that I've switched to pure python).
Related Skills
claude-opus-4-5-migration
81.7kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
model-usage
332.3kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
TrendRadar
49.6k⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。
mcp-for-beginners
15.6kThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable, and secure AI workflows from session setup to service orchestration.
