Skip to content

d0rbu/mc-dreamer

Repository files navigation

MC Dreamer

Setup

Python Environment

Make sure to set up your venv/conda environment with requirements.txt. If you do not know what that is, run the following command (assuming you have Python >= 3.11 installed) for Mac/Linux:

python -m venv .venv
.venv/Scripts/activate
pip install -r requirements.txt

or for Windows:

python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt

I would recommend installing the Python Environment Manager extension in VSCode, as it will automatically recognize the environment and set it as the default.

Web Scraping

If you want to do web scraping (very likely not, you would need a very good reason to), there is a little more setup to do. Create a .env file in the project directory and fill it out as follows:

PMC_EMAIL=<Planet Minecraft Email>
PMC_PASSWORD=<Planet Minecraft Password>

Since the password used here is in plaintext, I would highly discourage you from using your actual Planet Minecraft account or an actual password; just make a throwaway account for this purpose.

Then make sure drivers/chromedriver.exe matches your Chrome version. Currently, it is on version 120. You can check your Chrome version by going to chrome://settings/help in Chrome. If it does not match, you can download the correct version here. Make sure to unzip the file and replace the old chromedriver.exe with the new one.

Heuristic Evaluation

Overview

The heuristic evaluation is done in test_heuristic.py. The heuristics tested are in core/heuristics.py; use the @DisableForTesting decorator to disable a heuristic for testing. The test_heuristic.py file will run the heuristics on a few example inputs in the test_inputs folder and output the normalized scores as well as the cosine similarity with the reference scores in core/heuristics/ref_scores.yaml.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 6