//
//  main.swift
//  threadword
//
//  Created by Joshua Oldenburg on 6/18/14.
//  Copyright (c) 2014 Joshua Oldenburg. All rights reserved.
//

import Foundation

/*let parser = GBCommandLineParser()
parser.registerOption("prefix", shortcut: 112 /* p */, requirement: GBValueRequired)
parser.registerOption("file", shortcut: 102 /* f */, requirement: GBValueRequired)

parser.parseOptionsUsingDefaultArgumentsWithBlock({ // (flags: GBParseFlags, argument: String, value: AnyObject, stop) 
	return
}()) */

let puzzle = JOThreadWordsPuzzle(level: [
/*	"malgmrt",
	"corveos",
	"sunnisn",
	"trtdrng",
	"fausged",*/
/*	"toeing",
	"ritlws",
	"vabted",
	"sooiae",
	"hcrubs",*/
	"pepries",
	"dorohod",
	"tancsnt",
	"supaees",
	"ctrryrd",
])

let solution = puzzle.solve()
println(solution.description)
println(solution.count)

//
//  main.swift
//  threadword
//
//  Created by Joshua Oldenburg on 6/18/14.
//  Copyright (c) 2014 Joshua Oldenburg. All rights reserved.
//

import Foundation

let puzzle = JOThreadWordsPuzzle(level: [
/*	"malgmrt",
	"corveos",
	"sunnisn",
	"trtdrng",
	"fausged",*/
	"toeing",
	"ritlws",
	"vabted",
	"sooiae",
	"hcrubs",
])

println(puzzle.solve().description)

--- 
+++ 
@@ -8,17 +8,32 @@
 
 import Foundation
 
+/*let parser = GBCommandLineParser()
+parser.registerOption("prefix", shortcut: 112 /* p */, requirement: GBValueRequired)
+parser.registerOption("file", shortcut: 102 /* f */, requirement: GBValueRequired)
+
+parser.parseOptionsUsingDefaultArgumentsWithBlock({ // (flags: GBParseFlags, argument: String, value: AnyObject, stop) 
+	return
+}()) */
+
 let puzzle = JOThreadWordsPuzzle(level: [
 /*	"malgmrt",
 	"corveos",
 	"sunnisn",
 	"trtdrng",
 	"fausged",*/
-	"toeing",
+/*	"toeing",
 	"ritlws",
 	"vabted",
 	"sooiae",
-	"hcrubs",
+	"hcrubs",*/
+	"pepries",
+	"dorohod",
+	"tancsnt",
+	"supaees",
+	"ctrryrd",
 ])
 
-println(puzzle.solve().description)
+let solution = puzzle.solve()
+println(solution.description)
+println(solution.count)
Add another puzzle. CLI is next.
