UNPKG

jsatomix

Version:

Tools for analysing and playing katomic/atomix type puzzles.

29 lines (23 loc) 871 B
'use strict' /** ## solutions `solutions` provides access to solutions that have been collected from the kp-atomix project web site and are presented as objects. ```js const jsa = require('jsatomix') const solutions = jsa.solutions.all console.log(solutions[99]) //{ uid: 'KCuHPdpg', // date: '2010-04-09 22:24:04', // levelSet: 'katomic', // level: '1', // user: 'Omar Anber', // history: 'fhfgfgggggbgbgbebefecccbcbfbfbfdhbhfhfgfgfgjgjfjfjfgfebebebjfdfefebebjbfbfdfbebjdfbfbfbifgbgbgbh' } ``` At the moment only `solutions` all is provided, but other properties and methods will be added. Many of the solutions are long winded and with lots of backtracking. It would bean interesting exercise to examine all the solutions and eliminate the backtracking to produce a shorter solution. */ const all = require( 'jsatomix-solutions') module.exports = { all }