Download the PHP package aminyazdanpanah/rush-hour-solver without Composer
On this page you can find all versions of the php package aminyazdanpanah/rush-hour-solver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aminyazdanpanah/rush-hour-solver
More information about aminyazdanpanah/rush-hour-solver
Files in aminyazdanpanah/rush-hour-solver
Package rush-hour-solver
Short Description 🚗 Rush Hour Game Solver
License MIT
Homepage https://github.com/aminyazdanpanah/Rush-Hour-Solver
Informations about the package rush-hour-solver
🚗 Rush Hour Solver in PHP
Rush Hour is a tiny sliding board game played on a board of 6x6 squares(it can be larger). The objective in the game is to free the red car from the surrounding traffic by sliding the cars out of the way onto free squares until the red car can drive out of the exit on the right side of the board. Note that cars can only go forward of reverse, not to the side. Use google or this video for an impression.
Contents
- Requirements
- Installation
- Quickstart
- Loading a Board
- Solving board
- Contributing and Reporting Bugs
- Credits
- License
Requirements
This version of the package is only compatible with PHP 8.1 or higher.
Installation
Install the package via composer:
Alternatively, add the dependency directly to your composer.json
file:
Quickstart
First of all, you need to include the package in your code:
Loading a Board
There two ways to load a board.
1. From an array
2. From a file
Solving board
output
steps to solve the board
Contributing and Reporting Bugs
I'd love your help in improving, correcting, adding to the specification. Please file an issue or submit a pull request.
- See Contributing File for more information.
- If you discover a security vulnerability within this package, please see SECURITY File for more information.
Credits
License
The MIT License (MIT). See License File for more information.