Cracked Sudoku: A New Sudoku Variant Based on Voronoi Diagrams

2025-03-13
Cracked Sudoku: A New Sudoku Variant Based on Voronoi Diagrams

Tired of traditional Sudoku? Cracked Sudoku is here! This new Sudoku variant uses irregular Voronoi diagrams as its game board. The rules remain familiar to Sudoku fans, but 'rows' and 'columns' are replaced by 'runs'—connected sequences of cells without repeating numbers. The shapes of these runs are determined by the Voronoi diagram, creating a unique solving experience. The author shares the design philosophy and algorithms, and calls for experienced puzzle constructors to collaborate on creating more sophisticated levels, injecting more vitality into this innovative game.

Read more

Rick in 240 Lines of Code: A Stunning GLSL Animation

2025-02-06
Rick in 240 Lines of Code: A Stunning GLSL Animation

This article details the author's eight-month journey creating a breathtaking Rick animation using only 240 lines of GLSL code, no libraries, and no images. The author embeds a live coding editor within the post, allowing readers to program their own animations. The process is explained step-by-step, from basic color fills to using signed distance functions (SDFs) like Bézier curves, stars, and rounded rectangles to meticulously craft Rick's features and hair. Noise functions and time domain warping bring dynamic effects to Rick's hair and add random eye movements. The author shares various animation techniques, including looping values, switching drawn content, and noisy movement, providing complete code and explanations to empower readers to create their own GLSL animations.

Read more
Design code art