Skip to content
/ Sokoban Public

An implementation of the classic Sokoban in Ruby with Curses

Notifications You must be signed in to change notification settings

M3L6H/Sokoban

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sokoban

A Sokoban clone made with Ruby and Curses as prep work for the second App Academy assessment.

Instructions

Download the project or clone it with git clone https://github.com/M3L6H/Sokoban.git. Run ruby ./play_sokoban.rb to start the game.

Description

You play as a factory worker. Your goal is to move crates onto a set of designated locations. However, you can only push the crates. Pulling is out of the question.

There are currently ten levels available to solve, taken from this website. If I find the time, I will add more/create my own.

Creating Levels

You can add to the list of levels at any point by adding to lib/levels/all.rb.

The level format is fairly easy to understand. Each map is designated by an array of strings, with each string representing a row in the map. Targets and walls are established here.

Additionally, a second array of locations and characters is created, specifying where the crates and the player should start. More details are included in the documentation inside lib/map.rb.

About

An implementation of the classic Sokoban in Ruby with Curses

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages