PuzzleMaker

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

PuzzleMaker

Installation

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

pod 'PuzzleMaker'
Ruby

or using Carthage and add a line to Cartfile:

github "PGSSoft/PuzzleMaker"

Requirements

iOS 8.0

Usage

import PuzzleMaker
Swift
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
	}
}
Swift

GitHub

Swift framework responsible for generating puzzles from the imageRead More

Latest commit to the master branch on 4-5-2019
Download as zip