codecogs equations
onsdag 14 april 2021
söndag 28 mars 2021
torsdag 25 mars 2021
Laser Macaroni
- Make the laser go through all the checkpoints to win. The laser turns blue when the puzzle is solved.
- A checkpoint with a tile on top of it does not count as checked, even if the laser goes through the macaroni on the tile.
- To rotate tiles, use double tap, mouse wheel click, or right click. On desktop, holding shift rotates tiles counterclockwise.
- The 'code' text is the definition of a game. It can be copied, pasted, and modified.
- Random games are not guaranteed to be solvable. The Levels have all been solved.
- Three wraps are available: 'finite' (default), 'cylinder', and 'torus'. They each give significantly different gameplay.
onsdag 24 mars 2021
Tangram
Drag to move. Mouse wheel to rotate clockwise. Shift+mouse wheel to rotate counterclockwise
Want a challenge to start? Try to make a perfect square
söndag 21 mars 2021
Bestagons
Drag to move. Mouse wheel to rotate clockwise. Shift+mouse wheel to rotate counter-clockwise.
Want a challenge to start? Try to build a 5x5 area without color collisions.
[1] See tantrix.com for the original.
torsdag 11 februari 2021
SAT for developers 1: What is SAT?
måndag 8 februari 2021
SAT: Some Constraints
In this post, I present four constraints that I have implemented for my satisfiability package SugarRush. It is based on PySAT [1].
Parity
This constraint is much much better to use than the method used in sat: disjunction operator.
Naive / general way, with disjunction (for 10 elements):
Special purpose encoding of parity constraint (for 10 elements):
Less / Leq
A natural question is: why is the t returned separately from the rest of the constraint? The reason is that this way, one can easily encode such constraints as "a is either less than b, or less than c", or "a is less than either b or c, but not both". An example usage here is to constrain two intervals to be non-overlapping:
Plus
Element
[1] Ignatiev, Alexey, Antonio Morgado, and Joao Marques-Silva. "PySAT: A Python toolkit for prototyping with SAT oracles." International Conference on Theory and Applications of Satisfiability Testing. Springer, Cham, 2018.