Skip to content
Sign upLog in
← Back to Community

Checker or chessboard

Profile icon
Thecatlover422

here is a chess or checkerboard! The squares are paterend, and it is the right way facing. it might take awilhe to draw the chess or checkerboard, though.

Voters
Profile icon
Thecatlover422
Comments
hotnewtop
Profile icon
DynamicSquid

Cool! Just a tip though:

# this: if diagonal: diagonal = False starting_color = "beige" other_color = "gray" else: diagonal = True starting_color = "gray" other_color = "beige" # can be rewritten like this: if diagonal: starting_color = "beige" other_color = "gray" else: starting_color = "gray" other_color = "beige" diagonal = not diagonal
Profile icon
Thecatlover422

@DynamicSquid
thanks! I was coding with my code coach and another person, and the other person accidentally deleted the other way, so my code coach showed us the other way to do it (Was that confusing? Sry).

Profile icon
Thecatlover422

@Thecatlover422
but you did the last one a little differently and shorter then me, so thanks! I will add it when I'm not in a meeting!