Coder Social home page Coder Social logo

sbhambr1 / wordle_using_rollouts Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 14.93 MB

This repository contains the official code for the paper: "Reinforcement Learning Methods for Wordle: A POMDP/Adaptive Control Approach" by Siddhant Bhambri, Amrita Bhattacharjee & Dimitri Bertsekas, accepted at IEEE CoG 2023.

Home Page: https://arxiv.org/pdf/2211.10298.pdf

Python 47.62% Jupyter Notebook 52.38%
dynamic-programming reinforcement-learning rollout wordle-game

wordle_using_rollouts's Introduction

Official Code for the paper: "Reinforcement Learning Methods for Wordle: A POMDP/Adaptive Control Approach" (IEEE CoG 2023)

This repository contains the official code for the paper: "Reinforcement Learning Methods for Wordle: A POMDP/Adaptive Control Approach" by Siddhant Bhambri, Amrita Bhattacharjee & Dimitri Bertsekas, accepted at IEEE CoG 2023.

Please checkout the shorter version of the paper here and the longer version on arXiv.

Abstract

In this paper we address the solution of the popular Wordle puzzle, using new reinforcement learning methods, which apply more generally to adaptive control of dynamic systems and to classes of Partially Ob- servable Markov Decision Process (POMDP) problems. These methods are based on approximation in value space and the rollout approach, ad- mit a straightforward implementation, and provide improved performance over various heuristic approaches. For the Wordle puzzle, they yield on- line solution strategies that are very close to optimal at relatively modest computational cost. Our methods are viable for more complex versions of Wordle and related search problems, for which an optimal strategy would be impossible to compute. They are also applicable to a wide range of adaptive sequential decision problems that involve an unknown or fre- quently changing environment whose parameters are estimated on-line.

Installation

Clone the repository:

git clone https://github.com/sbhambr1/wordle_using_rollouts
cd wordle_using_rollouts

Create a virtual environment:

python3 -m venv wordle
source wordle/bin/activate

Install the requirements:

pip install -r requirements.txt

Data

Download the data from here into the folder 'data' located in the project's root directory.

Usage

python3 solver/3b1b_starter_code.py

Citation

If you find this code useful, please consider citing our paper:

Bhambri, S., Bhattacharjee, A. and Bertsekas, D., 2023, August. Playing Wordle Using an Online Rollout Algorithm for Deterministic POMDPs. In 2023 IEEE Conference on Games (CoG) (pp. 1-4). IEEE.

Shout out to Grant Sanderson's (3Blue1Brown author) repository from where the Wordle simulator and Maximum Information Gain heuristic has been adopted!

wordle_using_rollouts's People

Contributors

amritabh avatar sbhambr1 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.