Adding Objective-C version of Tennis; added Xcode+AppCode project, ported unit tests from Java version

This commit is contained in:
Stefan van den Oord 2013-05-31 18:28:43 +02:00
parent eddd5053ad
commit c57b33c2c9
40 changed files with 1629 additions and 0 deletions

1
Tennis/objc/.idea/.name Normal file
View File

@ -0,0 +1 @@
Tennis

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="CIDR_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
</project>

View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" />
<component name="SvnConfiguration" maxAnnotateRevisions="500" myUseAcceleration="nothing" myAutoUpdateAfterCommit="false" cleanupOnStartRun="false" SSL_PROTOCOLS="sslv3">
<option name="USER" value="" />
<option name="PASSWORD" value="" />
<option name="mySSHConnectionTimeout" value="30000" />
<option name="mySSHReadTimeout" value="30000" />
<option name="LAST_MERGED_REVISION" />
<option name="MERGE_DRY_RUN" value="false" />
<option name="MERGE_DIFF_USE_ANCESTRY" value="true" />
<option name="UPDATE_LOCK_ON_DEMAND" value="false" />
<option name="IGNORE_SPACES_IN_MERGE" value="false" />
<option name="CHECK_NESTED_FOR_QUICK_MERGE" value="false" />
<option name="IGNORE_SPACES_IN_ANNOTATE" value="true" />
<option name="SHOW_MERGE_SOURCES_IN_ANNOTATE" value="true" />
<option name="FORCE_UPDATE" value="false" />
<option name="IGNORE_EXTERNALS" value="false" />
<configuration useDefault="false">$USER_HOME$/.subversion</configuration>
<myIsUseDefaultProxy>false</myIsUseDefaultProxy>
</component>
</project>

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/Tennis.iml" filepath="$PROJECT_DIR$/.idea/Tennis.iml" />
</modules>
</component>
</project>

View File

@ -0,0 +1,5 @@
<component name="DependencyValidationManager">
<state>
<option name="SKIP_IMPORT_STATEMENTS" value="false" />
</state>
</component>

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="" />
</component>
</project>

View File

