mirror of
https://gitlab.com/oloturia/damastodon.git
synced 2025-01-06 21:47:15 +01:00
alignment again
This commit is contained in:
parent
8e12b8e259
commit
9a9c4ae9b6
1 changed files with 2 additions and 2 deletions
|
@ -100,7 +100,7 @@ def check_message(notification):
|
|||
colour = "◾"
|
||||
winner = dama.checkWin(board)
|
||||
if winner == (False,False):
|
||||
mastodon.status_post("◾: "+black+" ◽: "+white+" turn "+colour+"\n"+dama.draw_checkerboard(board,space="🟥 ",white_norm="◽ ",white_knight="⚪ ",black_norm="◾ ",black_knight="⚫ ",empty="🟦 ",frstrow="0🇦 🇧 🇨 🇩 🇪 🇫 🇬 🇭 \n"),visibility="direct")
|
||||
mastodon.status_post("◾: "+black+" ◽: "+white+" turn "+colour+"\n"+dama.draw_checkerboard(board,space="🟥",white_norm="◽",white_knight="⚪",black_norm="◾",black_knight="⚫",empty="🟦",frstrow="0🇦 🇧 🇨 🇩 🇪 🇫 🇬 🇭 \n"),visibility="direct")
|
||||
return
|
||||
else:
|
||||
if winner == (True,False):
|
||||
|
@ -109,7 +109,7 @@ def check_message(notification):
|
|||
winner_t = "BLACK"
|
||||
os.remove(save_position+black[1:])
|
||||
os.remove(save_position+white[1:])
|
||||
mastodon.status_post("◾: "+black+" ◽: "+white+"\n"+winner_t+" WINS!\n"+dama.draw_checkerboard(board,space="🟥 ",white_norm="◽ ",white_knight="⚪ ",black_norm="◾ ",black_knight="⚫ ",empty="🟦 ",frstrow="0🇦 🇧 🇨 🇩 🇪 🇫 🇬 🇭 \n"),visibility="direct")
|
||||
mastodon.status_post("◾: "+black+" ◽: "+white+"\n"+winner_t+" WINS!\n"+dama.draw_checkerboard(board,space="🟥",white_norm="◽",white_knight="⚪",black_norm="◾",black_knight="⚫",empty="🟦",frstrow="0🇦 🇧 🇨 🇩 🇪 🇫 🇬 🇭 \n"),visibility="direct")
|
||||
return
|
||||
else:
|
||||
mastodon.status_post("@"+account+" \nIt's not your turn.",visibility="direct")
|
||||
|
|
Loading…
Reference in a new issue