8000 GitHub - crawlik/maze-with-mines
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

crawlik/maze-with-mines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Starfleet Fun

Prerequisites

Ruby 2.3 & bundler gem. Please refer to https://www.ruby-lang.org/en/documentation/installation/ for installation instructions for your OS

Bootstrapping

bundle install

Running tests

rspec spec

Usage help

$ ruby emazeme
Commands:
  emazeme help [COMMAND]    # Describe available commands or one specific command
  emazeme solve FILE LIVES  # Solve mazes

Example

$ ruby emazeme solve mazes/maze.0
------------------------------
From 7:[1, 2] to 0:[0, 0]
Shortest path: [7, 4, 1, 0]
Shortest path directions: ["up", "up", "left"]
Mine hits: 1. Mine positions: [[1, 1]]

$ ruby emazeme solve mazes/mazes.txt

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0