An open API service indexing awesome lists of open source software.

https://github.com/healeycodes/sokoban

🧩 Sokoban game and automated puzzle solver
https://github.com/healeycodes/sokoban

sokoban sokoban-solver

Last synced: 4 months ago
JSON representation

🧩 Sokoban game and automated puzzle solver

Awesome Lists containing this project

README

          

[![Node.js CI](https://github.com/healeycodes/sokoban/actions/workflows/node.js.yml/badge.svg)](https://github.com/healeycodes/sokoban/actions/workflows/node.js.yml)

# 🧩 sokoban

> My blog post: [Building and Solving Sokoban](https://healeycodes.com/building-and-solving-sokoban)


A Sokoban game built with Next.js — skinned with [Boxxle](https://en.wikipedia.org/wiki/Boxxle) sprites, and packaged with 40 tiny eloquent levels from the [Microcosmos level collection](http://sneezingtiger.com/sokoban/levels/minicosmosText.html).

Also included is a breadth-first search [solver](https://github.com/healeycodes/sokoban/blob/main/game/solver.ts) with a transposition table and move-ordering.

![A Sokoban puzzle.](https://github.com/healeycodes/sokoban/blob/main/preview.png)

Playable on desktop and mobile at https://sokobanz.vercel.app

## Development

```
npm run dev
```

## Tests

```
npm test
```