Giter Site home page Giter Site logo

yugioh-ai's Introduction

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

yugioh-ai's People

Contributors

braillescreen avatar dependabot[bot] avatar jessicategner avatar jpavonabian avatar sbl1996 avatar sorressean avatar thyhellcat avatar timtam avatar tspivey avatar yncat avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

sorokinvld

yugioh-ai's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.