HaliteChallenge / Halite-III

Season 3 of @twosigma's artificial intelligence programming challenge
MIT License
178 stars 111 forks source link

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

Open lukey-luke opened 5 years ago

lukey-luke commented 5 years ago

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 commented 5 years ago

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