Git Product home page Git Product logo

wordle_solver's Introduction

Введение

Игра представляет собой клона популярной игры Wordle. Для решения головоломки были реализованы три алгоритма. Игра и алгоритмы реализованы на Python.

Особенности

Игра предоставляет три режима:

  • P - Играть в Wordle
  • H - Получить помощь в решении Wordle
  • T - Протестировать агента для решения Wordle

При желании можно добавить любой язык. Для этого в файле .env нужно изменить DICT_PATH = data/your_file.csv. В файле main.py можно менять алгоритмы.

Запуск проекта

Клонируйте репозиторий и выполните следующие действия в командной строке:

cd wordly
pip install -r requirements.txt
python main.py

Структура проекта

Реализация включает следующие классы и файлы:

Класс WordleGame

Класс WordleGame представляет простую версию игры Wordle. Игроки могут взаимодействовать с этим классом, чтобы играть в игру.

Классы агентов

Три класса агентов - Solver1, Solver2 и Solver3 - реализованы в отдельных файлах solver1.py, solver2.py и solver3.py. Эти агенты используют различные алгоритмы для решения головоломки Wordle.

Производительность алгоритмов

Таблица ниже отображает производительность каждого алгоритма на основе 10 000 сыгранных партий:

Алгоритм Процент Побед Среднее Количество Попыток Время Выполнения
Solver1 73.13% 5.25 10м50с
Solver2 84.17% 4.66 41м29с
Solver3 84.36% 4.73 18м5с

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.