@ -0,0 +1,428 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="3432493f-5b19-44ab-868c-f539ff9f9548" name="Default" comment="" />
<ignored path="Tennis.iws" />
<ignored path=".idea/workspace.xml" />
<file path="/fragment.mm" changelist="3432493f-5b19-44ab-868c-f539ff9f9548" time="1370012942444" ignored="false" />
<file path="/TennisTests.m" changelist="3432493f-5b19-44ab-868c-f539ff9f9548" time="1370014260625" ignored="false" />
<file path="/fragment.m" changelist="3432493f-5b19-44ab-868c-f539ff9f9548" time="1370014036256" ignored="false" />
<file path="/TennisGame1.h" changelist="3432493f-5b19-44ab-868c-f539ff9f9548" time="1370013500893" ignored="false" />
<file path="/TennisGame2.h" changelist="3432493f-5b19-44ab-868c-f539ff9f9548" time="1370013513152" ignored="false" />
<file path="/TennisGame3.h" changelist="3432493f-5b19-44ab-868c-f539ff9f9548" time="1370013520283" ignored="false" />
<file path="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/include/string.h" changelist="3432493f-5b19-44ab-868c-f539ff9f9548" time="1370014093686" ignored="false" />
<option name="TRACKING_ENABLED" value="true" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
<component name="CreatePatchCommitExecutor">
<option name="PATCH_PATH" value="" />
</component>
<component name="DaemonCodeAnalyzer">
<disable_hints />
</component>
<component name="ExecutionTargetManager" SELECTED_TARGET="iphonesimulator_6.1_2" />
<component name="FavoritesManager">
<favorites_list name="Tennis" />
</component>
<component name="FileEditorManager">
<leaf>
<file leaf-file-name="TennisGame3.m" pinned="false" current="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/Tennis/TennisGame3.m">
<provider selected="true" editor-type-id="text-editor">
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="TennisGame3.h" pinned="false" current="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/Tennis/TennisGame3.h">
<provider selected="true" editor-type-id="text-editor">
<state line="13" column="4" selection-start="277" selection-end="277" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="TennisTests.m" pinned="false" current="true" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/TennisTests/TennisTests.m">
<provider selected="true" editor-type-id="text-editor">
<state line="105" column="52" selection-start="2809" selection-end="2809" vertical-scroll-proportion="0.7359736">
<folding>
<element signature="e#144#167#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file leaf-file-name="TennisGame2.m" pinned="false" current="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/Tennis/TennisGame2.m">
<provider selected="true" editor-type-id="text-editor">
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="ViewController.h" pinned="false" current="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/Tennis/ViewController.h">
<provider selected="true" editor-type-id="text-editor">
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="TennisGame2.h" pinned="false" current="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/Tennis/TennisGame2.h">
<provider selected="true" editor-type-id="text-editor">
<state line="12" column="35" selection-start="272" selection-end="272" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="TennisGame1.m" pinned="false" current="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/Tennis/TennisGame1.m">
<provider selected="true" editor-type-id="text-editor">
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="TennisGame1.h" pinned="false" current="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/Tennis/TennisGame1.h">
<provider selected="true" editor-type-id="text-editor">
<state line="12" column="35" selection-start="272" selection-end="272" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="TennisGame.m" pinned="false" current="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/Tennis/TennisGame.m">
<provider selected="true" editor-type-id="text-editor">
<state line="21" column="4" selection-start="321" selection-end="321" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="TennisGame.h" pinned="false" current="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/Tennis/TennisGame.h">
<provider selected="true" editor-type-id="text-editor">
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
</file>
</leaf>
</component>
<component name="FindManager">
<FindUsagesManager>
<setting name="OPEN_NEW_TAB" value="false" />
</FindUsagesManager>
</component>
<component name="IdeDocumentHistory">
<option name="changedFiles">
<list>
<option value="$PROJECT_DIR$/Tennis/TennisGame1.h" />
<option value="$PROJECT_DIR$/Tennis/TennisGame.h" />
<option value="$PROJECT_DIR$/Tennis/TennisGame2.h" />
<option value="$PROJECT_DIR$/Tennis/TennisGame3.h" />
<option value="$PROJECT_DIR$/Tennis/TennisGame.mm" />
<option value="$PROJECT_DIR$/TennisTests/TennisTests.m" />
</list>
</option>
</component>
<component name="ProjectFrameBounds">
<option name="x" value="60" />
<option name="y" value="22" />
<option name="width" value="1620" />
<option name="height" value="1028" />
</component>
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
<OptionsSetting value="true" id="Add" />
<OptionsSetting value="true" id="Remove" />
<OptionsSetting value="true" id="Checkout" />
<OptionsSetting value="true" id="Update" />
<OptionsSetting value="true" id="Status" />
<OptionsSetting value="true" id="Edit" />
<ConfirmationsSetting value="0" id="Add" />
<ConfirmationsSetting value="0" id="Remove" />
</component>
<component name="ProjectReloadState">
<option name="STATE" value="0" />
</component>
<component name="ProjectView">
<navigator currentView="ProjectPane" proportions="" version="1" splitterProportion="0.5">
<flattenPackages />
<showMembers />
<showModules />
<showLibraryContents />
<hideEmptyPackages />
<abbreviatePackageNames />
<autoscrollToSource />
<autoscrollFromSource />
<sortByType />
</navigator>
<panes>
<pane id="DirectoryView.Xcode" />
<pane id="ProjectPane">
<subPane>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" />
<option name="myItemType" value="com.jetbrains.cidr.projectView.XcodeRootNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Tennis" />
<option name="myItemType" value="com.jetbrains.cidr.projectView.XcodeProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="TennisTests" />
<option name="myItemType" value="com.jetbrains.cidr.projectView.XcodeViewNode" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" />
<option name="myItemType" value="com.jetbrains.cidr.projectView.XcodeRootNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Tennis" />
<option name="myItemType" value="com.jetbrains.cidr.projectView.XcodeProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Tennis" />
<option name="myItemType" value="com.jetbrains.cidr.projectView.XcodeViewNode" />
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option name="myItemId" />
<option name="myItemType" value="com.jetbrains.cidr.projectView.XcodeRootNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
<option name="myItemId" value="Tennis" />
<option name="myItemType" value="com.jetbrains.cidr.projectView.XcodeProjectNode" />
</PATH_ELEMENT>
</PATH>
</subPane>
</pane>
</panes>
</component>
<component name="PropertiesComponent">
<property name="options.splitter.main.proportions" value="0.3" />
<property name="recentsLimit" value="5" />
<property name="options.lastSelected" value="preferences.keymap" />
<property name="restartRequiresConfirmation" value="true" />
<property name="last_opened_file_path" value="$PROJECT_DIR$/Tennis" />
<property name="FullScreen" value="false" />
<property name="OBJC.PRESERVED_TARGET_SELECTION" value="Tennis,,,TennisTests" />
<property name="options.splitter.details.proportions" value="0.2" />
<property name="options.searchVisible" value="true" />
</component>
<component name="RunManager" selected="OCUnit.TennisTests">
<configuration default="false" name="Tennis" type="AppleRunConfiguration" factoryName="Application" temporary="true" SCHEME_NAME="Tennis" PROJECT_NAME="Tennis" TARGET_NAME="Tennis" CONFIG_NAME="Debug" WORKING_DIR="" PASS_PARENT_ENVS="FALSE" RUN_TARGET_PROJECT_NAME="Tennis" RUN_TARGET_NAME="Tennis" MAKE_ACTIVE="TRUE" WAIT_FOR="FALSE">
<envs />
<method />
</configuration>
<configuration default="true" type="OCUnitRunConfiguration" factoryName="OCUnit" PROJECT_NAME="Tennis" TARGET_NAME="TennisTests" CONFIG_NAME="Debug" PASS_PARENT_ENVS="FALSE">
<envs />
<method />
</configuration>
<configuration default="true" type="AppleRunConfiguration" factoryName="Application" PROJECT_NAME="Tennis" TARGET_NAME="Tennis" CONFIG_NAME="Debug" PASS_PARENT_ENVS="FALSE" RUN_TARGET_PROJECT_NAME="Tennis" RUN_TARGET_NAME="Tennis" MAKE_ACTIVE="TRUE" WAIT_FOR="FALSE">
<envs />
<method />
</configuration>
<configuration default="false" name="TennisTests" type="OCUnitRunConfiguration" factoryName="OCUnit" SCHEME_NAME="TennisTests" PROJECT_NAME="Tennis" TARGET_NAME="TennisTests" CONFIG_NAME="Debug" WORKING_DIR="" PASS_PARENT_ENVS="FALSE">
<envs />
<RunnerSettings RunnerId="AppRunner" />
<ConfigurationWrapper RunnerId="AppRunner" />
<method />
</configuration>
<list size="2">
<item index="0" class="java.lang.String" itemvalue="OCUnit.TennisTests" />
<item index="1" class="java.lang.String" itemvalue="Application.Tennis" />
</list>
<recent_temporary>
<list size="1">
<item index="0" class="java.lang.String" itemvalue="Application.Tennis" />
</list>
</recent_temporary>
</component>
<component name="ShelveChangesManager" show_recycled="false" />
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="3432493f-5b19-44ab-868c-f539ff9f9548" name="Default" comment="" />
<created>1370012867256</created>
<updated>1370012867256</updated>
</task>
<servers />
</component>
<component name="ToolWindowManager">
<frame x="60" y="22" width="1620" height="1028" extended-state="6" />
<editor active="false" />
<layout>
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.24984346" sideWeight="0.67070484" order="0" side_tool="false" content_ui="combo" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
<window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="true" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32929516" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
<window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32929516" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
<window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
</layout>
</component>
<component name="VcsContentAnnotationSettings">
<option name="myLimit" value="2678400000" />
</component>
<component name="VcsManagerConfiguration">
<option name="OFFER_MOVE_TO_ANOTHER_CHANGELIST_ON_PARTIAL_COMMIT" value="true" />
<option name="CHECK_CODE_SMELLS_BEFORE_PROJECT_COMMIT" value="true" />
<option name="CHECK_NEW_TODO" value="true" />
<option name="myTodoPanelSettings">
<value>
<are-packages-shown value="false" />
<are-modules-shown value="false" />
<flatten-packages value="false" />
<is-autoscroll-to-source value="false" />
</value>
</option>
<option name="PERFORM_UPDATE_IN_BACKGROUND" value="true" />
<option name="PERFORM_COMMIT_IN_BACKGROUND" value="true" />
<option name="PERFORM_EDIT_IN_BACKGROUND" value="true" />
<option name="PERFORM_CHECKOUT_IN_BACKGROUND" value="true" />
<option name="PERFORM_ADD_REMOVE_IN_BACKGROUND" value="true" />
<option name="PERFORM_ROLLBACK_IN_BACKGROUND" value="false" />
<option name="CHECK_LOCALLY_CHANGED_CONFLICTS_IN_BACKGROUND" value="false" />
<option name="CHANGED_ON_SERVER_INTERVAL" value="60" />
<option name="SHOW_ONLY_CHANGED_IN_SELECTION_DIFF" value="true" />
<option name="CHECK_COMMIT_MESSAGE_SPELLING" value="true" />
<option name="DEFAULT_PATCH_EXTENSION" value="patch" />
<option name="SHORT_DIFF_HORIZONTALLY" value="true" />
<option name="SHORT_DIFF_EXTRA_LINES" value="2" />
<option name="SOFT_WRAPS_IN_SHORT_DIFF" value="true" />
<option name="INCLUDE_TEXT_INTO_PATCH" value="false" />
<option name="INCLUDE_TEXT_INTO_SHELF" value="false" />
<option name="SHOW_FILE_HISTORY_DETAILS" value="true" />
<option name="SHOW_VCS_ERROR_NOTIFICATIONS" value="true" />
<option name="SHOW_DIRTY_RECURSIVELY" value="false" />
<option name="LIMIT_HISTORY" value="true" />
<option name="MAXIMUM_HISTORY_ROWS" value="1000" />
<option name="UPDATE_FILTER_SCOPE_NAME" />
<option name="USE_COMMIT_MESSAGE_MARGIN" value="false" />
<option name="COMMIT_MESSAGE_MARGIN_SIZE" value="72" />
<option name="WRAP_WHEN_TYPING_REACHES_RIGHT_MARGIN" value="false" />
<option name="FORCE_NON_EMPTY_COMMENT" value="false" />
<option name="CLEAR_INITIAL_COMMIT_MESSAGE" value="false" />
<option name="LAST_COMMIT_MESSAGE" />
<option name="MAKE_NEW_CHANGELIST_ACTIVE" value="false" />
<option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
<option name="CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value="false" />
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="false" />
<option name="REFORMAT_BEFORE_FILE_COMMIT" value="false" />
<option name="FILE_HISTORY_DIALOG_COMMENTS_SPLITTER_PROPORTION" value="0.8" />
<option name="FILE_HISTORY_DIALOG_SPLITTER_PROPORTION" value="0.5" />
<option name="ACTIVE_VCS_NAME" />
<option name="UPDATE_GROUP_BY_PACKAGES" value="false" />
<option name="UPDATE_GROUP_BY_CHANGELIST" value="false" />
<option name="UPDATE_FILTER_BY_SCOPE" value="false" />
<option name="SHOW_FILE_HISTORY_AS_TREE" value="false" />
<option name="FILE_HISTORY_SPLITTER_PROPORTION" value="0.6" />
</component>
<component name="XDebuggerManager">
<breakpoint-manager />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/Tennis/TennisGame.h">
<provider selected="true" editor-type-id="text-editor">
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Tennis/ViewController.h">
<provider selected="true" editor-type-id="text-editor">
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Tennis/TennisGame1.h">
<provider selected="true" editor-type-id="text-editor">
<state line="12" column="35" selection-start="272" selection-end="272" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Tennis/TennisGame2.h">
<provider selected="true" editor-type-id="text-editor">
<state line="12" column="35" selection-start="272" selection-end="272" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Tennis/TennisGame3.m">
<provider selected="true" editor-type-id="text-editor">
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Tennis/TennisGame3.h">
<provider selected="true" editor-type-id="text-editor">
<state line="13" column="4" selection-start="277" selection-end="277" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Tennis/TennisGame2.m">
<provider selected="true" editor-type-id="text-editor">
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Tennis/TennisGame1.m">
<provider selected="true" editor-type-id="text-editor">
<state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/Tennis/TennisGame.m">
<provider selected="true" editor-type-id="text-editor">
<state line="21" column="4" selection-start="321" selection-end="321" vertical-scroll-proportion="0.0">
<folding />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/TennisTests/TennisTests.m">
<provider selected="true" editor-type-id="text-editor">
<state line="105" column="52" selection-start="2809" selection-end="2809" vertical-scroll-proportion="0.7359736">
<folding>
<element signature="e#144#167#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</component>
</project>

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="XcodeMetaData" PROJECT_FILE="$PROJECT_DIR$/Tennis.xcodeproj" />
</project>

