Compatible ANSI color set #75
Labels
bug
Something isn't working correctly or something crashes the program
documentation
Improvements or additions to documentation
easy
Good for newcomers
This issue is easier than it sounds. Don't get scared by the title. Plus, it'll make all your terminal applications from now on much cooler.
For terminals with reduced color capability, we need to add a basic color set that looks hopefully decent. Review https://en.wikipedia.org/wiki/ANSI_escape_code, specifically the section on 8-bit. The color set you implement should ONLY choose from "Standard Colors" and "High-intensity colors" because I think those are the bare minimum which will be compatible with all terminals.
The relevant TODO is in style.py in the COLORS class. It is important for you to override either this class entirely or the instance variables of this class with a compatible color set. Additionally, if you can add a debug argument (-arg) to player.py and banker.py which tells the computer to use the compatible color set, that would be great.
HAVING SAID THAT, if you can test and document as many colors as possible (perhaps using a colortest() function... in style.py...), that would be an excellent, robust addition to the project.
The text was updated successfully, but these errors were encountered: