Skip to content

sbl1996/yugioh-ai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yugioh AI

(Deprecated, merged into ygo-agent)

Yugioh AI uses large language models (LLM) and RL to play Yu-Gi-Oh. It is inspired by yugioh-ai and yugioh-game, and uses ygopro-core.

Usage

Setup

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

Running

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.

Implementation

The implementation is initially based on yugioh-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 by yugioh-ai, every message handler also provides all possible actions that can be taken in response to the message.

Notes

Never

Releases

No releases published

Packages

No packages published

Languages