项目作者: andrzejchmura

项目描述 :
Rush Hour puzzle online game and solver
高级语言: JavaScript
项目地址: git://github.com/andrzejchmura/rush.git
创建时间: 2019-09-09T16:49:01Z
项目社区:https://github.com/andrzejchmura/rush

开源协议:

下载


Rush

Rush Hour puzzle online game and solver

Status: In progress

Overview

This is my final project for Harvard’s CS50x course. Since first half of the course focuses mainly on data structures and algorithms I’ve decided to expand on the topic of graph traversal algorithms.

Game description

Rush Hour is a sliding block puzzle invented by Nob Yoshigahara in the 1970s.

The board is a 6x6 grid which acts as a ground for multiple vehicles. Cars and trucks are both one square wide, but cars are two squares long and trucks are three squares long. Vehicles can only be moved along a straight line on the grid and rotation is forbidden.

The goal of the game is to get only the red car out through the exit of the board by moving the other vehicles out of its way. However, the cars and trucks (set up before play, according to a puzzle data) obstruct the path which makes the puzzle harder.

Puzzle database

The database of puzzles comes from an amazing research project by Michael Fogleman.

Development

  1. npm start