@slugbugblue/trax-puzzles
v0.6.0
Published
Trax puzzles
Readme
Trax Puzzles database
The puzzles database contains puzzles that I've been using to test the Trax analysis engine, publicly available puzzles from the traxgame.com puzzles page, and puzzles curated by Martin M. S. Pedersen.
Usage as an npm module
Installation:
npm install @slugbugblue/trax-puzzlesUsage:
import { Trax } from '@slugbugblue/trax'
import { levels, puzzles, sources } from '@slugbugblue/trax-puzzles'
console.log('Levels:', levels.join(', '))
console.log('Puzzles:', puzzles.map(p => p.id).join(', ')
console.log('Sources:', Object.values(sources).map(s => s.name).join(', ')
const puzzle = puzzles[0]
console.log(`${puzzle.id}: ${puzzle.notation}`)
const trax = new Trax(puzzle.game, puzzle.notation)
trax.play('A0/')
console.log(trax.notation)Software License
Software Copyright 2022-2026 Chad Transtrum
The software in this project is licensed under the Apache License, Version 2.0 (the "License"); you may not use the files in this project except in compliance with the License. You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Puzzle License
The majority of the puzzles are also licensed under the Apache License, Version 2.0. However, some individual puzzles or collections of puzzles may be licensed under additional terms. If so, the information for that license is noted in the puzzle collection. Copyright infromation for each puzzle is also included in the puzzle collection.
