From 824cb3a6a647a947cdcf6e34cc2f409fc117da75 Mon Sep 17 00:00:00 2001 From: Joylish <yeonzzu45@ajou.ac.kr> Date: Wed, 31 Jul 2019 08:45:17 +0900 Subject: [PATCH] create initial project of second practice --- .../NyetHack/.idea/codeStyles/Project.xml | 10 + .../.idea/codeStyles/codeStyleConfig.xml | 5 + practice/NyetHack/.idea/kotlinc.xml | 6 + .../.idea/libraries/KotlinJavaRuntime.xml | 19 ++ practice/NyetHack/.idea/misc.xml | 6 + practice/NyetHack/.idea/modules.xml | 8 + practice/NyetHack/.idea/vcs.xml | 6 + practice/NyetHack/.idea/workspace.xml | 173 ++++++++++++++++++ practice/NyetHack/NyetHack.iml | 12 ++ .../out/production/NyetHack/GameKt.class | Bin 0 -> 1106 bytes .../NyetHack/META-INF/NyetHack.kotlin_module | Bin 0 -> 28 bytes practice/NyetHack/src/Game.kt | 12 ++ 12 files changed, 257 insertions(+) create mode 100644 practice/NyetHack/.idea/codeStyles/Project.xml create mode 100644 practice/NyetHack/.idea/codeStyles/codeStyleConfig.xml create mode 100644 practice/NyetHack/.idea/kotlinc.xml create mode 100644 practice/NyetHack/.idea/libraries/KotlinJavaRuntime.xml create mode 100644 practice/NyetHack/.idea/misc.xml create mode 100644 practice/NyetHack/.idea/modules.xml create mode 100644 practice/NyetHack/.idea/vcs.xml create mode 100644 practice/NyetHack/.idea/workspace.xml create mode 100644 practice/NyetHack/NyetHack.iml create mode 100644 practice/NyetHack/out/production/NyetHack/GameKt.class create mode 100644 practice/NyetHack/out/production/NyetHack/META-INF/NyetHack.kotlin_module create mode 100644 practice/NyetHack/src/Game.kt diff --git a/practice/NyetHack/.idea/codeStyles/Project.xml b/practice/NyetHack/.idea/codeStyles/Project.xml new file mode 100644 index 0000000..1bec35e --- /dev/null +++ b/practice/NyetHack/.idea/codeStyles/Project.xml @@ -0,0 +1,10 @@ +<component name="ProjectCodeStyleConfiguration"> + <code_scheme name="Project" version="173"> + <JetCodeStyleSettings> + <option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" /> + </JetCodeStyleSettings> + <codeStyleSettings language="kotlin"> + <option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" /> + </codeStyleSettings> + </code_scheme> +</component> \ No newline at end of file diff --git a/practice/NyetHack/.idea/codeStyles/codeStyleConfig.xml b/practice/NyetHack/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..79ee123 --- /dev/null +++ b/practice/NyetHack/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ +<component name="ProjectCodeStyleConfiguration"> + <state> + <option name="USE_PER_PROJECT_SETTINGS" value="true" /> + </state> +</component> \ No newline at end of file diff --git a/practice/NyetHack/.idea/kotlinc.xml b/practice/NyetHack/.idea/kotlinc.xml new file mode 100644 index 0000000..0dd4b35 --- /dev/null +++ b/practice/NyetHack/.idea/kotlinc.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="Kotlin2JvmCompilerArguments"> + <option name="jvmTarget" value="1.8" /> + </component> +</project> \ No newline at end of file diff --git a/practice/NyetHack/.idea/libraries/KotlinJavaRuntime.xml b/practice/NyetHack/.idea/libraries/KotlinJavaRuntime.xml new file mode 100644 index 0000000..1a7265d --- /dev/null +++ b/practice/NyetHack/.idea/libraries/KotlinJavaRuntime.xml @@ -0,0 +1,19 @@ +<component name="libraryTable"> + <library name="KotlinJavaRuntime"> + <CLASSES> + <root url="jar://$KOTLIN_BUNDLED$/lib/kotlin-stdlib.jar!/" /> + <root url="jar://$KOTLIN_BUNDLED$/lib/kotlin-reflect.jar!/" /> + <root url="jar://$KOTLIN_BUNDLED$/lib/kotlin-test.jar!/" /> + <root url="jar://$KOTLIN_BUNDLED$/lib/kotlin-stdlib-jdk7.jar!/" /> + <root url="jar://$KOTLIN_BUNDLED$/lib/kotlin-stdlib-jdk8.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES> + <root url="jar://$KOTLIN_BUNDLED$/lib/kotlin-stdlib-sources.jar!/" /> + <root url="jar://$KOTLIN_BUNDLED$/lib/kotlin-reflect-sources.jar!/" /> + <root url="jar://$KOTLIN_BUNDLED$/lib/kotlin-test-sources.jar!/" /> + <root url="jar://$KOTLIN_BUNDLED$/lib/kotlin-stdlib-jdk7-sources.jar!/" /> + <root url="jar://$KOTLIN_BUNDLED$/lib/kotlin-stdlib-jdk8-sources.jar!/" /> + </SOURCES> + </library> +</component> \ No newline at end of file diff --git a/practice/NyetHack/.idea/misc.xml b/practice/NyetHack/.idea/misc.xml new file mode 100644 index 0000000..0548357 --- /dev/null +++ b/practice/NyetHack/.idea/misc.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK"> + <output url="file://$PROJECT_DIR$/out" /> + </component> +</project> \ No newline at end of file diff --git a/practice/NyetHack/.idea/modules.xml b/practice/NyetHack/.idea/modules.xml new file mode 100644 index 0000000..7bda289 --- /dev/null +++ b/practice/NyetHack/.idea/modules.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="ProjectModuleManager"> + <modules> + <module fileurl="file://$PROJECT_DIR$/NyetHack.iml" filepath="$PROJECT_DIR$/NyetHack.iml" /> + </modules> + </component> +</project> \ No newline at end of file diff --git a/practice/NyetHack/.idea/vcs.xml b/practice/NyetHack/.idea/vcs.xml new file mode 100644 index 0000000..b2bdec2 --- /dev/null +++ b/practice/NyetHack/.idea/vcs.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="VcsDirectoryMappings"> + <mapping directory="$PROJECT_DIR$/../.." vcs="Git" /> + </component> +</project> \ No newline at end of file diff --git a/practice/NyetHack/.idea/workspace.xml b/practice/NyetHack/.idea/workspace.xml new file mode 100644 index 0000000..6f73e7a --- /dev/null +++ b/practice/NyetHack/.idea/workspace.xml @@ -0,0 +1,173 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="ChangeListManager"> + <list default="true" id="c8fe5052-ef54-4670-996b-63e6701eba50" name="Default Changelist" comment="" /> + <ignored path="$PROJECT_DIR$/out/" /> + <option name="EXCLUDED_CONVERTED_TO_IGNORED" 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="DefaultGradleProjectSettings"> + <option name="isMigrated" value="true" /> + </component> + <component name="FileEditorManager"> + <leaf SIDE_TABS_SIZE_LIMIT_KEY="300"> + <file pinned="false" current-in-tab="true"> + <entry file="file://$PROJECT_DIR$/src/Game.kt"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="209"> + <caret line="11" lean-forward="true" selection-start-line="2" selection-start-column="2" selection-end-line="11" /> + </state> + </provider> + </entry> + </file> + </leaf> + </component> + <component name="FileTemplateManagerImpl"> + <option name="RECENT_TEMPLATES"> + <list> + <option value="Kotlin File" /> + </list> + </option> + </component> + <component name="Git.Settings"> + <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/../.." /> + </component> + <component name="IdeDocumentHistory"> + <option name="CHANGED_PATHS"> + <list> + <option value="$PROJECT_DIR$/src/Game.kt" /> + </list> + </option> + </component> + <component name="ProjectConfigurationFiles"> + <option name="files"> + <list> + <option value="$PROJECT_DIR$/.idea/vcs.xml" /> + </list> + </option> + </component> + <component name="ProjectFrameBounds"> + <option name="x" value="952" /> + <option name="width" value="977" /> + <option name="height" value="1038" /> + </component> + <component name="ProjectLevelVcsManager" settingsEditedManually="true" /> + <component name="ProjectView"> + <navigator proportions="" version="1"> + <foldersAlwaysOnTop value="true" /> + </navigator> + <panes> + <pane id="Scope" /> + <pane id="PackagesPane" /> + <pane id="ProjectPane"> + <subPane> + <expand> + <path> + <item name="NyetHack" type="b2602c69:ProjectViewProjectNode" /> + <item name="NyetHack" type="462c0819:PsiDirectoryNode" /> + </path> + <path> + <item name="NyetHack" type="b2602c69:ProjectViewProjectNode" /> + <item name="NyetHack" type="462c0819:PsiDirectoryNode" /> + <item name="src" type="462c0819:PsiDirectoryNode" /> + </path> + </expand> + <select /> + </subPane> + </pane> + </panes> + </component> + <component name="PropertiesComponent"> + <property name="last_opened_file_path" value="$PROJECT_DIR$" /> + <property name="settings.editor.selected.configurable" value="configurable.group.appearance" /> + </component> + <component name="RunDashboard"> + <option name="ruleStates"> + <list> + <RuleState> + <option name="name" value="ConfigurationTypeDashboardGroupingRule" /> + </RuleState> + <RuleState> + <option name="name" value="StatusDashboardGroupingRule" /> + </RuleState> + </list> + </option> + </component> + <component name="RunManager"> + <configuration name="GameKt" type="JetRunConfigurationType" factoryName="Kotlin" temporary="true" nameIsGenerated="true"> + <module name="NyetHack" /> + <option name="VM_PARAMETERS" /> + <option name="PROGRAM_PARAMETERS" /> + <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" /> + <option name="ALTERNATIVE_JRE_PATH" /> + <option name="PASS_PARENT_ENVS" value="true" /> + <option name="MAIN_CLASS_NAME" value="GameKt" /> + <option name="WORKING_DIRECTORY" /> + <method v="2"> + <option name="Make" enabled="true" /> + </method> + </configuration> + <recent_temporary> + <list> + <item itemvalue="Kotlin.GameKt" /> + </list> + </recent_temporary> + </component> + <component name="SvnConfiguration"> + <configuration /> + </component> + <component name="TaskManager"> + <task active="true" id="Default" summary="Default task"> + <changelist id="c8fe5052-ef54-4670-996b-63e6701eba50" name="Default Changelist" comment="" /> + <created>1564525386294</created> + <option name="number" value="Default" /> + <option name="presentableId" value="Default" /> + <updated>1564525386294</updated> + </task> + <servers /> + </component> + <component name="ToolWindowManager"> + <frame x="762" y="0" width="781" height="830" extended-state="0" /> + <editor active="true" /> + <layout> + <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.18307906" /> + <window_info id="Structure" order="1" side_tool="true" weight="0.25" /> + <window_info id="Image Layers" order="2" /> + <window_info id="Designer" order="3" /> + <window_info id="UI Designer" order="4" /> + <window_info id="Capture Tool" order="5" /> + <window_info id="Favorites" order="6" side_tool="true" /> + <window_info anchor="bottom" id="Messages" /> + <window_info anchor="bottom" id="Message" order="0" /> + <window_info anchor="bottom" id="Find" order="1" /> + <window_info active="true" anchor="bottom" id="Run" order="2" visible="true" weight="0.3328551" /> + <window_info anchor="bottom" id="Debug" order="3" weight="0.4" /> + <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" /> + <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" /> + <window_info anchor="bottom" id="TODO" order="6" /> + <window_info anchor="bottom" id="Terminal" order="7" /> + <window_info anchor="bottom" id="Event Log" order="8" side_tool="true" /> + <window_info anchor="bottom" id="Version Control" order="9" /> + <window_info anchor="right" id="Commander" internal_type="SLIDING" order="0" type="SLIDING" weight="0.4" /> + <window_info anchor="right" id="Ant Build" order="1" weight="0.25" /> + <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" /> + <window_info anchor="right" id="Palette" order="3" /> + <window_info anchor="right" id="Maven" order="4" /> + <window_info anchor="right" id="Theme Preview" order="5" /> + <window_info anchor="right" id="Capture Analysis" order="6" /> + <window_info anchor="right" id="Palette	" order="7" /> + </layout> + </component> + <component name="editorHistoryManager"> + <entry file="file://$PROJECT_DIR$/src/Game.kt"> + <provider selected="true" editor-type-id="text-editor"> + <state relative-caret-position="209"> + <caret line="11" lean-forward="true" selection-start-line="2" selection-start-column="2" selection-end-line="11" /> + </state> + </provider> + </entry> + </component> +</project> \ No newline at end of file diff --git a/practice/NyetHack/NyetHack.iml b/practice/NyetHack/NyetHack.iml new file mode 100644 index 0000000..245d342 --- /dev/null +++ b/practice/NyetHack/NyetHack.iml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<module type="JAVA_MODULE" version="4"> + <component name="NewModuleRootManager" inherit-compiler-output="true"> + <exclude-output /> + <content url="file://$MODULE_DIR$"> + <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> + </content> + <orderEntry type="inheritedJdk" /> + <orderEntry type="sourceFolder" forTests="false" /> + <orderEntry type="library" name="KotlinJavaRuntime" level="project" /> + </component> +</module> \ No newline at end of file diff --git a/practice/NyetHack/out/production/NyetHack/GameKt.class b/practice/NyetHack/out/production/NyetHack/GameKt.class new file mode 100644 index 0000000000000000000000000000000000000000..b03fe91297fbe7a52f7234ea0abbc927a9550ce7 GIT binary patch literal 1106 zcmX^0Z`VEs1_l!bM@9xV_r%;(?-F(fMn(pKti-ZJ{hY+SbbbG%tkmQZb_Qlf2A15! z%sfU0W)00SMg}pBXdi^C;F6-uymV{LFdhb01~x7RCI${h2JY<qlAO#u{eZ;GB6bEY zMh0Po2Iq{#qQvBq)FO5U9!3WCvc#OyRR1(a1_=#kO(b*S%B*=9_!#)P7<d^37#Rc+ z=6L3nq^5&R5dt~M6Im}*3anFvi$Rz{l#zkWCNnRy#Ey|cT?5G$h###nML_-$XOQ4x z;AW6S36<c=;*!){b_Qui2Il<I5=I75h~~_E{eYs(yprIOqSVA(YaRw!202a!83uWn z=TQ}~Gbl1Luor-I<m53juxLbqY*c1Y;bKr?P-SFbFHX)cN;NQMWZ?Bd3QTLbj1in= z$jBfFQ{$Ujl9-ZMl4#Ayz?56Y%)r3F2qO3y8JLp5Tm}%AnUR4p8^mB@WME1$WMq&! z(7?fUpn;1?fQjosgA|*<fd(li1I9xu*uW}`7#SEC894kZQ%gJ&ld~Ba*g+{qFS~@1 zfyFsLC6$qZH@GA*Iomg}AS5v<CzX+b-zPIK)vq)+DYXbHBIJ{woR|}qSd<A;0Ttv5 z&Mz%WPIb!!=@Ef&TvC%t(_Je{QuB&4^Ya)PB!f!xN-}d(!!nCAlX6lW^YZdb5=%1k z^NJY^8JHMY7(jrDK@ybw7#JC>7#J81Ft9MNGB7X%?q=YQ6mZ<ZASe*OgF$RNgOoQ| z#2F-F0}=7j^3~E=#=y?9oPmYej@gW56N7^6HU>2<?WLH48yOfFm>H}Y7#PGESpG5S zvoml*kOSji24O}<2Sx@P1_lNx1~vu;1||j}24)5o1{MZ21~vw326l!320;c}1_lNN z24)5|25km)1`P%#1{DTf22BPH21W)U273lA1`P%V0Zs;126m`#1VFLKz`($=gMky| z0FV>xz~);r*fTINI0ySW25>=Rgv%S8^SHEv6<{nkE^P%v1(-aD_AcSl^5HU6Hq<dR zw=(3?a^+%hU|?XdWng5`W?*H|iDqE-WY7g8JqCRk&%l$xkip24!I;4$nt`#H!IZ%) Qnt{2Pfwh>yyqLiP034C--~a#s literal 0 HcmV?d00001 diff --git a/practice/NyetHack/out/production/NyetHack/META-INF/NyetHack.kotlin_module b/practice/NyetHack/out/production/NyetHack/META-INF/NyetHack.kotlin_module new file mode 100644 index 0000000000000000000000000000000000000000..713eda584a86f23d799173cc2434c41caba645cc GIT binary patch literal 28 dcmZQzU|?ooU|@t|el9L91|c^0#N1Tx5&#O&0)zkn literal 0 HcmV?d00001 diff --git a/practice/NyetHack/src/Game.kt b/practice/NyetHack/src/Game.kt new file mode 100644 index 0000000..c9de455 --- /dev/null +++ b/practice/NyetHack/src/Game.kt @@ -0,0 +1,12 @@ +fun main() { + + val playerName = "마드리갈" + var healthPoints = 100 + + if(healthPoints == 100){ + println(playerName + " 최상의 상태임!") + } + else{ + println(playerName + " 최악의 상태임!!") + } +} \ No newline at end of file -- GitLab