Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
1

Checker or chessboard

Thecatlover422
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.

2 years ago

Voters

Comments

TopNew
1
DynamicSquid
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
2 years ago
1
Thecatlover422
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).

2 years ago
1
Thecatlover422
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!

2 years ago
Load more