woo-chia-wei / grid-coloring

Generate random connected squares that adjacent squares have different colors.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

Generate random connected squares, apply color on each square so that each adjacent square have different colors. Here we use the fact that 4 different colors are sufficient for any map coloring, refer to four color theorem.

About

Generate random connected squares that adjacent squares have different colors.


Languages

Language:Jupyter Notebook 100.0%