From 4e99d5fc46faaf7ffd7d65043ce5f10164d566a7 Mon Sep 17 00:00:00 2001 From: Anthony Cicchetti Date: Thu, 5 Mar 2020 17:43:37 -0500 Subject: [PATCH] Resistor color --- .../executionHistory/executionHistory.bin | Bin 0 -> 55467 bytes .../executionHistory/executionHistory.lock | Bin 0 -> 17 bytes .../.gradle/6.0.1/fileChanges/last-build.bin | Bin 0 -> 1 bytes .../6.0.1/fileContent/fileContent.lock | Bin 0 -> 17 bytes .../.gradle/6.0.1/fileHashes/fileHashes.bin | Bin 0 -> 19297 bytes .../.gradle/6.0.1/fileHashes/fileHashes.lock | Bin 0 -> 17 bytes .../.gradle/6.0.1/gc.properties | 0 .../buildOutputCleanup.lock | Bin 0 -> 17 bytes .../buildOutputCleanup/cache.properties | 2 ++ .../buildOutputCleanup/outputFiles.bin | Bin 0 -> 18803 bytes .../.gradle/vcs-1/gc.properties | 0 kotlin/resistor-color/.idea/.gitignore | 8 +++++++ kotlin/resistor-color/.idea/compiler.xml | 6 ++++++ .../resistor-color/.idea/jarRepositories.xml | 20 ++++++++++++++++++ kotlin/resistor-color/.idea/misc.xml | 8 +++++++ kotlin/resistor-color/.idea/vcs.xml | 6 ++++++ .../src/main/kotlin/ResistorColor.kt | 19 ++++++++++++----- 17 files changed, 64 insertions(+), 5 deletions(-) create mode 100644 kotlin/resistor-color/.gradle/6.0.1/executionHistory/executionHistory.bin create mode 100644 kotlin/resistor-color/.gradle/6.0.1/executionHistory/executionHistory.lock create mode 100644 kotlin/resistor-color/.gradle/6.0.1/fileChanges/last-build.bin create mode 100644 kotlin/resistor-color/.gradle/6.0.1/fileContent/fileContent.lock create mode 100644 kotlin/resistor-color/.gradle/6.0.1/fileHashes/fileHashes.bin create mode 100644 kotlin/resistor-color/.gradle/6.0.1/fileHashes/fileHashes.lock create mode 100644 kotlin/resistor-color/.gradle/6.0.1/gc.properties create mode 100644 kotlin/resistor-color/.gradle/buildOutputCleanup/buildOutputCleanup.lock create mode 100644 kotlin/resistor-color/.gradle/buildOutputCleanup/cache.properties create mode 100644 kotlin/resistor-color/.gradle/buildOutputCleanup/outputFiles.bin create mode 100644 kotlin/resistor-color/.gradle/vcs-1/gc.properties create mode 100644 kotlin/resistor-color/.idea/.gitignore create mode 100644 kotlin/resistor-color/.idea/compiler.xml create mode 100644 kotlin/resistor-color/.idea/jarRepositories.xml create mode 100644 kotlin/resistor-color/.idea/misc.xml create mode 100644 kotlin/resistor-color/.idea/vcs.xml diff --git a/kotlin/resistor-color/.gradle/6.0.1/executionHistory/executionHistory.bin b/kotlin/resistor-color/.gradle/6.0.1/executionHistory/executionHistory.bin new file mode 100644 index 0000000000000000000000000000000000000000..08b40d9539f1ab032730554e164bbad1828c4614 GIT binary patch literal 55467 zcmeHQ37izg)!&}+KtOE5FTs3bf{}!v>^MF52u5L#0Fm8wcR|z<(ns}fvoqa8cMrR3 z^ovS37g$)9)94z-KsdZL`bAB?B%f%ApJE_JjDQi)h(aJDCW_`&AHy8Wxjo1x<Uj0)U$0(W?^Tr+6S};G!_+kd&3v^(yzVyskHpyZDw@p zr}p{5x5w3XyvlyC-V7f#!Va&hS`qIx=j~_B@bydVaQiQW-(bd(e+dEv0fGQQfFM8+ zAP5iy2m%BFf&f8)AV3fx2oMAa0t5kq06~BtKoB4Z5CjMU1Ob8oL4Y7Y5FiK;1PB5I z0fGQQfFM8+AP5iy2m%BFf&f8)AV3f(1Oon|qT(2QYVqf;DG7f{(KtOMi=lc^lQp@4 zO$t0WHDH!~L21$dC~BQ&GSWGfm1ND+py+W)_SC7Y5Jw)J)fzO<_l&R-C6SckXi_QS z6_wSIK(}7jHuQtKdv02C@8t`cu4w)tqtey2(>PiK(ellWs`kwbT45ALDD5fX5(Ynsq9!qNX3!no-U{2 zad$f#k6+KKvLx4OBeXJARaDJALuBI`axa27rO~W-70WlUbtpTkLa9+wDv!zm5+JCn zDFmhAOw~wB#r0~Wr&PJNIhoGa!X~BhNY#KFi-A^F(~yeU(||MNo*74VEZ^*2%-18n zp{kz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pQHdRRu%bv2|542GS=0u&Xkdl0P3(HGa^>_!z#jK>cKg;V~ z8cwNe>U1=>V|n8q&vsQwyfeLi8q1q6Z4a1{Ym-Xy@M4xfs{HKt{6WqVnwwbOXL~0v zFm~Q8nj2XD{YY40o4lxt9hAuw-wjhU}gcbOJt_9Tye zWq22@|4AG4VTDnjEE^Z}c24s(MPIvmk&ydcGC6x)%udx=(TLT8FcH9b=>kc zC+6Uaj6AnXw6TwjVYkt;Ak&mW|2;jhBPRs7daHUI}&aX?otQxcB@qG?#0ur!THJmU~#} zJ4sg(LL2m%mGN1Yjp!=Thm%?QTt&_5#`~&-$l+s*=DwNyF;3jgUR=A@q?4(PUpg`Z Tx#v&*-1#={Ol}dH&AfjD^Yfyf literal 0 HcmV?d00001 diff --git a/kotlin/resistor-color/.gradle/6.0.1/fileHashes/fileHashes.lock b/kotlin/resistor-color/.gradle/6.0.1/fileHashes/fileHashes.lock new file mode 100644 index 0000000000000000000000000000000000000000..bf7a624667c6ce623affe7bd4b7038c01c3622ed GIT binary patch literal 17 UcmZSnJ9FKKHv5Wl1_%%W06?t-{r~^~ literal 0 HcmV?d00001 diff --git a/kotlin/resistor-color/.gradle/6.0.1/gc.properties b/kotlin/resistor-color/.gradle/6.0.1/gc.properties new file mode 100644 index 0000000..e69de29 diff --git a/kotlin/resistor-color/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/kotlin/resistor-color/.gradle/buildOutputCleanup/buildOutputCleanup.lock new file mode 100644 index 0000000000000000000000000000000000000000..02fbf80ee819d61bbc393645bc9fa6dfc86547fe GIT binary patch literal 17 UcmZR6vEft~+k&?-3=kj+06yIW^Z)<= literal 0 HcmV?d00001 diff --git a/kotlin/resistor-color/.gradle/buildOutputCleanup/cache.properties b/kotlin/resistor-color/.gradle/buildOutputCleanup/cache.properties new file mode 100644 index 0000000..d8eae64 --- /dev/null +++ b/kotlin/resistor-color/.gradle/buildOutputCleanup/cache.properties @@ -0,0 +1,2 @@ +#Thu Mar 05 17:39:23 EST 2020 +gradle.version=6.0.1 diff --git a/kotlin/resistor-color/.gradle/buildOutputCleanup/outputFiles.bin b/kotlin/resistor-color/.gradle/buildOutputCleanup/outputFiles.bin new file mode 100644 index 0000000000000000000000000000000000000000..42239931fe72e265fff3f139254c9a24b4bc353a GIT binary patch literal 18803 zcmeI&ODF_!9Ki8eDeG+&*6tREErcQm2N6-0%a&Jpq#WEN6cR;IC`CA^6>V{lHo1{k za*_ke>!uc0QY1O7S@ZuT?Zr|0PR-1}@BC+)|K~bWp=s8HfZDY0E$Ms62mu5TKmY** z5I_I{1Q0*~0R#|0009ILKmY**{)<4pzK|$mG1i>0;2^$V)AC~Ufn}=RmOh`-(_mb7 z)ynq+Ph|DW#Gdm}b)WQ=h34|n)v<1)S4Bu)4>(*yeT^p7+oWHg-deIQ>*V>b((nB{ z-dy{~nVO$1{W-Jde%xz`RlQhxU~_l&`0BxHbXU9d@QWiyhV$u0^?vEmHh-dTt)o}< zbLnx`XWRSYp-pvRAV?7zIFseUKDS8FO= zo_;J*{XqI)tGQrcCwWdiKUMnh$eq2btVo>8q{~^;Ol!tH91%bO0R#|0009ILKmY** z5I_I{1Q0*~0R#|0009ILKmY**5I_I{1Q0*~0R#|0009ILKmY**5HJJ^^i!n12Y=!> a1rKpQiXQ%W34Q0^l+bmB-W59Mt9$}uwe7k9 literal 0 HcmV?d00001 diff --git a/kotlin/resistor-color/.gradle/vcs-1/gc.properties b/kotlin/resistor-color/.gradle/vcs-1/gc.properties new file mode 100644 index 0000000..e69de29 diff --git a/kotlin/resistor-color/.idea/.gitignore b/kotlin/resistor-color/.idea/.gitignore new file mode 100644 index 0000000..73f69e0 --- /dev/null +++ b/kotlin/resistor-color/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/kotlin/resistor-color/.idea/compiler.xml b/kotlin/resistor-color/.idea/compiler.xml new file mode 100644 index 0000000..7e7ee62 --- /dev/null +++ b/kotlin/resistor-color/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/kotlin/resistor-color/.idea/jarRepositories.xml b/kotlin/resistor-color/.idea/jarRepositories.xml new file mode 100644 index 0000000..efa4625 --- /dev/null +++ b/kotlin/resistor-color/.idea/jarRepositories.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/kotlin/resistor-color/.idea/misc.xml b/kotlin/resistor-color/.idea/misc.xml new file mode 100644 index 0000000..b9d0e72 --- /dev/null +++ b/kotlin/resistor-color/.idea/misc.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/kotlin/resistor-color/.idea/vcs.xml b/kotlin/resistor-color/.idea/vcs.xml new file mode 100644 index 0000000..b2bdec2 --- /dev/null +++ b/kotlin/resistor-color/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/kotlin/resistor-color/src/main/kotlin/ResistorColor.kt b/kotlin/resistor-color/src/main/kotlin/ResistorColor.kt index bf94e13..bb7d088 100644 --- a/kotlin/resistor-color/src/main/kotlin/ResistorColor.kt +++ b/kotlin/resistor-color/src/main/kotlin/ResistorColor.kt @@ -1,11 +1,20 @@ object ResistorColor { fun colorCode(input: String): Int { - TODO("Implement this to complete the task") - } - - fun colors(): List { - TODO("Implement this to complete the task") + return when (input) { + "black" -> 0 + "brown" -> 1 + "red" -> 2 + "orange" -> 3 + "yellow" -> 4 + "green" -> 5 + "blue" -> 6 + "violet" -> 7 + "grey" -> 8 + "white" -> 9 + else -> throw IllegalArgumentException() + } } + fun colors(): List = listOf("black", "brown", "red", "orange", "yellow", "green", "blue", "violet", "grey", "white") }