Inspiration

  • Thought of it last night ## What it does
  • converts base-10 numbers to sequences of funny ascii art images ## How we built it
  • C++ CLI using standard template library, i.e. std::vector, std::map. Created and tested on Linux ## Challenges we ran into
  • Had to use std::map instead of an enum to actually be able to reference, for example, a lenny face from the base-10 number 37
  • Since C++ (and C) strings are read-only data, I had to do acrobatics with STL data structures to rebuild the base-67 string
  • The larger ASCII images required each digit to be newline seperated, which seemed to be the only feasible way to display a number system with symbols this large ## Accomplishments that we're proud of
  • It works! And larger, more complex ascii images were able to render without any problems, along with special characters, i.e. (◕‿◕✿) ## What we learned
  • You can have raw string literals in your C++ code via R"(...)" which preserves all newlines (was very useful for this project) ## What's next for base67converter
  • Ideally to have this packaged as a more robust API that can be used in other programs, instead of only being a CLI tool
  • Implement proper error checking
  • Implement a way to convert from base-67 back to base-10

Built With

Share this project:

Updates

Submission history