This commit is contained in:
2025-01-12 00:19:12 +01:00
parent 628297cae7
commit 94a4849d90
2 changed files with 4 additions and 4 deletions

View File

@@ -26,7 +26,7 @@ def new_game(channel_id, handicap=0, komi=6.5):
f.write(game.serialise())
f.close()
os.system("sgf-render -f png --style fancy --label-sides nesw -o "+str(channel_id)+".png -n last "+str(channel_id)+".sgf")
os.system("/home/nik/.cargo/bin/sgf-render -f png --style fancy --label-sides nesw -o "+str(channel_id)+".png -n last "+str(channel_id)+".sgf")
#0 if black to play, 1 if white to play
def next_colour(channel_id):
@@ -87,7 +87,7 @@ def play_move(channel_id, messagestr, player, overwrite=False):
f.write(game.serialise())
f.close()
os.system("sgf-render -f png --style fancy --label-sides nesw -o "+str(channel_id)+".png -n last "+str(channel_id)+".sgf")
os.system("/home/nik/.cargo/bin/sgf-render -f png --style fancy --label-sides nesw -o "+str(channel_id)+".png -n last "+str(channel_id)+".sgf")
# colour is "B" if black resigns, "W" if white resigns
def resign(channel_id, colour, file_name):