Wang tiles were first proposed by mathematician, Hao Wang in 1961. A set of square tiles, with each tile edge of a fixed color, are arranged side by side in a rectangular grid. All four edges of each tile must 'match' (have the same color as) their adjoining neighbor.
See
Install rust and run
$ cargo run
It generates a ppm image file which can be opened with feh or any other image viewer that supports ppm