Update, Sort, Color code and table format to make it more readable. #1546
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
💭 Why do we need this change
🤓 Implementation details
Use a table format: Instead of just printing out the data as text, you can use a table format to make it more readable.
There are several libraries you can use for this, such as cli-table
Sort the data: You can sort the data by rarity so that the rare traits are at the top of the table.
This will make it easier to see which traits are the most valuable.
Color code the data: You can use colour coding to highlight the rarest traits.
For example, you can use green for the most common traits, yellow for moderately rare traits, and red for the most rare traits.
🛠️ How to test.
❗ Gotcha's
Video demonstration
https://recordit.co/hHaj4pM5Dj