initial start on Hangman challenge

This commit is contained in:
CypherPoet 2019-01-23 05:15:29 -05:00
parent 30169c725a
commit f5be29936b
13 changed files with 1010 additions and 1 deletions

View File

@ -56,7 +56,7 @@ class HomeViewController: UITableViewController {
print("Number of close approaches: \(closeApproachAsteroids.count)")
tableView.performSelector(onMainThread: #selector(UITableView.reloadData), with: nil, waitUntilDone: false)
return
return
}
}
performSelector(onMainThread: #selector(showError), with: nil, waitUntilDone: false)

View File

@ -0,0 +1,345 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objects = {
/* Begin PBXBuildFile section */
F35A33A121F8483C0025CFE0 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F35A33A021F8483C0025CFE0 /* AppDelegate.swift */; };
F35A33A321F8483C0025CFE0 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F35A33A221F8483C0025CFE0 /* ViewController.swift */; };
F35A33A621F8483C0025CFE0 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F35A33A421F8483C0025CFE0 /* Main.storyboard */; };
F35A33A821F8483D0025CFE0 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F35A33A721F8483D0025CFE0 /* Assets.xcassets */; };
F35A33AB21F8483D0025CFE0 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F35A33A921F8483D0025CFE0 /* LaunchScreen.storyboard */; };
F35A33B421F86AD90025CFE0 /* level-1-words.txt in Resources */ = {isa = PBXBuildFile; fileRef = F35A33B321F86AD90025CFE0 /* level-1-words.txt */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
F35A339D21F8483C0025CFE0 /* Hangman.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Hangman.app; sourceTree = BUILT_PRODUCTS_DIR; };
F35A33A021F8483C0025CFE0 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
F35A33A221F8483C0025CFE0 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
F35A33A521F8483C0025CFE0 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
F35A33A721F8483D0025CFE0 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
F35A33AA21F8483D0025CFE0 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
F35A33AC21F8483D0025CFE0 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
F35A33B221F848CD0025CFE0 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
F35A33B321F86AD90025CFE0 /* level-1-words.txt */ = {isa = PBXFileReference; lastKnownFileType = text; path = "level-1-words.txt"; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
F35A339A21F8483C0025CFE0 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
F35A339421F8483C0025CFE0 = {
isa = PBXGroup;
children = (
F35A33B221F848CD0025CFE0 /* README.md */,
F35A339F21F8483C0025CFE0 /* Hangman */,
F35A339E21F8483C0025CFE0 /* Products */,
);
sourceTree = "<group>";
};
F35A339E21F8483C0025CFE0 /* Products */ = {
isa = PBXGroup;
children = (
F35A339D21F8483C0025CFE0 /* Hangman.app */,
);
name = Products;
sourceTree = "<group>";
};
F35A339F21F8483C0025CFE0 /* Hangman */ = {
isa = PBXGroup;
children = (
F35A33A021F8483C0025CFE0 /* AppDelegate.swift */,
F35A33A221F8483C0025CFE0 /* ViewController.swift */,
F35A33A421F8483C0025CFE0 /* Main.storyboard */,
F35A33A721F8483D0025CFE0 /* Assets.xcassets */,
F35A33A921F8483D0025CFE0 /* LaunchScreen.storyboard */,
F35A33AC21F8483D0025CFE0 /* Info.plist */,
F35A33B321F86AD90025CFE0 /* level-1-words.txt */,
);
path = Hangman;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
F35A339C21F8483C0025CFE0 /* Hangman */ = {
isa = PBXNativeTarget;
buildConfigurationList = F35A33AF21F8483D0025CFE0 /* Build configuration list for PBXNativeTarget "Hangman" */;
buildPhases = (
F35A339921F8483C0025CFE0 /* Sources */,
F35A339A21F8483C0025CFE0 /* Frameworks */,
F35A339B21F8483C0025CFE0 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = Hangman;
productName = Hangman;
productReference = F35A339D21F8483C0025CFE0 /* Hangman.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
F35A339521F8483C0025CFE0 /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1010;
LastUpgradeCheck = 1010;
ORGANIZATIONNAME = "Brian Sipple";
TargetAttributes = {
F35A339C21F8483C0025CFE0 = {
CreatedOnToolsVersion = 10.1;
};
};
};
buildConfigurationList = F35A339821F8483C0025CFE0 /* Build configuration list for PBXProject "Hangman" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = F35A339421F8483C0025CFE0;
productRefGroup = F35A339E21F8483C0025CFE0 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
F35A339C21F8483C0025CFE0 /* Hangman */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
F35A339B21F8483C0025CFE0 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
F35A33AB21F8483D0025CFE0 /* LaunchScreen.storyboard in Resources */,
F35A33B421F86AD90025CFE0 /* level-1-words.txt in Resources */,
F35A33A821F8483D0025CFE0 /* Assets.xcassets in Resources */,
F35A33A621F8483C0025CFE0 /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
F35A339921F8483C0025CFE0 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
F35A33A321F8483C0025CFE0 /* ViewController.swift in Sources */,
F35A33A121F8483C0025CFE0 /* AppDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXVariantGroup section */
F35A33A421F8483C0025CFE0 /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
F35A33A521F8483C0025CFE0 /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
F35A33A921F8483D0025CFE0 /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
F35A33AA21F8483D0025CFE0 /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */
/* Begin XCBuildConfiguration section */
F35A33AD21F8483D0025CFE0 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
F35A33AE21F8483D0025CFE0 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
F35A33B021F8483D0025CFE0 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = Hangman/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = io.sipple.Hangman;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
F35A33B121F8483D0025CFE0 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
INFOPLIST_FILE = Hangman/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = io.sipple.Hangman;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
F35A339821F8483C0025CFE0 /* Build configuration list for PBXProject "Hangman" */ = {
isa = XCConfigurationList;
buildConfigurations = (
F35A33AD21F8483D0025CFE0 /* Debug */,
F35A33AE21F8483D0025CFE0 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
F35A33AF21F8483D0025CFE0 /* Build configuration list for PBXNativeTarget "Hangman" */ = {
isa = XCConfigurationList;
buildConfigurations = (
F35A33B021F8483D0025CFE0 /* Debug */,
F35A33B121F8483D0025CFE0 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = F35A339521F8483C0025CFE0 /* Project object */;
}

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "self:Hangman.xcodeproj">
</FileRef>
</Workspace>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>

View File

@ -0,0 +1,46 @@
//
// AppDelegate.swift
// Hangman
//
// Created by Brian Sipple on 1/23/19.
// Copyright © 2019 Brian Sipple. All rights reserved.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}
func applicationWillResignActive(_ application: UIApplication) {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
}
func applicationDidEnterBackground(_ application: UIApplication) {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
func applicationWillEnterForeground(_ application: UIApplication) {
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
}
func applicationDidBecomeActive(_ application: UIApplication) {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
func applicationWillTerminate(_ application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
}

View File

@ -0,0 +1,98 @@
{
"images" : [
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "3x"
},
{
"idiom" : "ipad",
"size" : "20x20",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "29x29",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "40x40",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "76x76",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "76x76",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "83.5x83.5",
"scale" : "2x"
},
{
"idiom" : "ios-marketing",
"size" : "1024x1024",
"scale" : "1x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

View File

@ -0,0 +1,6 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
}
}

View File

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="EHf-IW-A2E">
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
</scene>
</scenes>
</document>

View File

@ -0,0 +1,327 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14460.31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
<device id="ipad10_5" orientation="landscape">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14460.20"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="tne-QT-ifu">
<objects>
<viewController id="BYZ-38-t0r" customClass="ViewController" customModule="Hangman" customModuleProvider="target" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
<rect key="frame" x="0.0" y="0.0" width="1112" height="834"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<button opaque="NO" tag="1001" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="B3i-0K-5md">
<rect key="frame" x="308" y="400" width="64" height="64"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="56"/>
<state key="normal" title="A">
<color key="titleColor" red="0.9108502538071066" green="0.5319525381999971" blue="0.060444868536887207" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
</state>
</button>
<button opaque="NO" tag="1001" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="JWI-Q5-d9X">
<rect key="frame" x="380" y="393" width="64" height="79"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="56"/>
<state key="normal" title="B">
<color key="titleColor" red="0.91085025379999995" green="0.53195253819999999" blue="0.060444868540000002" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
</state>
</button>
<button opaque="NO" tag="1001" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="82q-Aj-n9t">
<rect key="frame" x="452" y="393" width="64" height="79"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="56"/>
<state key="normal" title="C">
<color key="titleColor" red="0.91085025379999995" green="0.53195253819999999" blue="0.060444868540000002" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
</state>
</button>
<button opaque="NO" tag="1001" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="IAg-Ui-78K">
<rect key="frame" x="524" y="393" width="64" height="79"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="56"/>
<state key="normal" title="D">
<color key="titleColor" red="0.91085025379999995" green="0.53195253819999999" blue="0.060444868540000002" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
</state>
</button>
<button opaque="NO" tag="1001" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="IZK-lg-pMl">
<rect key="frame" x="596" y="393" width="64" height="79"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="56"/>
<state key="normal" title="E">
<color key="titleColor" red="0.91085025379999995" green="0.53195253819999999" blue="0.060444868540000002" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
</state>
</button>
<button opaque="NO" tag="1001" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="nQF-XG-eiE">
<rect key="frame" x="668" y="393" width="64" height="79"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="56"/>
<state key="normal" title="F">
<color key="titleColor" red="0.91085025379999995" green="0.53195253819999999" blue="0.060444868540000002" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
</state>
</button>
<button opaque="NO" tag="1001" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="cpx-ec-1QG">
<rect key="frame" x="740" y="393" width="64" height="79"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="56"/>
<state key="normal" title="G">
<color key="titleColor" red="0.91085025379999995" green="0.53195253819999999" blue="0.060444868540000002" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
</state>
</button>
<button opaque="NO" tag="1001" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="nIS-Q3-4lu">
<rect key="frame" x="308" y="465" width="64" height="79"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="56"/>
<state key="normal" title="H">
<color key="titleColor" red="0.91085025379999995" green="0.53195253819999999" blue="0.060444868540000002" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
</state>
</button>
<button opaque="NO" tag="1001" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="wfV-oJ-nAK">
<rect key="frame" x="380" y="465" width="64" height="79"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="56"/>
<state key="normal" title="I">
<color key="titleColor" red="0.91085025379999995" green="0.53195253819999999" blue="0.060444868540000002" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
</state>
</button>
<button opaque="NO" tag="1001" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="CjQ-eQ-Fwp">
<rect key="frame" x="452" y="465" width="64" height="79"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="56"/>
<state key="normal" title="J">
<color key="titleColor" red="0.91085025379999995" green="0.53195253819999999" blue="0.060444868540000002" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
</state>
</button>
<button opaque="NO" tag="1001" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="vtc-cw-oLs">
<rect key="frame" x="524" y="465" width="64" height="79"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="56"/>
<state key="normal" title="K">
<color key="titleColor" red="0.91085025379999995" green="0.53195253819999999" blue="0.060444868540000002" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
</state>
</button>
<button opaque="NO" tag="1001" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="GRh-4o-k5Z">
<rect key="frame" x="596" y="465" width="64" height="79"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="56"/>
<state key="normal" title="L">
<color key="titleColor" red="0.91085025379999995" green="0.53195253819999999" blue="0.060444868540000002" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
</state>
</button>
<button opaque="NO" tag="1001" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="f5U-5z-er0">
<rect key="frame" x="668" y="465" width="64" height="79"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="56"/>
<state key="normal" title="M">
<color key="titleColor" red="0.91085025379999995" green="0.53195253819999999" blue="0.060444868540000002" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
</state>
</button>
<button opaque="NO" tag="1001" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="eeQ-B1-Mcf">
<rect key="frame" x="740" y="465" width="64" height="79"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="56"/>
<state key="normal" title="N">
<color key="titleColor" red="0.91085025379999995" green="0.53195253819999999" blue="0.060444868540000002" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
</state>
</button>
<button opaque="NO" tag="1001" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="0WI-a7-SlG">
<rect key="frame" x="308" y="537" width="64" height="79"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="56"/>
<state key="normal" title="O">
<color key="titleColor" red="0.91085025379999995" green="0.53195253819999999" blue="0.060444868540000002" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
</state>
</button>
<button opaque="NO" tag="1001" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="vd7-Td-A2h">
<rect key="frame" x="380" y="537" width="64" height="79"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="56"/>
<state key="normal" title="P">
<color key="titleColor" red="0.91085025379999995" green="0.53195253819999999" blue="0.060444868540000002" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
</state>
</button>
<button opaque="NO" tag="1001" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Wxm-Sb-wDS">
<rect key="frame" x="452" y="537" width="64" height="79"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="56"/>
<state key="normal" title="Q">
<color key="titleColor" red="0.91085025379999995" green="0.53195253819999999" blue="0.060444868540000002" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
</state>
</button>
<button opaque="NO" tag="1001" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="vyt-s9-cb0">
<rect key="frame" x="524" y="537" width="64" height="79"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="56"/>
<state key="normal" title="R">
<color key="titleColor" red="0.91085025379999995" green="0.53195253819999999" blue="0.060444868540000002" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
</state>
</button>
<button opaque="NO" tag="1001" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="0y3-om-9Si">
<rect key="frame" x="596" y="537" width="64" height="79"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="56"/>
<state key="normal" title="S">
<color key="titleColor" red="0.91085025379999995" green="0.53195253819999999" blue="0.060444868540000002" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
</state>
</button>
<button opaque="NO" tag="1001" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="veQ-VT-Aq4">
<rect key="frame" x="668" y="537" width="64" height="79"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="56"/>
<state key="normal" title="T">
<color key="titleColor" red="0.91085025379999995" green="0.53195253819999999" blue="0.060444868540000002" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
</state>
</button>
<button opaque="NO" tag="1001" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="9HS-GW-aGo">
<rect key="frame" x="740" y="537" width="64" height="79"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="56"/>
<state key="normal" title="U">
<color key="titleColor" red="0.91085025379999995" green="0.53195253819999999" blue="0.060444868540000002" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
</state>
</button>
<button opaque="NO" tag="1001" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="dzC-rT-ijr">
<rect key="frame" x="380" y="609" width="64" height="79"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="56"/>
<state key="normal" title="V">
<color key="titleColor" red="0.91085025379999995" green="0.53195253819999999" blue="0.060444868540000002" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
</state>
</button>
<button opaque="NO" tag="1001" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="220-Rp-PWT">
<rect key="frame" x="452" y="609" width="64" height="79"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="56"/>
<state key="normal" title="W">
<color key="titleColor" red="0.91085025379999995" green="0.53195253819999999" blue="0.060444868540000002" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
</state>
</button>
<button opaque="NO" tag="1001" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Iog-A7-qXV">
<rect key="frame" x="524" y="609" width="64" height="79"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="56"/>
<state key="normal" title="X">
<color key="titleColor" red="0.91085025379999995" green="0.53195253819999999" blue="0.060444868540000002" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
</state>
</button>
<button opaque="NO" tag="1001" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="YxQ-fh-CTK">
<rect key="frame" x="596" y="609" width="64" height="79"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="56"/>
<state key="normal" title="Y">
<color key="titleColor" red="0.91085025379999995" green="0.53195253819999999" blue="0.060444868540000002" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
</state>
</button>
<button opaque="NO" tag="1001" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="DAw-EH-mUC">
<rect key="frame" x="668" y="609" width="64" height="79"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="56"/>
<state key="normal" title="Z">
<color key="titleColor" red="0.91085025379999995" green="0.53195253819999999" blue="0.060444868540000002" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
</state>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Level: " textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="xN9-wi-aDx">
<rect key="frame" x="882" y="84" width="194" height="72"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="32"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="Rope Slack:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="X5j-Un-0Ac">
<rect key="frame" x="75" y="84" width="194" height="72"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="32"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" tag="2001" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="cnM-ol-Pl7">
<rect key="frame" x="277" y="94" width="52" height="52"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" red="0.0" green="0.67328283629441632" blue="0.0075114470671242741" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="32"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" tag="2002" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="tHt-1i-IAX">
<rect key="frame" x="337" y="94" width="52" height="52"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" red="0.0" green="0.67328283629999996" blue="0.0075114470670000003" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="32"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" tag="2003" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="7oC-kv-Imr">
<rect key="frame" x="397" y="94" width="52" height="52"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" red="0.0" green="0.67328283629999996" blue="0.0075114470670000003" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="32"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" tag="2004" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5A7-CW-Hai">
<rect key="frame" x="457" y="94" width="52" height="52"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" red="0.0" green="0.67328283629999996" blue="0.0075114470670000003" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="32"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" tag="2005" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Vq0-jl-1du">
<rect key="frame" x="517" y="94" width="52" height="52"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" red="0.0" green="0.67328283629999996" blue="0.0075114470670000003" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="32"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" tag="2006" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="cB6-zS-3sl">
<rect key="frame" x="577" y="94" width="52" height="52"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" red="0.0" green="0.67328283629999996" blue="0.0075114470670000003" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="32"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" tag="2007" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="wnB-xk-gm8">
<rect key="frame" x="637" y="94" width="52" height="52"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" red="0.0" green="0.67328283629999996" blue="0.0075114470670000003" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="32"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" text="****** ******" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="9jM-L0-41D">
<rect key="frame" x="264" y="270" width="585" height="86"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="72"/>
<color key="textColor" red="0.45880425499999999" green="0.42457667529999998" blue="0.85103040929999996" alpha="1" colorSpace="custom" customColorSpace="displayP3"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
</view>
<connections>
<outlet property="answerText" destination="9jM-L0-41D" id="RME-yT-abz"/>
<outlet property="currentLevelLabel" destination="xN9-wi-aDx" id="7d8-KG-CJR"/>
<outlet property="ropeSlackBox1" destination="cnM-ol-Pl7" id="vhN-D6-hhC"/>
<outlet property="ropeSlackBox2" destination="tHt-1i-IAX" id="Hsx-Ir-iDf"/>
<outlet property="ropeSlackBox3" destination="7oC-kv-Imr" id="JT8-sL-gkr"/>
<outlet property="ropeSlackBox4" destination="5A7-CW-Hai" id="VYL-df-GIg"/>
<outlet property="ropeSlackBox5" destination="Vq0-jl-1du" id="h34-Tu-dDd"/>
<outlet property="ropeSlackBox6" destination="cB6-zS-3sl" id="YpT-jm-AUc"/>
<outlet property="ropeSlackBox7" destination="wnB-xk-gm8" id="E3c-sl-JDM"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="131.65467625899282" y="133.81294964028777"/>
</scene>
</scenes>
</document>

View File

@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Main</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationPortraitUpsideDown</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>

View File

@ -0,0 +1,83 @@
//
// ViewController.swift
// Hangman
//
// Created by Brian Sipple on 1/23/19.
// Copyright © 2019 Brian Sipple. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var answerText: UILabel!
@IBOutlet weak var currentLevelLabel: UILabel!
@IBOutlet weak var ropeSlackBox1: UILabel!
@IBOutlet weak var ropeSlackBox2: UILabel!
@IBOutlet weak var ropeSlackBox3: UILabel!
@IBOutlet weak var ropeSlackBox4: UILabel!
@IBOutlet weak var ropeSlackBox5: UILabel!
@IBOutlet weak var ropeSlackBox6: UILabel!
@IBOutlet weak var ropeSlackBox7: UILabel!
let letterButtonTag = 1001
var answer = ""
var remainingGuesses = 7
var lettersGuessed = [Character]()
var currentAnswerText = "" {
didSet {
answerText.text = self.currentAnswerText
}
}
var currentLevel = 0 {
didSet {
currentLevelLabel.text = "Level: \(self.currentLevel)"
}
}
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
currentLevel = 1
loadAnswer()
setupUIForWord()
}
func loadAnswer() {
answer = "apple a"
var startingAnswerText = ""
for character in answer {
if character == " " {
startingAnswerText += " "
} else {
startingAnswerText += "*"
}
}
currentAnswerText = startingAnswerText
}
func setupUIForWord() {
for subview in view.subviews where subview.tag == letterButtonTag {
let letterButton = subview as! UIButton
letterButton.addTarget(self, action: #selector(handleLetterChoice), for: .touchUpInside)
}
}
@objc func handleLetterChoice(btn: UIButton) {
print("Handling \(btn.titleLabel!.text!)")
}
}

View File

@ -0,0 +1,12 @@
corner
iphone
common
display
music
apple
internet
computer
bagel
coffee
cheese
magic

View File

@ -0,0 +1,8 @@
# Hangman
## Features
- Each level presents a random word to guess
- Potential words get harder as the levels progress