Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Modularized ASCII into separate files. #69

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jordanbrotherton
Copy link
Contributor

Resolves #66

ASCII files are now managed in separate files, allowing for a more modular, conflict-free workflow.

ASCII Format

ascii.txt is removed in favor of an ascii folder, which contains individual files containing each image.
The file's first line can contain a 6 character code which handles the unique cases that were previously hardcoded in the get_graphics method.

  • GAMEBD: Only for the gameboard image's encoding.
  • CENTER: Centers the contents of the file to a default terminal's width (75)
  • NWLCUT: Removes all newlines (\n) in the image
  • NSTRIP: Performs a strip() to the image
  • LSTRIP: Performs an lstrip() to the image
  • RSTRIP: Performs an rstrip() to the image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhancement: Fix Order of ASCII Art Conflict Among Mulitple Modules
1 participant