This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <stdbool.h> | |
| /** | |
| * Patrik's Sudoku Solver | |
| * | |
| * Rather than storing cell values as normal integers, we're using bitmask | |
| * representations of each value: | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Simple Sudoku Solver | |
| * | |
| * @description Sudoku solver implemented in TypeScript. Intended to run in Deno | |
| * @example deno run sudoku.ts | |
| * @author Patrik <pdeloughry@cyntacs.com> | |
| * @license CC-BY Creative Commons Attribution | |
| */ | |
| // Puzzle Cell Value |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * EnumHelper | |
| * | |
| * This is a simple, lightweight solution for enforcing enumerated domain values. Other solutions | |
| * require instantiating a "domain class" which yields a string value via class::__toString(). My | |
| * approach keeps the domain enforcement logic contained within a trait, which can be imported into | |
| * your own classes, reducing the complexity and increasing the speed of your code. | |
| * | |
| * PHP version 7.1 |