View File

@ -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 = "<group>"; };
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 = "<group>"; };
CACF63DE5D96157326EB9B8B /* en */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = en; path = en.lproj/MainStoryboard_iPad.storyboard; sourceTree = "<group>"; };
CACF6419833B61F7E3D89075 /* TennisGame3.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TennisGame3.h; sourceTree = "<group>"; };
CACF649AAFA398A61A600CB7 /* TennisGame.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TennisGame.m; sourceTree = "<group>"; };
CACF64E5E1F46B45835C2ADD /* TennisTests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.info; path = "TennisTests-Info.plist"; sourceTree = "<group>"; };
CACF64EDAB086A5F18E393EE /* TennisGame2.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TennisGame2.m; sourceTree = "<group>"; };
CACF65D0E3A6E15249A3EE3D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
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 = "<group>"; };
CACF66D0CE7C0E01036D6AB1 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
CACF6759046CDA8835BDE4B2 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
CACF6771858FAF6F6F4650A6 /* TennisGame2.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TennisGame2.h; sourceTree = "<group>"; };
CACF6933BDBCFF02099B5751 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = en; path = en.lproj/MainStoryboard_iPhone.storyboard; sourceTree = "<group>"; };
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 = "<group>"; };
CACF6A964A59A72222255B2C /* TennisGame.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TennisGame.h; sourceTree = "<group>"; };
CACF6ACB8808C4FCB94FF29C /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = "<group>"; };
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 = "<group>"; };
CACF6BAD45E82D978466F92B /* TennisGame3.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TennisGame3.m; sourceTree = "<group>"; };
CACF6BF242B4F5F91193BEC7 /* TennisGame1.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = TennisGame1.m; sourceTree = "<group>"; };
CACF6C2CA2AA72E014F657D0 /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = "<group>"; };
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 = "<group>"; };
CACF6D690AB9C997BD1CD8AF /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
CACF6D897D4F49BCD1B41947 /* TennisTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TennisTests.m; sourceTree = "<group>"; };
CACF6E1F321CCC9D9CC8F04E /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
CACF6E515082A06CBCF4B49E /* Tennis-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.info; path = "Tennis-Info.plist"; sourceTree = "<group>"; };
/* 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 = "<group>";
};
CACF652B01231CADE96100D1 = {
isa = PBXGroup;
children = (
CACF6E7D48293F4D43E7A6DC /* Products */,
CACF60033C37E3B5C11CC734 /* Frameworks */,
CACF67CF0393B97F4DC41E0B /* Tennis */,
CACF65D28A08CBB9A2C540F5 /* TennisTests */,
);
sourceTree = "<group>";
};
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 = "<group>";
};
CACF65D28A08CBB9A2C540F5 /* TennisTests */ = {
isa = PBXGroup;
children = (
CACF67238D0948836603B9CC /* Supporting Files */,
CACF6A4205D54CCF3AEA2B65 /* TennisTests.h */,
CACF6D897D4F49BCD1B41947 /* TennisTests.m */,
);
path = TennisTests;
sourceTree = "<group>";
};
CACF67238D0948836603B9CC /* Supporting Files */ = {
isa = PBXGroup;
children = (
CACF64E5E1F46B45835C2ADD /* TennisTests-Info.plist */,
CACF6949C1475F308096D3C1 /* InfoPlist.strings */,
);
name = "Supporting Files";
sourceTree = "<group>";
};
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 = "<group>";
};
CACF6E7D48293F4D43E7A6DC /* Products */ = {
isa = PBXGroup;
children = (
CACF6B79FE846441B027773F /* Tennis.app */,
CACF665E8EA24EE215E5498C /* TennisTests.octest */,
);
name = Products;
sourceTree = "<group>";
};
/* 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 = "<group>";
};
CACF6949C1475F308096D3C1 /* InfoPlist.strings */ = {
isa = PBXVariantGroup;
children = (
CACF666E98D511A74FA3D675 /* en */,
);
name = InfoPlist.strings;
sourceTree = "<group>";
};
CACF6B0DF95E878216995989 /* InfoPlist.strings */ = {
isa = PBXVariantGroup;
children = (
CACF66D0CE7C0E01036D6AB1 /* en */,
);
name = InfoPlist.strings;
sourceTree = "<group>";
};
CACF6EE7BED3428159FF4EEC /* MainStoryboard_iPhone.storyboard */ = {
isa = PBXVariantGroup;
children = (
CACF6933BDBCFF02099B5751 /* en */,
);
name = MainStoryboard_iPhone.storyboard;
sourceTree = "<group>";
};
/* 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 */;
}

