Skip to content

matsuyoshi30/gomaze

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Maze written in Go circleci

Usage

$ go get -u github.com/matsuyoshi30/gomaze

$ gomaze
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
S           ||  ||                      ||  ||          ||  ||
||  ||||||  ||  ||  ||  ||||||||||  ||||||  ||  ||  ||||||  ||
||  ||  ||  ||      ||      ||  ||  ||  ||      ||      ||  ||
||||||  ||  ||  ||||||  ||||||  ||  ||  ||||||||||  ||  ||  ||
||  ||              ||  ||  ||          ||          ||  ||  ||
||  ||  ||  ||||||||||||||  ||||||  ||||||  ||  ||||||  ||  ||
||  ||  ||  ||                  ||          ||      ||  ||  ||
||  ||||||  ||||||  ||||||  ||||||  ||  ||  ||  ||  ||||||  ||
||          ||  ||  ||  ||  ||      ||  ||  ||  ||          ||
||  ||  ||||||  ||  ||  ||  ||  ||||||||||  ||||||||||||||  ||
||  ||          ||  ||  ||  ||  ||                  ||  ||  ||
||||||  ||||||  ||||||  ||  ||  ||||||||||||||||||||||  ||  ||
||      ||  ||          ||  ||  ||          ||  ||          ||
||||||||||  ||  ||||||||||  ||||||  ||||||  ||  ||  ||||||||||
||              ||  ||      ||      ||      ||      ||      ||
||||||  ||||||||||  ||  ||  ||  ||  ||||||||||  ||  ||  ||||||
||      ||  ||  ||      ||  ||  ||  ||          ||      ||  ||
||  ||||||  ||  ||||||  ||  ||  ||  ||  ||||||  ||||||  ||  ||
||  ||              ||  ||  ||  ||      ||  ||  ||  ||      ||
||  ||||||||||  ||||||  ||||||||||||||  ||  ||  ||  ||  ||||||
||      ||          ||              ||  ||  ||      ||  ||  ||
||  ||||||  ||||||||||  ||||||||||  ||  ||  ||  ||  ||||||  ||
||  ||              ||  ||                  ||  ||          ||
||  ||||||||||  ||||||  ||||||  ||||||||||||||||||  ||||||  ||
||      ||  ||  ||  ||      ||  ||  ||              ||      ||
||||||  ||  ||  ||  ||  ||||||  ||  ||||||||||  ||||||||||||||
||          ||          ||              ||  ||              ||
||  ||  ||  ||||||||||  ||||||||||||||||||  ||  ||||||  ||  ||
||  ||  ||      ||          ||                      ||  ||   G
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

You can specify the size of maze with --height or --width.

$ gomaze --height 10 --width 10
||||||||||||||||||||||
S       ||      ||  ||
||||||  ||  ||||||  ||
||      ||          ||
||  ||||||  ||  ||||||
||  ||      ||      ||
||  ||  ||  ||||||  ||
||      ||      ||  ||
||||||  ||  ||||||  ||
||      ||      ||   G
||||||||||||||||||||||

You can play the maze with --screen and use arrow keys.

You can see the maze solution with --bfs or --dfs.

Releases

No releases published

Packages

No packages published