Coder Social home page Coder Social logo

ppo_m3_simulator's Introduction

PPO with M3 Simulator

Thanks for kamildar/gym-match3 publish the baseline of building gymnasium match-3 games

Configurations

M3 Simulator Setup

  1. You need to clone this repo into local first:

    git clone https://github.com/htrbao/PPO_M3_Simulator
  2. Install the requirements

    • Using conda:

      conda create -n m3_simu python=3.9
      conda activate m3_simu
      conda install pytorch pytorch-cuda=11.8 -c pytorch -c nvidia
      cd gym-match3
      pip install -e .
      pip install -r requirements.txt
      
    • Using venv:

      python -m venv ./venv
      path/to/venv/Scripts/activate
      pip3 install torch --index-url https://download.pytorch.org/whl/cu118
      cd gym-match3
      pip install -e .
      pip install -r requirements.txt

M3 Simulator Usage

  1. Please refer to this notebook to know how to use gym-match3 environment.

M3 Simulator Levels Configs

  1. You can also contribute your custom levels by append it into LEVELS list within gym_match3.envs.levels

    For example:

    Level(h=10, w=9, n_shape=6, board=[
        [-1, -1, -1, -1,  0, -1, -1, -1, -1],
        [-1, -1, -1,  0,  0,  0, -1, -1, -1],
        [-1, -1,  0,  0,  0,  0,  0, -1, -1],
        [-1,  0,  0,  0,  0,  0,  0,  0, -1],
        [ 0,  0,  0,  0,  0,  0,  0,  0,  0],
        [-1,  0,  0,  0,  0,  0,  0,  0, -1],
        [-1, -1,  0,  0,  0,  0,  0, -1, -1],
        [-1, -1, -1,  0,  0,  0, -1, -1, -1],
        [-1, -1, -1, -1,  0, -1, -1, -1, -1],
        [-1, -1, -1, -1, -1, -1, -1, -1, -1],
    ])
    

M3 Training

ppo_m3_simulator's People

Contributors

htrbao 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.