Skip to content
Snippets Groups Projects
Commit bfe2d1e0 authored by Bariatti Francesco's avatar Bariatti Francesco
Browse files

Changes aux toolls

parent acd4c628
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python3
#-*- encoding: utf-8 -*-
import sys
try:
while True:
bitboard = int(input("Enter board : "))
while True:
bitboard = int(input("Enter board : "))
output = [" "]
output = []
for i in range(59, -1, -1):
if(i % 15 == 14):
output.append("|\n ")
elif(i % 15 == 7):
output.append("|\n")
if((bitboard >> i) & 1 == 1):
output.append("|x")
else:
output.append("| ")
output.append("|")
print(''.join(output))
for i in range(59, -1, -1):
if((bitboard >> i) & 1 == 1):
output.append("|x")
else:
output.append("| ")
if(i % 15 == 0):
output.append("|\n ")
elif(i % 15 == 8):
output.append("|\n")
print(''.join(output))
except KeyboardInterrupt:
print("\nMay the fish be with you.")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment