This is small collection of games written in python using pyxel.
WASD
to move the cursor0, ..., 9
to mark selected cellspace
to start/stop the solveUP, DOWN
to set the riddle fill percentageenter
to generate riddle
The general approach used in this solver is a brute-force solve using back-tracking enhanced with a bit of domain knowledge:
- each cell on the board has a set of entry candidates
- cells with less entry candidates are preferred
- entry candidates that are less common are preferred
- cells with the least common entry candidates are preffered
- Move mouse and click to generate a maze
This little app implements maze generation through simple stack-based backtracking.
mouse left
attract to cursormouse right
repel from cursor
This is a simple implementation of so called boids, which are the brain child of Craig Reynolds. The general idea behind them is that one can simulate a flocking swarm of entities by applying just 3 simple rules:
- Seperation: steer to avoid crowding local flockmates
- Alignment: steer in a similar direction to local flockmates
- Cohesion: steer towards the center of the local flock
In addition to these three simple rules I've also add a common extension, by which one can give the boids a target to head towards or away from.