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

Print 'halite amount' in color when game.ready() returns #171

Open
lukey-luke opened this issue Dec 2, 2018 · 1 comment
Open

Print 'halite amount' in color when game.ready() returns #171

lukey-luke opened this issue Dec 2, 2018 · 1 comment

Comments

@lukey-luke
Copy link

basically something like this, would make the output easier to scan

halite_amount = '1234'
class bcolors:
    RED='\033[0;31m'
    NC='\033[0m'

print(bcolors.RED + halite_amount + bcolors.NC)

when you noramlly only see the info text colored

[info] Player 0, 'BOT_NAME', was rank 2 with 4000 halite
[info] Player 1, 'BOT_NAME', was rank 1 with 4011 halite
@lukey-luke
Copy link
Author

doesn't have to be red, just picked that as an example

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

No branches or pull requests

1 participant