From ad624163d99d7ca0b2803064a6fd11f6c7b7a2ad Mon Sep 17 00:00:00 2001 From: "anthony.cicchetti" Date: Mon, 5 Jun 2017 09:20:35 -0400 Subject: [PATCH] Kotlin - Bob Complete --- .../.gradle/3.5/file-changes/last-build.bin | Bin 0 -> 1 bytes .../.gradle/3.5/taskHistory/taskHistory.lock | Bin 0 -> 17 bytes .../bob/.gradle/buildOutputCleanup/built.bin | 0 .../buildOutputCleanup/cache.properties | 2 + .../buildOutputCleanup/cache.properties.lock | 1 + kotlin/bob/.idea/compiler.xml | 9 + kotlin/bob/.idea/gradle.xml | 19 + .../libraries/Gradle__junit_junit_4_12.xml | 11 + ...Gradle__org_hamcrest_hamcrest_core_1_3.xml | 11 + ...Gradle__org_jetbrains_annotations_13_0.xml | 11 + ...g_jetbrains_kotlin_kotlin_stdlib_1_1_1.xml | 11 + ...org_jetbrains_kotlin_kotlin_test_1_1_1.xml | 11 + ...tbrains_kotlin_kotlin_test_junit_1_1_1.xml | 11 + kotlin/bob/.idea/misc.xml | 22 + kotlin/bob/.idea/modules.xml | 10 + kotlin/bob/.idea/modules/bob_main.iml | 40 + kotlin/bob/.idea/modules/bob_test.iml | 46 + kotlin/bob/.idea/workspace.xml | 1029 +++++++++++++++++ kotlin/bob/README.md | 20 + kotlin/bob/bob.iml | 12 + kotlin/bob/build.gradle | 28 + kotlin/bob/build/classes/main/Bob.class | Bin 0 -> 1819 bytes kotlin/bob/build/classes/main/BobKt.class | Bin 0 -> 1469 bytes .../main/META-INF/bob_main.kotlin_module | Bin 0 -> 27 bytes kotlin/bob/build/classes/test/BobTest.class | Bin 0 -> 3502 bytes .../bob/build/kotlin-build/caches/version.txt | 1 + kotlin/bob/src/main/kotlin/.keep | 0 kotlin/bob/src/main/kotlin/Bob.kt | 20 + kotlin/bob/src/test/kotlin/BobTest.kt | 114 ++ kotlin/hamming/.idea/workspace.xml | 4 +- kotlin/isogram/.idea/workspace.xml | 85 +- 31 files changed, 1503 insertions(+), 25 deletions(-) create mode 100644 kotlin/bob/.gradle/3.5/file-changes/last-build.bin create mode 100644 kotlin/bob/.gradle/3.5/taskHistory/taskHistory.lock create mode 100644 kotlin/bob/.gradle/buildOutputCleanup/built.bin create mode 100644 kotlin/bob/.gradle/buildOutputCleanup/cache.properties create mode 100644 kotlin/bob/.gradle/buildOutputCleanup/cache.properties.lock create mode 100644 kotlin/bob/.idea/compiler.xml create mode 100644 kotlin/bob/.idea/gradle.xml create mode 100644 kotlin/bob/.idea/libraries/Gradle__junit_junit_4_12.xml create mode 100644 kotlin/bob/.idea/libraries/Gradle__org_hamcrest_hamcrest_core_1_3.xml create mode 100644 kotlin/bob/.idea/libraries/Gradle__org_jetbrains_annotations_13_0.xml create mode 100644 kotlin/bob/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_1_1_1.xml create mode 100644 kotlin/bob/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_test_1_1_1.xml create mode 100644 kotlin/bob/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_test_junit_1_1_1.xml create mode 100644 kotlin/bob/.idea/misc.xml create mode 100644 kotlin/bob/.idea/modules.xml create mode 100644 kotlin/bob/.idea/modules/bob_main.iml create mode 100644 kotlin/bob/.idea/modules/bob_test.iml create mode 100644 kotlin/bob/.idea/workspace.xml create mode 100644 kotlin/bob/README.md create mode 100644 kotlin/bob/bob.iml create mode 100644 kotlin/bob/build.gradle create mode 100644 kotlin/bob/build/classes/main/Bob.class create mode 100644 kotlin/bob/build/classes/main/BobKt.class create mode 100644 kotlin/bob/build/classes/main/META-INF/bob_main.kotlin_module create mode 100644 kotlin/bob/build/classes/test/BobTest.class create mode 100644 kotlin/bob/build/kotlin-build/caches/version.txt create mode 100644 kotlin/bob/src/main/kotlin/.keep create mode 100644 kotlin/bob/src/main/kotlin/Bob.kt create mode 100644 kotlin/bob/src/test/kotlin/BobTest.kt diff --git a/kotlin/bob/.gradle/3.5/file-changes/last-build.bin b/kotlin/bob/.gradle/3.5/file-changes/last-build.bin new file mode 100644 index 0000000000000000000000000000000000000000..f76dd238ade08917e6712764a16a22005a50573d GIT binary patch literal 1 IcmZPo000310RR91 literal 0 HcmV?d00001 diff --git a/kotlin/bob/.gradle/3.5/taskHistory/taskHistory.lock b/kotlin/bob/.gradle/3.5/taskHistory/taskHistory.lock new file mode 100644 index 0000000000000000000000000000000000000000..d663544dfecb97a518e486ba75552062e0818162 GIT binary patch literal 17 TcmZRcoiWq>zNpVc1}FdkFL497 literal 0 HcmV?d00001 diff --git a/kotlin/bob/.gradle/buildOutputCleanup/built.bin b/kotlin/bob/.gradle/buildOutputCleanup/built.bin new file mode 100644 index 0000000..e69de29 diff --git a/kotlin/bob/.gradle/buildOutputCleanup/cache.properties b/kotlin/bob/.gradle/buildOutputCleanup/cache.properties new file mode 100644 index 0000000..41324be --- /dev/null +++ b/kotlin/bob/.gradle/buildOutputCleanup/cache.properties @@ -0,0 +1,2 @@ +#Mon Jun 05 09:11:09 EDT 2017 +gradle.version=3.5 diff --git a/kotlin/bob/.gradle/buildOutputCleanup/cache.properties.lock b/kotlin/bob/.gradle/buildOutputCleanup/cache.properties.lock new file mode 100644 index 0000000..40fdece --- /dev/null +++ b/kotlin/bob/.gradle/buildOutputCleanup/cache.properties.lock @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/kotlin/bob/.idea/compiler.xml b/kotlin/bob/.idea/compiler.xml new file mode 100644 index 0000000..bc5d724 --- /dev/null +++ b/kotlin/bob/.idea/compiler.xml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/kotlin/bob/.idea/gradle.xml b/kotlin/bob/.idea/gradle.xml new file mode 100644 index 0000000..346dc7e --- /dev/null +++ b/kotlin/bob/.idea/gradle.xml @@ -0,0 +1,19 @@ + + + + + + \ No newline at end of file diff --git a/kotlin/bob/.idea/libraries/Gradle__junit_junit_4_12.xml b/kotlin/bob/.idea/libraries/Gradle__junit_junit_4_12.xml new file mode 100644 index 0000000..04c10dd --- /dev/null +++ b/kotlin/bob/.idea/libraries/Gradle__junit_junit_4_12.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/kotlin/bob/.idea/libraries/Gradle__org_hamcrest_hamcrest_core_1_3.xml b/kotlin/bob/.idea/libraries/Gradle__org_hamcrest_hamcrest_core_1_3.xml new file mode 100644 index 0000000..8262f72 --- /dev/null +++ b/kotlin/bob/.idea/libraries/Gradle__org_hamcrest_hamcrest_core_1_3.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/kotlin/bob/.idea/libraries/Gradle__org_jetbrains_annotations_13_0.xml b/kotlin/bob/.idea/libraries/Gradle__org_jetbrains_annotations_13_0.xml new file mode 100644 index 0000000..4f32fde --- /dev/null +++ b/kotlin/bob/.idea/libraries/Gradle__org_jetbrains_annotations_13_0.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/kotlin/bob/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_1_1_1.xml b/kotlin/bob/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_1_1_1.xml new file mode 100644 index 0000000..7b6f562 --- /dev/null +++ b/kotlin/bob/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_stdlib_1_1_1.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/kotlin/bob/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_test_1_1_1.xml b/kotlin/bob/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_test_1_1_1.xml new file mode 100644 index 0000000..1720158 --- /dev/null +++ b/kotlin/bob/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_test_1_1_1.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/kotlin/bob/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_test_junit_1_1_1.xml b/kotlin/bob/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_test_junit_1_1_1.xml new file mode 100644 index 0000000..21c5d19 --- /dev/null +++ b/kotlin/bob/.idea/libraries/Gradle__org_jetbrains_kotlin_kotlin_test_junit_1_1_1.xml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/kotlin/bob/.idea/misc.xml b/kotlin/bob/.idea/misc.xml new file mode 100644 index 0000000..3e1805e --- /dev/null +++ b/kotlin/bob/.idea/misc.xml @@ -0,0 +1,22 @@ + + + + + + + + + + 1.8 + + + + + + + + \ No newline at end of file diff --git a/kotlin/bob/.idea/modules.xml b/kotlin/bob/.idea/modules.xml new file mode 100644 index 0000000..6cb0457 --- /dev/null +++ b/kotlin/bob/.idea/modules.xml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/kotlin/bob/.idea/modules/bob_main.iml b/kotlin/bob/.idea/modules/bob_main.iml new file mode 100644 index 0000000..453d295 --- /dev/null +++ b/kotlin/bob/.idea/modules/bob_main.iml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/kotlin/bob/.idea/modules/bob_test.iml b/kotlin/bob/.idea/modules/bob_test.iml new file mode 100644 index 0000000..29e7518 --- /dev/null +++ b/kotlin/bob/.idea/modules/bob_test.iml @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/kotlin/bob/.idea/workspace.xml b/kotlin/bob/.idea/workspace.xml new file mode 100644 index 0000000..a4380f3 --- /dev/null +++ b/kotlin/bob/.idea/workspace.xml @@ -0,0 +1,1029 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @Ignore + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1496668259211 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/kotlin/bob/README.md b/kotlin/bob/README.md new file mode 100644 index 0000000..3da2d30 --- /dev/null +++ b/kotlin/bob/README.md @@ -0,0 +1,20 @@ +# Bob + +Bob is a lackadaisical teenager. In conversation, his responses are very limited. + +Bob answers 'Sure.' if you ask him a question. + +He answers 'Whoa, chill out!' if you yell at him. + +He says 'Fine. Be that way!' if you address him without actually saying +anything. + +He answers 'Whatever.' to anything else. + +## Source + +Inspired by the 'Deaf Grandma' exercise in Chris Pine's Learn to Program tutorial. [http://pine.fm/LearnToProgram/?Chapter=06](http://pine.fm/LearnToProgram/?Chapter=06) + +## Submitting Incomplete Solutions +It's possible to submit an incomplete solution so you can see how others have completed the exercise. + diff --git a/kotlin/bob/bob.iml b/kotlin/bob/bob.iml new file mode 100644 index 0000000..cc2459c --- /dev/null +++ b/kotlin/bob/bob.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/kotlin/bob/build.gradle b/kotlin/bob/build.gradle new file mode 100644 index 0000000..16c36c0 --- /dev/null +++ b/kotlin/bob/build.gradle @@ -0,0 +1,28 @@ +buildscript { + ext.kotlin_version = '1.1.1' + repositories { + mavenCentral() + } + dependencies { + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" + } +} + +apply plugin: 'kotlin' + +repositories { + mavenCentral() +} + +dependencies { + compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" + + testCompile 'junit:junit:4.12' + testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version" +} +test { + testLogging { + exceptionFormat = 'full' + events = ["passed", "failed", "skipped"] + } +} diff --git a/kotlin/bob/build/classes/main/Bob.class b/kotlin/bob/build/classes/main/Bob.class new file mode 100644 index 0000000000000000000000000000000000000000..6d6d94a64e8ac87e6ebabeb7bcd220e0c001b3fa GIT binary patch literal 1819 zcmah~TTdHD6#ixn_OdYqTtXm(#0fOp`y`b1TUpjN6-`qtl6RXyW1U`nJ)-kEcmIp>@2oEiW1&u@PK$fCj!m~=`Z zFoy08zRlAXx7X7Pr43P*Aq2=>6}t?#Vue$0QM#tRJ{~`BVi+zs?s|Gd$db!V+e>rX zb|jakL-M>M=j)a=&d_1nTYeNBI>WV1M_Q(x-q^0COUD#z2LN~*uCK@Sr zWZFmR%@P?AhBks!W5~8VH}rY%y@NfDJ*E~DS`-5WY?GF*_(v#l-R=C~)q z7*XMe@IFHs*96Kgc0}o zP0$g!E2du7x%I#0X%;NL8pbF-P~}N6v{O$i%EuTwO>e=rcIWH0l5jn$PAm65)N!>r ziw_NC@DWkAQg!%fv|KeUE9%rGF>sfGJ<@THoWibnE2gZDRK$0@Zb^pmcSJnjKdbo` zTMOv>7*}O|K%k3tSEO`2r2bwZ_QkevN&QT<4UtR>3Un;${zyxt<_V~z4@}#Xw3kXs ztvZEi)d5e4%KUtBX<|M%6-FMp4rrJm~2@{+t)!AwvuI(1bWFSy{OT3HwYXd4$?7Go5XBe&Z!7>UZ>2hW$v21WQip; zFkCE9r}|ZGS~`o8mpAA5R#P8*TDPTH6M1{v^i0|`ar%}pjQrPo@-&=TW)z*eTNcx% z%Gv8Hk434zKD8qSy)KT;FwhLOd@c<<xuhha6DslN3M?+7YCAjkKRhRwU0PBOQmh zn4B9uLeC*CA7JnRH-1DgGQ3a51KfHZi5()DJVg2xI%&G2oFDHeBcBA?*&#lCMe3vd z$i#jl$5%A=QErNi$wpo!>3B>?z9#EUl7k4*L!o0322%9hp}TVrowTM4PYC5Vw9Y`_ zZw!VobhQgFNDtEf5Y6Ax7ov7(D4OavlGTCk(o97~IPnIbCyt=~irHUC*PtMUeP0uj z0-^$fNYGI@iE+JQqXfT0dxPg{yN~*KaR8ib8dg!F`C)NxV$tw>#+YsV6BvnN^jMlU zlF>}G>88m@6pYMpW;8o?KVu}O43sHGo-)i4jQKSL@>pp67V*Wg_LK}Ls$ppj%)>J* UuOZ|i=V8Uew1@VFpnLf8UyV7j3jhEB literal 0 HcmV?d00001 diff --git a/kotlin/bob/build/classes/main/BobKt.class b/kotlin/bob/build/classes/main/BobKt.class new file mode 100644 index 0000000000000000000000000000000000000000..997526351f6363e1be08d6941a2886b2b30ab5ef GIT binary patch literal 1469 zcmah}QBNC35dQYg_Bn?M4v9&iA-KT_U}%i5ElF`oAO>0&L!!FkAv~b@B@b2eEq_%p?vAKDhn?dX6v5c zDxC<`^tp6{5_ersaV0%E?|Evk>o^sLD+OQJLiU88Mw;PH+f$BoODDZfNxDk-E_X^b zH$)Aj9T+efZraDfZa?Qf?+CJ}1u+`K+%T0s<;r`=?Prj|sEH9=Wtg}iUp?l2Lww&A zt}P5?DYcl55-(M$pIQ*U%{W6^QfRI`pP@1wbr_?vP>%s@&vEGeqTEA^TI^iO;0AIg zu495>=6{S0++r|}d9X)x81(st7a2_90~3?DO^jSphv3mwHG?~t39s@D*DvSDZ3=JT zE}_X_Q??|bCFZLkTmkn?%;J8SU{Du|3^SPTD;F5F(3Djf%z`ZNLb<>lhZHqZ2uE~; zs|vEmka<_sNW3*vgG=v2Q3&VTKFauzRoq4l*9I@RD-=KCic`yIot{qJ%EBc@Vlxs! zJldg3Bh^uv;qLjXjCuab)UqS=U8UocnWaTrW<_mT`{Sn+HM4ePF@i$6=`{~K)Taz7 z8h{7w@JXuPkzg3Fdp39Wxi5Ls5#NLh!&qIqqCWz$X0)NW-QMNj#d6{6uB&86)ZCs7 zBssln*o})ppm%F{UEdblGDN-67dAz++uC}m1ogZ}j3#5K{XWo;Kg!UMprpebCXqyn z&M;Oyrl($F!88`JM3KYOM|eQG+n7U%bUKaIV=NOh7M(1*H9{uD z=VRJ8>6;?^km(3=grE_YMm`$0F@de<-gtwofoldP-%>L&rmwTqKhV}0*#HLBIs(=4 z1&JCq2p;&QvAgly?3d5niT+5;Vk18|ZJUevaz4JMZAX#9${)sqO*J>;3A{Y-hlc|b z@+j8L@@#p@T3#)ikID~cttD&KDx1Zvi%3!V%;I~(k+T&##~!E=>2*rw6RO;&2heL+ hiGC09Xdrz?3ar*p!Q%t40H0&+0Eqy}08gUd`hWJqWxN0Y literal 0 HcmV?d00001 diff --git a/kotlin/bob/build/classes/main/META-INF/bob_main.kotlin_module b/kotlin/bob/build/classes/main/META-INF/bob_main.kotlin_module new file mode 100644 index 0000000000000000000000000000000000000000..1dd8fc6000e34438daa18631793a4a4f400df5d5 GIT binary patch literal 27 ccmZQzU|?ooU|@t|HZD#s1|e3b{3P!Z00+YY5&!@I literal 0 HcmV?d00001 diff --git a/kotlin/bob/build/classes/test/BobTest.class b/kotlin/bob/build/classes/test/BobTest.class new file mode 100644 index 0000000000000000000000000000000000000000..dcf5360ab69557130c61c660985b0f0aaa4a6d69 GIT binary patch literal 3502 zcmb7`-&Yey6vyub2q9t(KNPh77{nidKn!ASMTHOpL;|TKfJlp-Btx>W*~OiWHg7)k z&+w_I4}EPP+MYi2c=WCRME{eXes>8gUBkofA-i|(-ucX(d+*-i?|=XNi-@LZpHb($ zSu99pcM@Y1+Y_%uTo*2Uno(iYHZr;a)2wM#;(K*Nv*XVE z8Ae^3Rbk6l(wdA=1a=^IQj}37vzjj?S5s+59a$)6x~ZE^chM>OjL~4htWAin4jgxf_jqLkdyd1E-KGymt|P*Hb17Nig{3rKN@uftGrgAPTe)>;GONp()kSP# z3ZXoTJ@$?OVcx04IG-Blclcrs&fbN>H1vk|y0iH@LSHf(c-hRrre;@j$IU|1;NwHM zbi{Wou)mTf^i)+?qGY?PO+3%7EV^D^-x-@5zBV$p!=akbr1Lxpk5jo7_&PL{NZ<#5 z9x>`Wj$E(lqHa5Ge|Wo+{qVzww}m{+l8nxmgkIAdSW`Gza@O}5|I{>o>~nL~On+a} zMNK%hwIVFEhG>Q(nr;9iw8-d+vhjV_q+zE_!xox>6^>$mIO9s%C_~9#V_iOrniGcN zf*%D8d3yq<4=iCjA7>?pBEGRHG<%3Iq33YZnB+-Iy6LZ&4hT6fN)!d+x`JM%G+i1c z$*6ZhGvp+nmnaG0R7nH-|C$j+XbrvTz%q5ysK|2uXhJ*36`^%T;RkTse$-8y6pm6m zJwqjBo84kX+M+CMfgFZvuiDTfnR5$cSagTPh#@kea)Qx6@80xBLxZ7cDE976G!$_J z{35-B@7_#>ZnOE0_dkZAdJ>7XT?pN7U+RR^;Yndn>hz?DCv|yJ)RRtmQnx3a_N31| z>5M1EJgLW%dOfMnllndB?4k7j=P=r2sEm&#QZ$P%YREPUqS?MC_t7ldQ)b!8MAk&j zZ3s&fMO_x08$Pfs(sTIrG&Sef>V~b=knOt|&nvgnzJmCp3`{6=S4C;Njw{{_krRdDYyQ54QkccfdCTfX@Lu-~*4G1Re_jz6kIoANW=aup8rv z0N|?t5BtEACxLGV0FMAX>H{ZQfZgQX2>_l1IPL>ap9KCQ0C*bUyFT!}7GO8VUj+c) z2YAK@zTX1umfM2>;5mSkKJdd9U^m9I0l*6YFZ#f9CxPb!fU^Lv_`sz}XgHw<=ZxfXe_&A2`-#J0zcseIY$Jp<* - + @@ -879,35 +882,35 @@ - + - - + + - + - + - + - + - + - - - + + + @@ -923,6 +926,33 @@