tjerkok / Rush_Hour

0 stars 0 forks source link

Rush Hour

Rush Hour

Rush hour is a puzzle where the goal is to lead the red (target) car to the exit, right in front of it. However, there are other vehicles that block the road, cars of two units long and trucks three units long. Each vehicle can only move forward and backward in the direction of its position (horizontal/vertical). The task here is therefore to clear the way to the exit by moving vehicles and bringing the red (target) car to the exit.

Description of approach to the algorithms

Requirements

This codebase is fully written in Python 3.8.5 until 3.9.1. The packages for running this code are in requirements.txt and can be installed using pip: "pip install -r requirements.txt"

Usage

python3 main.py [gameboards/"gamename".csv] (["algorithm"]) (["heuristic"]) (["sample size"]) (["max depth"])

Algorithms:

Heuristics:

Results and output

Structure

Authors