feat: Initial commit

This commit is contained in:
2024-03-22 17:01:42 +01:00
parent 954985f39a
commit c343ff6e93
106 changed files with 143428 additions and 1 deletions

19
scacchi.py Normal file
View File

@@ -0,0 +1,19 @@
while True:
casella = input("Inserire casella es g15")
lettera = casella[0]
numero = int(casella[1])
if lettera in "abcdefgh" and 0 <= numero <= 8:
break
if lettera in "aceg":
if numero % 2 == 0:
print("Bianco")
else:
print("Nero")
else:
if numero % 2 == 1:
print("Bianco")
else:
print("Nero")