Skip to content

roymiloh/AsciiArt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AsciiArt

A reader for ascii art numbers:

 _  _  _        _  _  _  _
  ||_||_|  ||_| _|| | _||_
  ||_||_|  |  ||_ |_| _| _|
  
  output: 788142035

If a digit does not fit, it returns ? for that digit.

Usage

reader := AsciiArt.NewReader(myInputReader)
// read the next value
record, err := reader.Read()
record.Write(os.Stdout)

Running tests

go test 'github.com/roymiloh/AsciiArt' -v --run=Test

There's also an example test (--run=Example)
Code Coverage

Configurations

For another mapping of numbers, you should fork it and change it internally, at least until next versions. You should also override the following configurations (of Reader):

  • DigitsPerRecord
  • LinesPerRecord
  • ColumnsPerDigit

TODO

  • Writer (from raw numbers to ascii art numbers)
  • Better customization

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages