Added spacer to oberon games waiting output

This commit is contained in:
sloumdrone 2019-02-06 07:01:41 -08:00
parent 0d6bd528ba
commit 3a1a260196
1 changed files with 2 additions and 1 deletions

3
oberon
View File

@ -183,7 +183,8 @@ def available_moves():
if len(p1) + len(p2) > 0:
p1 = ', '.join(str(x) for x in p1)
p2 = ', '.join(str(x) for x in p2)
print('\033[1;32mIt is your turn in the following game(s): {}{}\033[0m'.format(p1, p2))
spacer = ', ' if p1 and p2 else ''
print('\033[1;32mIt is your turn in the following game(s): {}{}{}\033[0m'.format(p1, spacer, p2))
else:
print('It is not your turn in any games...\n')