View File

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

View File

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
version = "1.3">
<BuildAction>
<BuildActionEntries>
<BuildActionEntry
buildForRunning = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "CACF69AD9BF8D87BBC1D0651"
BuildableName = "Tennis.app"
BlueprintName = "Tennis"
ReferencedContainer = "container:Tennis.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<LaunchAction
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug">
<BuildableProductRunnable>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "CACF69AD9BF8D87BBC1D0651"
BuildableName = "Tennis.app"
BlueprintName = "Tennis"
ReferencedContainer = "container:Tennis.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
</Scheme>

View File

@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
version = "1.3">
<BuildAction>
<BuildActionEntries>
<BuildActionEntry
buildForRunning = "YES"
buildForTesting = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "CACF6DE0B90C4D92A2B3D5E6"
BuildableName = "TennisTests.octest"
BlueprintName = "TennisTests"
ReferencedContainer = "container:Tennis.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug">
<Testables>
<TestableReference>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "CACF6DE0B90C4D92A2B3D5E6"
BuildableName = "TennisTests.octest"
BlueprintName = "TennisTests"
ReferencedContainer = "container:Tennis.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
useCustomWorkingDirectory = "NO">
</LaunchAction>
</Scheme>

View File

@ -0,0 +1,19 @@
<?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>SuppressBuildableAutocreation</key>
<dict>
<key>CACF69AD9BF8D87BBC1D0651</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>CACF6DE0B90C4D92A2B3D5E6</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>

