Giter VIP home page Giter VIP logo

lor-bot's Introduction

Legends of Runeterra Bot

A bot for the game Legends of Runeterra written in Python. It can play the game on a very superficial level.

Prerequisites

  • Python 3 (tested on Python 3.10.2)
  • All libraries in requirements.txt installed (run pip install -r requirements.txt)
  • Game running fullscreen at 1920x1080 resolution and at least medium quality (otherwise the image detection procedure cannot read the mana values)
  • In-game third party endpoints enabled on port 21337 (should be on by default)

Notes

This bot is very limited in terms of funcionality:

  • Every information about a card (apart from its position) is static, which means it does not consider unit's change in stats (attack, health, mana, additional keywords ...)
  • It does not know how to do targeting at all (apart from few exceptions: Imperial Demolitionist, Oblivious Islander)

Viable decks

Considering those limitations, there are only a few decks which are viable / suited for this bot. Here are the tested, recommended decks:

  • Ephemeral: CEBQCBACBYBQCAQJBUNQSAIFAMCAOCQMCULSMKQAAEAQCBJB
  • Pirates: CICACAQDAQAQKBQBAUAQGAQMB4SSQBICAYLCAJRNHQAQEAQGBAGQA
  • Mistwraiths: CEBQCBAFGYBQGBIDAYGQQAIFAMHBAHRBE42TQAQBAEBTGAIBAU3QA

Note that this bot has built-in strategies (play styles) for Ephemeral and Pirate decks, which are determined automatically. If the deck isn't recognized, it will switch to generic playstyle which might not work as you would expect.

How to run

Run the game the way it is specified in the Prerequisites section and run the following command in the project directory: python LOR_Bot.py or simply use your IDE to run that file. If you want to test the bot against the in-game AI, you can run: python LOR_Bot.py noPVP

A new window should open containg various information about the current state of the game.

Bot will then navigate through menus and always select the first deck in your collection and select the play button. You can favorite the deck you want to use, or prepend the deck's name with a '.' (that way it will appear first on the list).

If you would like to obtain control of your mouse, hold down the Ctrl key. It may not work instantly, but it will stop in time.

If you would like to quit the application, you can press the Q key on the opened window or press the Ctrl-C combination in the terminal.

lor-bot's People

Contributors

moj0 avatar dependabot[bot] avatar

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.