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

https://github.com/orisomething/sokoban-cli

Sokoban CLI
https://github.com/orisomething/sokoban-cli

cli game node sokoban typescript

Last synced: 6 months ago
JSON representation

Sokoban CLI

Awesome Lists containing this project

README

          

# Sokoban CLI

Play Sokoban from the CLI with custom maps.

![Screen shot from level](https://raw.githubusercontent.com/orisomething/sokoban-cli/master/assets/screenshot-1.png)

## Install

```sh
npm i -g sokoban-cli
```

## Play

You can play maps from files:

```sh
sokoban-cli map.txt
```

Or you can play maps from the web:

```sh
sokoban-cli https://raw.githubusercontent.com/orisomething/sokoban-cli/master/maps/test-maps.txt
```

And finally, you can put multiple maps files (`txt`) inside `~/.sokoban-cli` folder and play them by running the command
without arguments:

```sh
sokoban-cli
```

### keys

* Arrows keys for moving
* Q - Quit level/game
* R - Start from the beginning
* U - Undo

In case you need to scroll you can use the mouse