diff --git a/practice/NyetHack/.idea/codeStyles/Project.xml b/practice/NyetHack/.idea/codeStyles/Project.xml new file mode 100644 index 0000000000000000000000000000000000000000..1bec35e570deb55a46c8665aebf9019302f5495f --- /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 0000000000000000000000000000000000000000..79ee123c2b23e069e35ed634d687e17f731cc702 --- /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 0000000000000000000000000000000000000000..0dd4b354636ab01a5a9aee4a507c42898cb5b291 --- /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 0000000000000000000000000000000000000000..1a7265de210894e64acead8975a2371d1c19fe4c --- /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 0000000000000000000000000000000000000000..05483570e041eb648703359441d61bf9a5feeb13 --- /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 0000000000000000000000000000000000000000..7bda289f5bd4c4796589709b822f77955f499332 --- /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 0000000000000000000000000000000000000000..b2bdec2d71b6a5ce4ae49efc37516809c50e4d5e --- /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 0000000000000000000000000000000000000000..6f73e7a29a19ffd0b405e372ac2f8a282c58bee8 --- /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 0000000000000000000000000000000000000000..245d3429faae22cba4ef10f7379236b6756defe1 --- /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 Binary files /dev/null and b/practice/NyetHack/out/production/NyetHack/GameKt.class differ 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 Binary files /dev/null and b/practice/NyetHack/out/production/NyetHack/META-INF/NyetHack.kotlin_module differ diff --git a/practice/NyetHack/src/Game.kt b/practice/NyetHack/src/Game.kt new file mode 100644 index 0000000000000000000000000000000000000000..c9de455b4102788fa5bcb0b30f8c15a8927f62b6 --- /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