mirror of
https://gitlab.com/oloturia/damastodon.git
synced 2025-01-07 22:17:15 +01:00
typo
This commit is contained in:
parent
547e8147ff
commit
b50152dbbd
1 changed files with 3 additions and 3 deletions
|
@ -72,7 +72,7 @@ def check_message(notification):
|
||||||
pickle.dump("@"+challenger,f)
|
pickle.dump("@"+challenger,f)
|
||||||
pickle.dump(False,f)
|
pickle.dump(False,f)
|
||||||
pickle.dump(board,f)
|
pickle.dump(board,f)
|
||||||
mastodon.status_post("◾: @"+account+" ◽: @"+challenger+" \nturn ◽\n"+dama.draw_checkerboard(board,space,white_norm,white_knight,black_norm=,black_knight,empty,column,frstrow),visibility="direct")
|
mastodon.status_post("◾: @"+account+" ◽: @"+challenger+" \nturn ◽\n"+dama.draw_checkerboard(board,space,white_norm,white_knight,black_norm,black_knight,empty,column,frstrow),visibility="direct")
|
||||||
return
|
return
|
||||||
elif content.split(" ")[1].lower() == "no":
|
elif content.split(" ")[1].lower() == "no":
|
||||||
os.remove(save_position+content.split(" ")[0][1:])
|
os.remove(save_position+content.split(" ")[0][1:])
|
||||||
|
@ -110,7 +110,7 @@ def check_message(notification):
|
||||||
colour = "◾"
|
colour = "◾"
|
||||||
winner = dama.checkWin(board)
|
winner = dama.checkWin(board)
|
||||||
if winner == (False,False):
|
if winner == (False,False):
|
||||||
mastodon.status_post("◾: "+black+" ◽: "+white+" \nturn "+colour+"\n"+dama.draw_checkerboard(board,space,white_norm,white_knight,black_norm=,black_knight,empty,column,frstrow),visibility="direct")
|
mastodon.status_post("◾: "+black+" ◽: "+white+" \nturn "+colour+"\n"+dama.draw_checkerboard(board,space,white_norm,white_knight,black_norm,black_knight,empty,column,frstrow),visibility="direct")
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
if winner == (True,False):
|
if winner == (True,False):
|
||||||
|
@ -119,7 +119,7 @@ def check_message(notification):
|
||||||
winner_t = "BLACK"
|
winner_t = "BLACK"
|
||||||
os.remove(save_position+black[1:])
|
os.remove(save_position+black[1:])
|
||||||
os.remove(save_position+white[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,column,frstrow),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,column,frstrow),visibility="direct")
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
mastodon.status_post("@"+account+" \nIt's not your turn.",visibility="direct")
|
mastodon.status_post("@"+account+" \nIt's not your turn.",visibility="direct")
|
||||||
|
|
Loading…
Reference in a new issue