- Notifications
You must be signed in to change notification settings - Fork1
License
sbl1996/yugioh-ai
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
(Deprecated, merged intoygo-agent)
Yugioh AI uses large language models (LLM) and RL to play Yu-Gi-Oh. It is inspired byyugioh-ai andyugioh-game, and usesygopro-core.
An automated setup script is provided for Linux (tested on Ubuntu 22.04). It will install all dependencies and build the library. To run it, execute the following commands:
make setup
Test that the repo is setup correctly by running:
python cli.py --deck1 deck/Starter.ydk --deck2 deck/BlueEyes.ydk
You should see text output showing two random AI playing a duel by making random moves.
You can set--seed
to a fixed value to get deterministic results.
The implementation is initially based onyugioh-game. To provide a clean game environment, it removes all server code and only keeps basic duel-related classes and message handlers.To implement the AI, inspired byyugioh-ai, every message handler also provides all possible actions that can be taken in response to the message.
Never