Repository with some simple code tasks solved. Each adventure is a single python
module, in some cases it provides some interaction via CLI adventure
.
Simple implementation of Wave Function Collapse algorithm for solving sudoku puzzle. Can be used via CLI with:
adventure wfc-sudoku
Can output individual steps of solution.
Sometimes fails due to random choices that lead to cases with impossible solutions
Example:
Very simple and not optimal in terms of complexity (
Provides 3 distance functions:
-
Euler
Default distance function, widely known by everyone.
-
Manhattan
Also known as "taxicab" distance, calculated as length of vertical and horizontal moves from one position to another.
-
Chebyshev
Distance function calculated as max difference between
$x$ and$y$ of positions.
For generating random centers of groups I also provide 3 different approaches:
Approach | Description |
---|---|
Random | Generates random |
Min Distance Random | Generates random |
Fuzzy Grid | Builds a grid of evenly distributed center and than based on fuzz radius randomly moves them around initial position |