Skip to content

cqb13/puz-parser

Repository files navigation

PUZ Parser

A PUZ file decoder and encoder based on the format specified here.

Features

  • Encodes and Decodes PUZ Files
  • Supports Extra Sections
  • Unscrambles and Re-scrambles PUZ files
  • Preserves all data

Installation

go get github.com/cqb13/puz-parser

Basic Usage

import (
    puz "github.com/cqb13/puz-parser"
)

func main() {
    // get the bytes from a file

    puzzle, err := puz.DecodePuz(fileBytes)
    if err != nil {
		panic(err)
    }

    encodedBytes, err := puz.EncodePuz(puzzle)
    if err != nil {
		panic(err)
    }
}

Acknowledgments

This project would not be possible without the help of the following:

About

A Go Library for decoding and encoding PUZ files. Preserves all data, supports extra sections and scrambled puzzles.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages