battleship_2.py

Created by alex-juge84

Created on May 18, 2022

303 Bytes


from math import *
from kandinsky import *

fr = fill_rect
tx = draw_string

def grille(num=True):
    for i in range(8):
        for j in range(8):
            fr(20+19*j,20+19*i,18,18,(196,196,196))
            if num : tx(chr(j+65),24+19*j,2)
        if num : tx(str(i),5,20+19*i)