View File

@ -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 <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end

View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -0,0 +1,52 @@
<?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>CFBundleIdentifier</key>
<string>com.vandenoord.${PRODUCT_NAME:rfc1034identifier}</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleDisplayName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
</array>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<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>
<key>UIMainStoryboardFile</key>
<string>MainStoryboard_iPhone</string>
<key>UIMainStoryboardFile~ipad</key>
<string>MainStoryboard_iPad</string>
</dict>
</plist>

View File

@ -0,0 +1,16 @@
//
// Prefix header for all source files of the 'Tennis' target in the 'Tennis' project
//
#import <Availability.h>
#ifndef __IPHONE_5_0
#warning "This project uses features only available in iOS SDK 5.0 and later."
#endif
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#endif

View File

@ -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 <Foundation/Foundation.h>
@interface TennisGame : NSObject
- (void)wonPoint:(NSString *)player;
- (NSString *)score;
@end

View File

@ -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

View File

@ -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 <Foundation/Foundation.h>
#import "TennisGame.h"
@interface TennisGame1 : TennisGame
@end

View File

@ -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

View File

@ -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 <Foundation/Foundation.h>
#import "TennisGame.h"
@interface TennisGame2 : TennisGame
@end

View File

@ -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

View File

@ -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 <Foundation/Foundation.h>
#import "TennisGame.h"
@interface TennisGame3 : TennisGame
@end

