Skip to content

A small drunken bishop algorithm written in Go to represent bytes.

License

Notifications You must be signed in to change notification settings

eloonstra/go-little-drunken-bishop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go, Little Drunken Bishop!

go get github.com/eloonstra/go-little-drunken-bishop

Table of Contents

How does it work?

There's a great document of Dirk Loss that explains in detail how the art is generated. I definitely recommend checking it out.

Usage

Import the library.

import "github.com/eloonstra/go-little-drunken-bishop/pkg/drunkenbishop"

Then call the GenerateRandomArt function as follows:

drunkenbishop.GenerateRandomArt(17, 9, []byte("test"), true, "test title")

And that's it! The result is a string containing the art.

Example

An example of the output of the GenerateRandomArt function with "DrunkenBishop" as bytes and as title:

+-[DrunkenBishop]-+
|      . o.. .    |
|       +   o o   |
|        .   @ E  |
|       .   = @   |
|        S   + =  |
|           . +   |
|                 |
|                 |
|                 |
+-----------------+

License

This project is licensed under the MIT license.

Contributing

All contributions are welcome. Feel free to open an issue or pull request.

Future

The project is mainly finished; only the main function is not finished yet, so it's impossible to generate art from the command line.

About

A small drunken bishop algorithm written in Go to represent bytes.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages