diff --git a/Tennis/objc/.idea/.name b/Tennis/objc/.idea/.name new file mode 100644 index 00000000..1ef24954 --- /dev/null +++ b/Tennis/objc/.idea/.name @@ -0,0 +1 @@ +Tennis \ No newline at end of file diff --git a/Tennis/objc/.idea/Tennis.iml b/Tennis/objc/.idea/Tennis.iml new file mode 100644 index 00000000..f9b36de1 --- /dev/null +++ b/Tennis/objc/.idea/Tennis.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/Tennis/objc/.idea/encodings.xml b/Tennis/objc/.idea/encodings.xml new file mode 100644 index 00000000..e206d70d --- /dev/null +++ b/Tennis/objc/.idea/encodings.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/Tennis/objc/.idea/misc.xml b/Tennis/objc/.idea/misc.xml new file mode 100644 index 00000000..f48e1cf7 --- /dev/null +++ b/Tennis/objc/.idea/misc.xml @@ -0,0 +1,23 @@ + + + + + + + diff --git a/Tennis/objc/.idea/modules.xml b/Tennis/objc/.idea/modules.xml new file mode 100644 index 00000000..2ae26e57 --- /dev/null +++ b/Tennis/objc/.idea/modules.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/Tennis/objc/.idea/scopes/scope_settings.xml b/Tennis/objc/.idea/scopes/scope_settings.xml new file mode 100644 index 00000000..922003b8 --- /dev/null +++ b/Tennis/objc/.idea/scopes/scope_settings.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/Tennis/objc/.idea/vcs.xml b/Tennis/objc/.idea/vcs.xml new file mode 100644 index 00000000..def6a6a1 --- /dev/null +++ b/Tennis/objc/.idea/vcs.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/Tennis/objc/.idea/workspace.xml b/Tennis/objc/.idea/workspace.xml new file mode 100644 index 00000000..48fd3656 --- /dev/null +++ b/Tennis/objc/.idea/workspace.xml @@ -0,0 +1,428 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1370012867256 + 1370012867256 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Tennis/objc/.idea/xcode.xml b/Tennis/objc/.idea/xcode.xml new file mode 100644 index 00000000..b26bf6c9 --- /dev/null +++ b/Tennis/objc/.idea/xcode.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/Tennis/objc/Tennis.xcodeproj/project.pbxproj b/Tennis/objc/Tennis.xcodeproj/project.pbxproj new file mode 100644 index 00000000..75b49e29 --- /dev/null +++ b/Tennis/objc/Tennis.xcodeproj/project.pbxproj @@ -0,0 +1,515 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + CACF6054BE77230ECBA65619 /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = CACF6C2CA2AA72E014F657D0 /* Default@2x.png */; }; + CACF613C20408597F536B6B1 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = CACF6759046CDA8835BDE4B2 /* ViewController.m */; }; + CACF61C5886ADB1487CE8336 /* MainStoryboard_iPad.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = CACF644334B42B9407948B3F /* MainStoryboard_iPad.storyboard */; }; + CACF62EF6247A6D2018763C1 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = CACF6ACB8808C4FCB94FF29C /* Default.png */; }; + CACF6358C3384B35EAF90119 /* TennisGame.m in Sources */ = {isa = PBXBuildFile; fileRef = CACF649AAFA398A61A600CB7 /* TennisGame.m */; }; + CACF63F14142F5803F786695 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CACF69F4ABB8AC23884C74C3 /* Foundation.framework */; }; + CACF6414A388566B43A9BCB5 /* TennisGame.m in Sources */ = {isa = PBXBuildFile; fileRef = CACF649AAFA398A61A600CB7 /* TennisGame.m */; }; + CACF65812FE6C904337ABA28 /* TennisGame3.m in Sources */ = {isa = PBXBuildFile; fileRef = CACF6BAD45E82D978466F92B /* TennisGame3.m */; }; + CACF66A873EB3C4C2A1B7D78 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CACF6C52F7301D6A288FECCA /* UIKit.framework */; }; + CACF674F504168629BDEF151 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = CACF6B0DF95E878216995989 /* InfoPlist.strings */; }; + CACF677C41A1432B7A28BA4B /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CACF61291A7012C7769FCE61 /* CoreGraphics.framework */; }; + CACF6788162E934967B8E957 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = CACF6949C1475F308096D3C1 /* InfoPlist.strings */; }; + CACF6851862FECD0A333A400 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CACF6C52F7301D6A288FECCA /* UIKit.framework */; }; + CACF6871FE27A26189B71C29 /* TennisGame1.m in Sources */ = {isa = PBXBuildFile; fileRef = CACF6BF242B4F5F91193BEC7 /* TennisGame1.m */; }; + CACF68DE17C3FF57501B8E7C /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = CACF6E1F321CCC9D9CC8F04E /* AppDelegate.m */; }; + CACF68FFD67D0173EDF11BF4 /* TennisTests.m in Sources */ = {isa = PBXBuildFile; fileRef = CACF6D897D4F49BCD1B41947 /* TennisTests.m */; }; + CACF69C81388A5BE7690528D /* MainStoryboard_iPhone.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = CACF6EE7BED3428159FF4EEC /* MainStoryboard_iPhone.storyboard */; }; + CACF69FD20BB16907B25C317 /* TennisGame2.m in Sources */ = {isa = PBXBuildFile; fileRef = CACF64EDAB086A5F18E393EE /* TennisGame2.m */; }; + CACF6C5876E4687F7A65AF54 /* SenTestingKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CACF6A13AA71A254E309FB03 /* SenTestingKit.framework */; }; + CACF6CEF4B8FF37159571CA9 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CACF69F4ABB8AC23884C74C3 /* Foundation.framework */; }; + CACF6D696940933251B2AE37 /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = CACF61BEC34F59AE310970BC /* Default-568h@2x.png */; }; + CACF6E1993921B2EC1995F0E /* TennisGame2.m in Sources */ = {isa = PBXBuildFile; fileRef = CACF64EDAB086A5F18E393EE /* TennisGame2.m */; }; + CACF6F3B5CEDAF9DFE1B8A64 /* TennisGame3.m in Sources */ = {isa = PBXBuildFile; fileRef = CACF6BAD45E82D978466F92B /* TennisGame3.m */; }; + CACF6F6E0354DF7DE228F341 /* TennisGame1.m in Sources */ = {isa = PBXBuildFile; fileRef = CACF6BF242B4F5F91193BEC7 /* TennisGame1.m */; }; + CACF6F7FFC55CDCFB3E02466 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = CACF65D0E3A6E15249A3EE3D /* main.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + CACF64D89970FF6F7CA17D31 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = CACF6DA3161729BC17499E03 /* Project object */; + proxyType = 1; + remoteGlobalIDString = CACF69AD9BF8D87BBC1D0651; + remoteInfo = Tennis; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + CACF6038910C1AD4943FC708 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = ""; }; + CACF61291A7012C7769FCE61 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; }; + CACF61BEC34F59AE310970BC /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = ""; }; + CACF63DE5D96157326EB9B8B /* en */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = en; path = en.lproj/MainStoryboard_iPad.storyboard; sourceTree = ""; }; + CACF6419833B61F7E3D89075 /* TennisGame3.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TennisGame3.h; sourceTree = ""; }; + CACF649AAFA398A61A600CB7 /* TennisGame.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TennisGame.m; sourceTree = ""; }; + CACF64E5E1F46B45835C2ADD /* TennisTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.info; path = "TennisTests-Info.plist"; sourceTree = ""; }; + CACF64EDAB086A5F18E393EE /* TennisGame2.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TennisGame2.m; sourceTree = ""; }; + CACF65D0E3A6E15249A3EE3D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + CACF665E8EA24EE215E5498C /* TennisTests.octest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TennisTests.octest; sourceTree = BUILT_PRODUCTS_DIR; }; + CACF666E98D511A74FA3D675 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + CACF66D0CE7C0E01036D6AB1 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + CACF6759046CDA8835BDE4B2 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; + CACF6771858FAF6F6F4650A6 /* TennisGame2.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TennisGame2.h; sourceTree = ""; }; + CACF6933BDBCFF02099B5751 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = en; path = en.lproj/MainStoryboard_iPhone.storyboard; sourceTree = ""; }; + CACF69F4ABB8AC23884C74C3 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; + CACF6A13AA71A254E309FB03 /* SenTestingKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SenTestingKit.framework; path = Library/Frameworks/SenTestingKit.framework; sourceTree = DEVELOPER_DIR; }; + CACF6A4205D54CCF3AEA2B65 /* TennisTests.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TennisTests.h; sourceTree = ""; }; + CACF6A964A59A72222255B2C /* TennisGame.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TennisGame.h; sourceTree = ""; }; + CACF6ACB8808C4FCB94FF29C /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = ""; }; + CACF6B79FE846441B027773F /* Tennis.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Tennis.app; sourceTree = BUILT_PRODUCTS_DIR; }; + CACF6B7F36643E0787BABC39 /* TennisGame1.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TennisGame1.h; sourceTree = ""; }; + CACF6BAD45E82D978466F92B /* TennisGame3.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TennisGame3.m; sourceTree = ""; }; + CACF6BF242B4F5F91193BEC7 /* TennisGame1.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TennisGame1.m; sourceTree = ""; }; + CACF6C2CA2AA72E014F657D0 /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = ""; }; + CACF6C52F7301D6A288FECCA /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; }; + CACF6C703FB825FF8A0C6279 /* Tennis-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tennis-Prefix.pch"; sourceTree = ""; }; + CACF6D690AB9C997BD1CD8AF /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; + CACF6D897D4F49BCD1B41947 /* TennisTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TennisTests.m; sourceTree = ""; }; + CACF6E1F321CCC9D9CC8F04E /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; + CACF6E515082A06CBCF4B49E /* Tennis-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.info; path = "Tennis-Info.plist"; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + CACF6A7D79290F13325B461F /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + CACF6C5876E4687F7A65AF54 /* SenTestingKit.framework in Frameworks */, + CACF66A873EB3C4C2A1B7D78 /* UIKit.framework in Frameworks */, + CACF63F14142F5803F786695 /* Foundation.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CACF6C21FB96D257A9D51B69 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + CACF6851862FECD0A333A400 /* UIKit.framework in Frameworks */, + CACF6CEF4B8FF37159571CA9 /* Foundation.framework in Frameworks */, + CACF677C41A1432B7A28BA4B /* CoreGraphics.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + CACF60033C37E3B5C11CC734 /* Frameworks */ = { + isa = PBXGroup; + children = ( + CACF6C52F7301D6A288FECCA /* UIKit.framework */, + CACF69F4ABB8AC23884C74C3 /* Foundation.framework */, + CACF61291A7012C7769FCE61 /* CoreGraphics.framework */, + CACF6A13AA71A254E309FB03 /* SenTestingKit.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + CACF652B01231CADE96100D1 = { + isa = PBXGroup; + children = ( + CACF6E7D48293F4D43E7A6DC /* Products */, + CACF60033C37E3B5C11CC734 /* Frameworks */, + CACF67CF0393B97F4DC41E0B /* Tennis */, + CACF65D28A08CBB9A2C540F5 /* TennisTests */, + ); + sourceTree = ""; + }; + CACF65B550EA0B25FDCB4734 /* Supporting Files */ = { + isa = PBXGroup; + children = ( + CACF6E515082A06CBCF4B49E /* Tennis-Info.plist */, + CACF6B0DF95E878216995989 /* InfoPlist.strings */, + CACF65D0E3A6E15249A3EE3D /* main.m */, + CACF6C703FB825FF8A0C6279 /* Tennis-Prefix.pch */, + CACF6ACB8808C4FCB94FF29C /* Default.png */, + CACF6C2CA2AA72E014F657D0 /* Default@2x.png */, + CACF61BEC34F59AE310970BC /* Default-568h@2x.png */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + CACF65D28A08CBB9A2C540F5 /* TennisTests */ = { + isa = PBXGroup; + children = ( + CACF67238D0948836603B9CC /* Supporting Files */, + CACF6A4205D54CCF3AEA2B65 /* TennisTests.h */, + CACF6D897D4F49BCD1B41947 /* TennisTests.m */, + ); + path = TennisTests; + sourceTree = ""; + }; + CACF67238D0948836603B9CC /* Supporting Files */ = { + isa = PBXGroup; + children = ( + CACF64E5E1F46B45835C2ADD /* TennisTests-Info.plist */, + CACF6949C1475F308096D3C1 /* InfoPlist.strings */, + ); + name = "Supporting Files"; + sourceTree = ""; + }; + CACF67CF0393B97F4DC41E0B /* Tennis */ = { + isa = PBXGroup; + children = ( + CACF65B550EA0B25FDCB4734 /* Supporting Files */, + CACF6D690AB9C997BD1CD8AF /* AppDelegate.h */, + CACF6E1F321CCC9D9CC8F04E /* AppDelegate.m */, + CACF6EE7BED3428159FF4EEC /* MainStoryboard_iPhone.storyboard */, + CACF644334B42B9407948B3F /* MainStoryboard_iPad.storyboard */, + CACF6038910C1AD4943FC708 /* ViewController.h */, + CACF6759046CDA8835BDE4B2 /* ViewController.m */, + CACF6BF242B4F5F91193BEC7 /* TennisGame1.m */, + CACF6B7F36643E0787BABC39 /* TennisGame1.h */, + CACF64EDAB086A5F18E393EE /* TennisGame2.m */, + CACF6771858FAF6F6F4650A6 /* TennisGame2.h */, + CACF6BAD45E82D978466F92B /* TennisGame3.m */, + CACF6419833B61F7E3D89075 /* TennisGame3.h */, + CACF649AAFA398A61A600CB7 /* TennisGame.m */, + CACF6A964A59A72222255B2C /* TennisGame.h */, + ); + path = Tennis; + sourceTree = ""; + }; + CACF6E7D48293F4D43E7A6DC /* Products */ = { + isa = PBXGroup; + children = ( + CACF6B79FE846441B027773F /* Tennis.app */, + CACF665E8EA24EE215E5498C /* TennisTests.octest */, + ); + name = Products; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + CACF69AD9BF8D87BBC1D0651 /* Tennis */ = { + isa = PBXNativeTarget; + buildConfigurationList = CACF65DD48552DE493A07E65 /* Build configuration list for PBXNativeTarget "Tennis" */; + buildPhases = ( + CACF61DDF5747486E9A2F79B /* Sources */, + CACF6C21FB96D257A9D51B69 /* Frameworks */, + CACF6261741B7D6FD198B4AD /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = Tennis; + productName = Tennis; + productReference = CACF6B79FE846441B027773F /* Tennis.app */; + productType = "com.apple.product-type.application"; + }; + CACF6DE0B90C4D92A2B3D5E6 /* TennisTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = CACF68FD0CC2343E15B3AA80 /* Build configuration list for PBXNativeTarget "TennisTests" */; + buildPhases = ( + CACF6FE60766CDED5F49C391 /* Sources */, + CACF6A7D79290F13325B461F /* Frameworks */, + CACF6814909F4B826FA2E0CA /* Resources */, + CACF6F4E118C6D42BF7A89A2 /* ShellScript */, + ); + buildRules = ( + ); + dependencies = ( + CACF606BA95A02CF011B86A5 /* PBXTargetDependency */, + ); + name = TennisTests; + productName = TennisTests; + productReference = CACF665E8EA24EE215E5498C /* TennisTests.octest */; + productType = "com.apple.product-type.bundle"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + CACF6DA3161729BC17499E03 /* Project object */ = { + isa = PBXProject; + attributes = { + ORGANIZATIONNAME = "Stefan van den Oord"; + }; + buildConfigurationList = CACF6959B8F6F7EC1647AAB0 /* Build configuration list for PBXProject "Tennis" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = CACF652B01231CADE96100D1; + productRefGroup = CACF6E7D48293F4D43E7A6DC /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + CACF69AD9BF8D87BBC1D0651 /* Tennis */, + CACF6DE0B90C4D92A2B3D5E6 /* TennisTests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + CACF6261741B7D6FD198B4AD /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CACF674F504168629BDEF151 /* InfoPlist.strings in Resources */, + CACF62EF6247A6D2018763C1 /* Default.png in Resources */, + CACF6054BE77230ECBA65619 /* Default@2x.png in Resources */, + CACF6D696940933251B2AE37 /* Default-568h@2x.png in Resources */, + CACF69C81388A5BE7690528D /* MainStoryboard_iPhone.storyboard in Resources */, + CACF61C5886ADB1487CE8336 /* MainStoryboard_iPad.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CACF6814909F4B826FA2E0CA /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CACF6788162E934967B8E957 /* InfoPlist.strings in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + CACF6F4E118C6D42BF7A89A2 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "# Run the unit tests in this test bundle.\n\"${SYSTEM_DEVELOPER_DIR}/Tools/RunUnitTests\"\n"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + CACF61DDF5747486E9A2F79B /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CACF6F7FFC55CDCFB3E02466 /* main.m in Sources */, + CACF68DE17C3FF57501B8E7C /* AppDelegate.m in Sources */, + CACF613C20408597F536B6B1 /* ViewController.m in Sources */, + CACF6F6E0354DF7DE228F341 /* TennisGame1.m in Sources */, + CACF69FD20BB16907B25C317 /* TennisGame2.m in Sources */, + CACF65812FE6C904337ABA28 /* TennisGame3.m in Sources */, + CACF6358C3384B35EAF90119 /* TennisGame.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CACF6FE60766CDED5F49C391 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CACF68FFD67D0173EDF11BF4 /* TennisTests.m in Sources */, + CACF6F3B5CEDAF9DFE1B8A64 /* TennisGame3.m in Sources */, + CACF6E1993921B2EC1995F0E /* TennisGame2.m in Sources */, + CACF6871FE27A26189B71C29 /* TennisGame1.m in Sources */, + CACF6414A388566B43A9BCB5 /* TennisGame.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + CACF606BA95A02CF011B86A5 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = CACF69AD9BF8D87BBC1D0651 /* Tennis */; + targetProxy = CACF64D89970FF6F7CA17D31 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + CACF644334B42B9407948B3F /* MainStoryboard_iPad.storyboard */ = { + isa = PBXVariantGroup; + children = ( + CACF63DE5D96157326EB9B8B /* en */, + ); + name = MainStoryboard_iPad.storyboard; + sourceTree = ""; + }; + CACF6949C1475F308096D3C1 /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + CACF666E98D511A74FA3D675 /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; + CACF6B0DF95E878216995989 /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + CACF66D0CE7C0E01036D6AB1 /* en */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; + CACF6EE7BED3428159FF4EEC /* MainStoryboard_iPhone.storyboard */ = { + isa = PBXVariantGroup; + children = ( + CACF6933BDBCFF02099B5751 /* en */, + ); + name = MainStoryboard_iPhone.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + CACF601C65BCC0FBE3D880E3 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = ""; + FRAMEWORK_SEARCH_PATHS = ( + "\"$(SDKROOT)/Developer/Library/Frameworks\"", + "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Tennis/Tennis-Prefix.pch"; + INFOPLIST_FILE = "TennisTests/TennisTests-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = ""; + WRAPPER_EXTENSION = octest; + }; + name = Release; + }; + CACF6452D3F349731DB85BE9 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 6.1; + OTHER_CFLAGS = "-DNS_BLOCK_ASSERTIONS=1"; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + CACF655D7424F77B76941FBC /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Tennis/Tennis-Prefix.pch"; + INFOPLIST_FILE = "Tennis/Tennis-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = app; + }; + name = Debug; + }; + CACF681D75AD23FC2F298299 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Tennis/Tennis-Prefix.pch"; + INFOPLIST_FILE = "Tennis/Tennis-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + WRAPPER_EXTENSION = app; + }; + name = Release; + }; + CACF6A641D1372E5C5478EB2 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = ""; + FRAMEWORK_SEARCH_PATHS = ( + "\"$(SDKROOT)/Developer/Library/Frameworks\"", + "\"$(DEVELOPER_LIBRARY_DIR)/Frameworks\"", + ); + GCC_PRECOMPILE_PREFIX_HEADER = YES; + GCC_PREFIX_HEADER = "Tennis/Tennis-Prefix.pch"; + INFOPLIST_FILE = "TennisTests/TennisTests-Info.plist"; + PRODUCT_NAME = "$(TARGET_NAME)"; + TEST_HOST = ""; + WRAPPER_EXTENSION = octest; + }; + name = Debug; + }; + CACF6FD238549A86B0925D65 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_DYNAMIC_NO_PIC = NO; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "DEBUG=1", + "$(inherited)", + ); + GCC_SYMBOLS_PRIVATE_EXTERN = NO; + GCC_WARN_ABOUT_RETURN_TYPE = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 6.1; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + CACF65DD48552DE493A07E65 /* Build configuration list for PBXNativeTarget "Tennis" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + CACF681D75AD23FC2F298299 /* Release */, + CACF655D7424F77B76941FBC /* Debug */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + CACF68FD0CC2343E15B3AA80 /* Build configuration list for PBXNativeTarget "TennisTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + CACF601C65BCC0FBE3D880E3 /* Release */, + CACF6A641D1372E5C5478EB2 /* Debug */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + CACF6959B8F6F7EC1647AAB0 /* Build configuration list for PBXProject "Tennis" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + CACF6452D3F349731DB85BE9 /* Release */, + CACF6FD238549A86B0925D65 /* Debug */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = CACF6DA3161729BC17499E03 /* Project object */; +} diff --git a/Tennis/objc/Tennis.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Tennis/objc/Tennis.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..62edb4d0 --- /dev/null +++ b/Tennis/objc/Tennis.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Tennis/objc/Tennis.xcodeproj/project.xcworkspace/xcuserdata/stefan.xcuserdatad/UserInterfaceState.xcuserstate b/Tennis/objc/Tennis.xcodeproj/project.xcworkspace/xcuserdata/stefan.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 00000000..b2a6d28a Binary files /dev/null and b/Tennis/objc/Tennis.xcodeproj/project.xcworkspace/xcuserdata/stefan.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Tennis/objc/Tennis.xcodeproj/xcuserdata/stefan.xcuserdatad/xcschemes/Tennis.xcscheme b/Tennis/objc/Tennis.xcodeproj/xcuserdata/stefan.xcuserdatad/xcschemes/Tennis.xcscheme new file mode 100644 index 00000000..aef7d155 --- /dev/null +++ b/Tennis/objc/Tennis.xcodeproj/xcuserdata/stefan.xcuserdatad/xcschemes/Tennis.xcscheme @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + diff --git a/Tennis/objc/Tennis.xcodeproj/xcuserdata/stefan.xcuserdatad/xcschemes/TennisTests.xcscheme b/Tennis/objc/Tennis.xcodeproj/xcuserdata/stefan.xcuserdatad/xcschemes/TennisTests.xcscheme new file mode 100644 index 00000000..c7270ce6 --- /dev/null +++ b/Tennis/objc/Tennis.xcodeproj/xcuserdata/stefan.xcuserdatad/xcschemes/TennisTests.xcscheme @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/Tennis/objc/Tennis.xcodeproj/xcuserdata/stefan.xcuserdatad/xcschemes/xcschememanagement.plist b/Tennis/objc/Tennis.xcodeproj/xcuserdata/stefan.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 00000000..8119a10a --- /dev/null +++ b/Tennis/objc/Tennis.xcodeproj/xcuserdata/stefan.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,19 @@ + + + + + SuppressBuildableAutocreation + + CACF69AD9BF8D87BBC1D0651 + + primary + + + CACF6DE0B90C4D92A2B3D5E6 + + primary + + + + + diff --git a/Tennis/objc/Tennis/AppDelegate.h b/Tennis/objc/Tennis/AppDelegate.h new file mode 100644 index 00000000..8dfe9bd5 --- /dev/null +++ b/Tennis/objc/Tennis/AppDelegate.h @@ -0,0 +1,15 @@ +// +// AppDelegate.h +// Tennis +// +// Created by Stefan on 05/31/13. +// Copyright (c) 2013 Stefan van den Oord. All rights reserved. +// + +#import + +@interface AppDelegate : UIResponder + +@property (strong, nonatomic) UIWindow *window; + +@end \ No newline at end of file diff --git a/Tennis/objc/Tennis/AppDelegate.m b/Tennis/objc/Tennis/AppDelegate.m new file mode 100644 index 00000000..8712b784 --- /dev/null +++ b/Tennis/objc/Tennis/AppDelegate.m @@ -0,0 +1,51 @@ +// +// AppDelegate.m +// Tennis +// +// Created by Stefan on 05/31/13. +// Copyright (c) 2013 Stefan van den Oord. All rights reserved. +// + +#import "AppDelegate.h" + +@implementation AppDelegate + +- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions +{ + // Override point for customization after application launch. + return YES; +} + +- (void)applicationWillResignActive:(UIApplication *)application +{ + // 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 throttle down OpenGL ES frame rates. Games should use this method to pause the game. + +} + +- (void)applicationDidEnterBackground:(UIApplication *)application +{ + // 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. + +} + +- (void)applicationWillEnterForeground:(UIApplication *)application +{ + // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. + +} + +- (void)applicationDidBecomeActive:(UIApplication *)application +{ + // 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. + +} + +- (void)applicationWillTerminate:(UIApplication *)application +{ + // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. + +} + +@end \ No newline at end of file diff --git a/Tennis/objc/Tennis/Default-568h@2x.png b/Tennis/objc/Tennis/Default-568h@2x.png new file mode 100644 index 00000000..0891b7aa Binary files /dev/null and b/Tennis/objc/Tennis/Default-568h@2x.png differ diff --git a/Tennis/objc/Tennis/Default.png b/Tennis/objc/Tennis/Default.png new file mode 100644 index 00000000..4c8ca6f6 Binary files /dev/null and b/Tennis/objc/Tennis/Default.png differ diff --git a/Tennis/objc/Tennis/Default@2x.png b/Tennis/objc/Tennis/Default@2x.png new file mode 100644 index 00000000..35b84cff Binary files /dev/null and b/Tennis/objc/Tennis/Default@2x.png differ diff --git a/Tennis/objc/Tennis/Tennis-Info.plist b/Tennis/objc/Tennis/Tennis-Info.plist new file mode 100644 index 00000000..a68e4459 --- /dev/null +++ b/Tennis/objc/Tennis/Tennis-Info.plist @@ -0,0 +1,52 @@ + + + + + + CFBundleIdentifier + com.vandenoord.${PRODUCT_NAME:rfc1034identifier} + + CFBundleDevelopmentRegion + en + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleSignature + ???? + + CFBundleDisplayName + ${PRODUCT_NAME} + CFBundleVersion + 1.0 + CFBundleShortVersionString + 1.0 + LSRequiresIPhoneOS + + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UIMainStoryboardFile + MainStoryboard_iPhone + UIMainStoryboardFile~ipad + MainStoryboard_iPad + + \ No newline at end of file diff --git a/Tennis/objc/Tennis/Tennis-Prefix.pch b/Tennis/objc/Tennis/Tennis-Prefix.pch new file mode 100644 index 00000000..7cdfcdbe --- /dev/null +++ b/Tennis/objc/Tennis/Tennis-Prefix.pch @@ -0,0 +1,16 @@ +// +// Prefix header for all source files of the 'Tennis' target in the 'Tennis' project +// + +#import + +#ifndef __IPHONE_5_0 +#warning "This project uses features only available in iOS SDK 5.0 and later." +#endif + +#ifdef __OBJC__ + #import + + #import + +#endif \ No newline at end of file diff --git a/Tennis/objc/Tennis/TennisGame.h b/Tennis/objc/Tennis/TennisGame.h new file mode 100644 index 00000000..02b3c9c4 --- /dev/null +++ b/Tennis/objc/Tennis/TennisGame.h @@ -0,0 +1,16 @@ +// +// Created by Stefan on 5/31/13. +// Copyright (c) 2013 Stefan van den Oord. All rights reserved. +// +// To change the template use AppCode | Preferences | File Templates. +// + + +#import + + +@interface TennisGame : NSObject +- (void)wonPoint:(NSString *)player; + +- (NSString *)score; +@end \ No newline at end of file diff --git a/Tennis/objc/Tennis/TennisGame.m b/Tennis/objc/Tennis/TennisGame.m new file mode 100644 index 00000000..a3a6ccf6 --- /dev/null +++ b/Tennis/objc/Tennis/TennisGame.m @@ -0,0 +1,22 @@ +// +// Created by Stefan on 5/31/13. +// Copyright (c) 2013 Stefan van den Oord. All rights reserved. +// +// To change the template use AppCode | Preferences | File Templates. +// + + +#import "TennisGame.h" + + +@implementation TennisGame { + +} +- (void)wonPoint:(NSString *)player { + +} + +- (NSString *)score { + return nil; +} +@end \ No newline at end of file diff --git a/Tennis/objc/Tennis/TennisGame1.h b/Tennis/objc/Tennis/TennisGame1.h new file mode 100644 index 00000000..d3dd979f --- /dev/null +++ b/Tennis/objc/Tennis/TennisGame1.h @@ -0,0 +1,14 @@ +// +// Created by Stefan on 5/31/13. +// Copyright (c) 2013 Stefan van den Oord. All rights reserved. +// +// To change the template use AppCode | Preferences | File Templates. +// + + +#import +#import "TennisGame.h" + + +@interface TennisGame1 : TennisGame +@end \ No newline at end of file diff --git a/Tennis/objc/Tennis/TennisGame1.m b/Tennis/objc/Tennis/TennisGame1.m new file mode 100644 index 00000000..b08fda8a --- /dev/null +++ b/Tennis/objc/Tennis/TennisGame1.m @@ -0,0 +1,15 @@ +// +// Created by Stefan on 5/31/13. +// Copyright (c) 2013 Stefan van den Oord. All rights reserved. +// +// To change the template use AppCode | Preferences | File Templates. +// + + +#import "TennisGame1.h" + + +@implementation TennisGame1 { + +} +@end \ No newline at end of file diff --git a/Tennis/objc/Tennis/TennisGame2.h b/Tennis/objc/Tennis/TennisGame2.h new file mode 100644 index 00000000..23440a1d --- /dev/null +++ b/Tennis/objc/Tennis/TennisGame2.h @@ -0,0 +1,14 @@ +// +// Created by Stefan on 5/31/13. +// Copyright (c) 2013 Stefan van den Oord. All rights reserved. +// +// To change the template use AppCode | Preferences | File Templates. +// + + +#import +#import "TennisGame.h" + + +@interface TennisGame2 : TennisGame +@end \ No newline at end of file diff --git a/Tennis/objc/Tennis/TennisGame2.m b/Tennis/objc/Tennis/TennisGame2.m new file mode 100644 index 00000000..cd99b536 --- /dev/null +++ b/Tennis/objc/Tennis/TennisGame2.m @@ -0,0 +1,15 @@ +// +// Created by Stefan on 5/31/13. +// Copyright (c) 2013 Stefan van den Oord. All rights reserved. +// +// To change the template use AppCode | Preferences | File Templates. +// + + +#import "TennisGame2.h" + + +@implementation TennisGame2 { + +} +@end \ No newline at end of file diff --git a/Tennis/objc/Tennis/TennisGame3.h b/Tennis/objc/Tennis/TennisGame3.h new file mode 100644 index 00000000..190bfe06 --- /dev/null +++ b/Tennis/objc/Tennis/TennisGame3.h @@ -0,0 +1,14 @@ +// +// Created by Stefan on 5/31/13. +// Copyright (c) 2013 Stefan van den Oord. All rights reserved. +// +// To change the template use AppCode | Preferences | File Templates. +// + + +#import +#import "TennisGame.h" + + +@interface TennisGame3 : TennisGame +@end \ No newline at end of file diff --git a/Tennis/objc/Tennis/TennisGame3.m b/Tennis/objc/Tennis/TennisGame3.m new file mode 100644 index 00000000..bc2d3456 --- /dev/null +++ b/Tennis/objc/Tennis/TennisGame3.m @@ -0,0 +1,15 @@ +// +// Created by Stefan on 5/31/13. +// Copyright (c) 2013 Stefan van den Oord. All rights reserved. +// +// To change the template use AppCode | Preferences | File Templates. +// + + +#import "TennisGame3.h" + + +@implementation TennisGame3 { + +} +@end \ No newline at end of file diff --git a/Tennis/objc/Tennis/ViewController.h b/Tennis/objc/Tennis/ViewController.h new file mode 100644 index 00000000..486f5739 --- /dev/null +++ b/Tennis/objc/Tennis/ViewController.h @@ -0,0 +1,13 @@ +// +// ViewController.h +// Tennis +// +// Created by Stefan on 05/31/13. +// Copyright (c) 2013 Stefan van den Oord. All rights reserved. +// + +#import + +@interface ViewController : UIViewController + +@end \ No newline at end of file diff --git a/Tennis/objc/Tennis/ViewController.m b/Tennis/objc/Tennis/ViewController.m new file mode 100644 index 00000000..b81b05d3 --- /dev/null +++ b/Tennis/objc/Tennis/ViewController.m @@ -0,0 +1,29 @@ +// +// ViewController.m +// Tennis +// +// Created by Stefan on 05/31/13. +// Copyright (c) 2013 Stefan van den Oord. All rights reserved. +// + +#import "ViewController.h" + +@interface ViewController () + +@end + +@implementation ViewController + +- (void)viewDidLoad +{ + [super viewDidLoad]; + // Do any additional setup after loading the view, typically from a nib. +} + +- (void)didReceiveMemoryWarning +{ + [super didReceiveMemoryWarning]; + // Dispose of any resources that can be recreated. +} + +@end \ No newline at end of file diff --git a/Tennis/objc/Tennis/en.lproj/InfoPlist.strings b/Tennis/objc/Tennis/en.lproj/InfoPlist.strings new file mode 100644 index 00000000..b92732c7 --- /dev/null +++ b/Tennis/objc/Tennis/en.lproj/InfoPlist.strings @@ -0,0 +1 @@ +/* Localized versions of Info.plist keys */ diff --git a/Tennis/objc/Tennis/en.lproj/MainStoryboard_iPad.storyboard b/Tennis/objc/Tennis/en.lproj/MainStoryboard_iPad.storyboard new file mode 100644 index 00000000..9fbe23e4 --- /dev/null +++ b/Tennis/objc/Tennis/en.lproj/MainStoryboard_iPad.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Tennis/objc/Tennis/en.lproj/MainStoryboard_iPhone.storyboard b/Tennis/objc/Tennis/en.lproj/MainStoryboard_iPhone.storyboard new file mode 100644 index 00000000..c9acc6d0 --- /dev/null +++ b/Tennis/objc/Tennis/en.lproj/MainStoryboard_iPhone.storyboard @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Tennis/objc/Tennis/main.m b/Tennis/objc/Tennis/main.m new file mode 100644 index 00000000..98dc5ec7 --- /dev/null +++ b/Tennis/objc/Tennis/main.m @@ -0,0 +1,19 @@ +// +// main.m +// Tennis +// +// Created by Stefan on 05/31/13. +// Copyright (c) 2013 Stefan van den Oord. All rights reserved. +// + +#import + +#import "AppDelegate.h" + +int main(int argc, char *argv[]) +{ + @autoreleasepool { + return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); + } + +} \ No newline at end of file diff --git a/Tennis/objc/TennisTests/TennisTests-Info.plist b/Tennis/objc/TennisTests/TennisTests-Info.plist new file mode 100644 index 00000000..a97f5d7f --- /dev/null +++ b/Tennis/objc/TennisTests/TennisTests-Info.plist @@ -0,0 +1,25 @@ + + + + + + CFBundleIdentifier + com.vandenoord.${PRODUCT_NAME:rfc1034identifier} + + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + CFBundleDevelopmentRegion + en + CFBundlePackageType + BNDL + CFBundleSignature + ???? + + + \ No newline at end of file diff --git a/Tennis/objc/TennisTests/TennisTests.h b/Tennis/objc/TennisTests/TennisTests.h new file mode 100644 index 00000000..da3b0004 --- /dev/null +++ b/Tennis/objc/TennisTests/TennisTests.h @@ -0,0 +1,13 @@ +// +// TennisTests.h +// TennisTests +// +// Created by Stefan on 05/31/13. +// Copyright (c) 2013 Stefan van den Oord. All rights reserved. +// + +#import + +@interface TennisTests : SenTestCase + +@end diff --git a/Tennis/objc/TennisTests/TennisTests.m b/Tennis/objc/TennisTests/TennisTests.m new file mode 100644 index 00000000..a6e0a62a --- /dev/null +++ b/Tennis/objc/TennisTests/TennisTests.m @@ -0,0 +1,115 @@ +// +// TennisTests.m +// TennisTests +// +// Created by Stefan on 05/31/13. +// Copyright (c) 2013 Stefan van den Oord. All rights reserved. +// + +#import "TennisTests.h" +#import "TennisGame1.h" +#import "TennisGame2.h" +#import "TennisGame3.h" + +@implementation TennisTests { + int player1Score; + int player2Score; + NSString *expectedScore; +} + +- (void)setUp +{ + [super setUp]; + + // Set-up code here. +} + +- (void)tearDown +{ + // Tear-down code here. + + [super tearDown]; +} + ++ (NSArray*)allScores { + return @[ + @[ @0, @0, @"Love-All"], + @[ @1, @1, @"Fifteen-All"], + @[ @2, @2, @"Thirty-All"], + @[ @3, @3, @"Forty-All"], + @[ @4, @4, @"Deuce"], + + @[ @1, @0, @"Fifteen-Love"], + @[ @0, @1, @"Love-Fifteen"], + @[ @2, @0, @"Thirty-Love"], + @[ @0, @2, @"Love-Thirty"], + @[ @3, @0, @"Forty-Love"], + @[ @0, @3, @"Love-Forty"], + @[ @4, @0, @"Win for player1"], + @[ @0, @4, @"Win for player2"], + + @[ @2, @1, @"Thirty-Fifteen"], + @[ @1, @2, @"Fifteen-Thirty"], + @[ @3, @1, @"Forty-Fifteen"], + @[ @1, @3, @"Fifteen-Forty"], + @[ @4, @1, @"Win for player1"], + @[ @1, @4, @"Win for player2"], + + @[ @3, @2, @"Forty-Thirty"], + @[ @2, @3, @"Thirty-Forty"], + @[ @4, @2, @"Win for player1"], + @[ @2, @4, @"Win for player2"], + + @[ @4, @3, @"Advantage player1"], + @[ @3, @4, @"Advantage player2"], + @[ @5, @4, @"Advantage player1"], + @[ @4, @5, @"Advantage player2"], + @[ @15, @14, @"Advantage player1"], + @[ @14, @15, @"Advantage player2"], + + @[ @6, @4, @"Win for player1"], + @[ @4, @6, @"Win for player2"], + @[ @16, @14, @"Win for player1"], + @[ @14, @16, @"Win for player2"] + ]; +} + +- (void)checkAllScoresForGame:(TennisGame *)game { + + for (NSArray * score in [TennisTests allScores]) { + + player1Score = [score[0] intValue]; + player2Score = [score[1] intValue]; + expectedScore = score[2]; + + [self checkScoreForGame:game]; + } +} + +- (void)checkScoreForGame:(TennisGame *)game { + int highestScore = MAX(player1Score, player2Score); + for (int i = 0; i < highestScore; i++) { + if (i < player1Score) + [game wonPoint:@"player1"]; + if (i < player2Score) + [game wonPoint:@"player2"]; + } + STAssertEqualObjects([game score], expectedScore, @""); +} + +- (void)testAllScoresTennisGame1 { + TennisGame1 * game = [[TennisGame1 alloc] init]; + [self checkAllScoresForGame:game]; +} + +- (void)testAllScoresTennisGame2 { + TennisGame2 * game = [[TennisGame2 alloc] init]; + [self checkAllScoresForGame:game]; +} + +- (void)testAllScoresTennisGame3 { + TennisGame3 * game = [[TennisGame3 alloc] init]; + [self checkAllScoresForGame:game]; +} + +@end diff --git a/Tennis/objc/TennisTests/en.lproj/InfoPlist.strings b/Tennis/objc/TennisTests/en.lproj/InfoPlist.strings new file mode 100644 index 00000000..b92732c7 --- /dev/null +++ b/Tennis/objc/TennisTests/en.lproj/InfoPlist.strings @@ -0,0 +1 @@ +/* Localized versions of Info.plist keys */