View File

@ -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

View File

@ -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 <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end

View File

@ -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

View File

@ -0,0 +1 @@
/* Localized versions of Info.plist keys */

View File

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="2.0" toolsVersion="2519" systemVersion="12A206j" targetRuntime="iOS.CocoaTouch.iPad" propertyAccessControl="none" useAutolayout="YES" initialViewController="2">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="1856"/>
</dependencies>
<scenes>
<!--class Prefix:identifier View Controller-->
<scene sceneID="4">
<objects>
<viewController id="2" customClass="ViewController" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="5">
<rect key="frame" x="0.0" y="20" width="768" height="1004"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="3" sceneMemberID="firstResponder"/>
</objects>
</scene>
</scenes>
<simulatedMetricsContainer key="defaultSimulatedMetrics">
<simulatedStatusBarMetrics key="statusBar" statusBarStyle="blackTranslucent"/>
<simulatedOrientationMetrics key="orientation"/>
<simulatedScreenMetrics key="destination"/>
</simulatedMetricsContainer>
</document>

View File

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="2.0" toolsVersion="2519" systemVersion="12A206j" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" initialViewController="2">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="1856"/>
</dependencies>
<scenes>
<!--class Prefix:identifier View Controller-->
<scene sceneID="5">
<objects>
<viewController id="2" customClass="ViewController" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="3">
<rect key="frame" x="0.0" y="20" width="320" height="460"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="4" sceneMemberID="firstResponder"/>
</objects>
</scene>
</scenes>
<simulatedMetricsContainer key="defaultSimulatedMetrics">
<simulatedStatusBarMetrics key="statusBar"/>
<simulatedOrientationMetrics key="orientation"/>
<simulatedScreenMetrics key="destination" type="retina4"/>
</simulatedMetricsContainer>
</document>

19
Tennis/objc/Tennis/main.m Normal file
View File

@ -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 <UIKit/UIKit.h>
#import "AppDelegate.h"
int main(int argc, char *argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}

View File

@ -0,0 +1,25 @@
<?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>CFBundleIdentifier</key>
<string>com.vandenoord.${PRODUCT_NAME:rfc1034identifier}</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleSignature</key>
<string>????</string>
</dict>
</plist>

View File

@ -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 <SenTestingKit/SenTestingKit.h>
@interface TennisTests : SenTestCase
@end

View File

@ -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

View File

@ -0,0 +1 @@
/* Localized versions of Info.plist keys */