1
0
Fork 0
mirror of https://gitlab.com/oloturia/damastodon.git synced 2025-01-07 22:17:15 +01:00

alignment not good

This commit is contained in:
oloturia 2021-10-30 03:05:01 +02:00
parent 14eb5e9d19
commit d7a77b73c9
2 changed files with 3 additions and 5 deletions

View file

@ -7,7 +7,6 @@ import pickle
import random
import os
import time
import re
import sys
api_url = sys.argv[1]

View file

@ -2,12 +2,11 @@
import re
def draw_checkerboard(status,space="",white_norm="h",white_knight="H",black_norm="b",black_knight="B",empty=" ",frstrow=" abcdefgh\n"):
def draw_checkerboard(status,space="",white_norm="h",white_knight="H",black_norm="b",black_knight="B",empty=" ",frstrow=" abcdefgh\n",column="12345678"):
bstr = ""
bstr += frstrow
for row in range(0,len(status)):
bstr += str(row+1)+""
bstr += column[row]
if row % 2 == 0:
bstr += space
for cell in range(0,int(len(status)/2)):