Skip to content

Swift framework responsible for generating puzzles from the image

License

Notifications You must be signed in to change notification settings

mmysliwiec/PuzzleMaker

 
 

Repository files navigation

pgssoft-logo.png

PuzzleMaker

PuzzleMaker is a library written in Swift, which dynamically generates set of puzzles from the image.

Swift 3.0 Travis CocoaPods Compatible Carthage Compatible Platform License

PuzzleMaker.gif

Installation

The most convenient way to install it is by using Cocoapods with Podfile:

pod 'PuzzleMaker'

or using Carthage and add a line to Cartfile:

github "PGSSoft/PuzzleMaker"

Requirements

iOS 8.4

Usage

import PuzzleMaker
let puzzleMaker = PuzzleMaker(image: UIImage(named: "image")!, numRows: 3, numColumns: 5)
puzzleMaker.generatePuzzles { (throwableClosure) in
	do {
		let puzzleElements = try throwableClosure()
		for row in 0 ..< 3 {
			for column in 0 ..< 5 {
				let puzzleElement = puzzleElements[row][column]!
				// Do something with the single puzzle
			}
		}
	} catch let error {
		// Handle error
	}
}

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/PGSSoft/PuzzleMaker.

License

The project is available as open source under the terms of the MIT License.

About

The project maintained by software development agency PGS Software. See our other open-source projects or contact us to develop your product.

Follow us

Twitter URL
Twitter Follow

About

Swift framework responsible for generating puzzles from the image

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 97.8%
  • Ruby 1.1%
  • Objective-C 1.1%