From 5e2a657340f9a7f441341efe9593e04de1190950 Mon Sep 17 00:00:00 2001 From: abassawo Date: Thu, 30 Apr 2015 21:39:43 -0400 Subject: [PATCH 1/6] 04-30-2015_AB --- .DS_Store | Bin 0 -> 12292 bytes exercises/5_OOP-and-Intents/oop/oop.iml | 11 + .../5_OOP-and-Intents/oop/src/Clarinet.java | 22 + .../oop/src/ClarinetPlayer.java | 32 + .../oop/src/ReedInstrument.java | 20 + .../5_OOP-and-Intents/oop/src/ReedPlayer.java | 20 + homework/week-0/.DS_Store | Bin 0 -> 6148 bytes homework/week-0/abassBayoAwoyemi/.DS_Store | Bin 0 -> 6148 bytes .../abassBayoAwoyemi/.idea/compiler.xml | 23 + .../.idea/copyright/profiles_settings.xml | 3 + .../abassBayoAwoyemi/.idea/description.html | 1 + .../abassBayoAwoyemi/.idea/encodings.xml | 4 + .../week-0/abassBayoAwoyemi/.idea/misc.xml | 12 + .../week-0/abassBayoAwoyemi/.idea/modules.xml | 8 + .../.idea/project-template.xml | 3 + .../.idea/scopes/scope_settings.xml | 5 + .../week-0/abassBayoAwoyemi/.idea/vcs.xml | 6 + .../abassBayoAwoyemi/.idea/workspace.xml | 718 ++++++++++++++++++ .../abassBayoAwoyemi/abassBayoAwoyemi.iml | 12 + .../nyc/c4q/abassawo/Animal.class | Bin 0 -> 1270 bytes .../nyc/c4q/abassawo/Card$rank.class | Bin 0 -> 1517 bytes .../nyc/c4q/abassawo/Card.class | Bin 0 -> 801 bytes .../nyc/c4q/abassawo/Domestic.class | Bin 0 -> 239 bytes .../nyc/c4q/abassawo/DomesticDog.class | Bin 0 -> 1129 bytes .../nyc/c4q/abassawo/Game.class | Bin 0 -> 291 bytes .../nyc/c4q/abassawo/Main.class | Bin 0 -> 2103 bytes .../nyc/c4q/abassawo/PlayingCards.class | Bin 0 -> 1346 bytes .../src/nyc/c4q/abassawo/Animal.java | 55 ++ .../src/nyc/c4q/abassawo/Card.java | 50 ++ .../src/nyc/c4q/abassawo/Domestic.java | 17 + .../src/nyc/c4q/abassawo/DomesticDog.java | 56 ++ .../src/nyc/c4q/abassawo/Game.java | 9 + .../src/nyc/c4q/abassawo/Main.java | 40 + .../src/nyc/c4q/abassawo/PlayingCards.java | 51 ++ review/.DS_Store | Bin 0 -> 8196 bytes 35 files changed, 1178 insertions(+) create mode 100644 .DS_Store create mode 100644 exercises/5_OOP-and-Intents/oop/oop.iml create mode 100644 exercises/5_OOP-and-Intents/oop/src/Clarinet.java create mode 100644 exercises/5_OOP-and-Intents/oop/src/ClarinetPlayer.java create mode 100644 exercises/5_OOP-and-Intents/oop/src/ReedInstrument.java create mode 100644 exercises/5_OOP-and-Intents/oop/src/ReedPlayer.java create mode 100644 homework/week-0/.DS_Store create mode 100644 homework/week-0/abassBayoAwoyemi/.DS_Store create mode 100644 homework/week-0/abassBayoAwoyemi/.idea/compiler.xml create mode 100644 homework/week-0/abassBayoAwoyemi/.idea/copyright/profiles_settings.xml create mode 100644 homework/week-0/abassBayoAwoyemi/.idea/description.html create mode 100644 homework/week-0/abassBayoAwoyemi/.idea/encodings.xml create mode 100644 homework/week-0/abassBayoAwoyemi/.idea/misc.xml create mode 100644 homework/week-0/abassBayoAwoyemi/.idea/modules.xml create mode 100644 homework/week-0/abassBayoAwoyemi/.idea/project-template.xml create mode 100644 homework/week-0/abassBayoAwoyemi/.idea/scopes/scope_settings.xml create mode 100644 homework/week-0/abassBayoAwoyemi/.idea/vcs.xml create mode 100644 homework/week-0/abassBayoAwoyemi/.idea/workspace.xml create mode 100644 homework/week-0/abassBayoAwoyemi/abassBayoAwoyemi.iml create mode 100644 homework/week-0/abassBayoAwoyemi/out/production/abassBayoAwoyemi/nyc/c4q/abassawo/Animal.class create mode 100644 homework/week-0/abassBayoAwoyemi/out/production/abassBayoAwoyemi/nyc/c4q/abassawo/Card$rank.class create mode 100644 homework/week-0/abassBayoAwoyemi/out/production/abassBayoAwoyemi/nyc/c4q/abassawo/Card.class create mode 100644 homework/week-0/abassBayoAwoyemi/out/production/abassBayoAwoyemi/nyc/c4q/abassawo/Domestic.class create mode 100644 homework/week-0/abassBayoAwoyemi/out/production/abassBayoAwoyemi/nyc/c4q/abassawo/DomesticDog.class create mode 100644 homework/week-0/abassBayoAwoyemi/out/production/abassBayoAwoyemi/nyc/c4q/abassawo/Game.class create mode 100644 homework/week-0/abassBayoAwoyemi/out/production/abassBayoAwoyemi/nyc/c4q/abassawo/Main.class create mode 100644 homework/week-0/abassBayoAwoyemi/out/production/abassBayoAwoyemi/nyc/c4q/abassawo/PlayingCards.class create mode 100644 homework/week-0/abassBayoAwoyemi/src/nyc/c4q/abassawo/Animal.java create mode 100644 homework/week-0/abassBayoAwoyemi/src/nyc/c4q/abassawo/Card.java create mode 100644 homework/week-0/abassBayoAwoyemi/src/nyc/c4q/abassawo/Domestic.java create mode 100644 homework/week-0/abassBayoAwoyemi/src/nyc/c4q/abassawo/DomesticDog.java create mode 100644 homework/week-0/abassBayoAwoyemi/src/nyc/c4q/abassawo/Game.java create mode 100644 homework/week-0/abassBayoAwoyemi/src/nyc/c4q/abassawo/Main.java create mode 100644 homework/week-0/abassBayoAwoyemi/src/nyc/c4q/abassawo/PlayingCards.java create mode 100644 review/.DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..a005452b9fbf82dc8a36e3cf601fd33d76c4b90d GIT binary patch literal 12292 zcmeHNYitx%6h5cVnak_86uOiYHZ2ueD{OgJUfTz+08(k8yvuHPgn{Wyv$Jh^SZ&lq zMU2J-Ur`eUdHpmJO-wYPB>Yel5fx&L8ugDcK7RT9;kozDF57Ku2!cGE+02}|k25p( z%(-*F^PL3%tnZ4|089Y@jdmgVaDW^J5FAE@v`w^&eZZDYHAp+@0iAOImwpb|;9Bm0 z-hPE|0p9{Qk_EEpVZ{8+p*j8VzqZ!k%UoaS)#MMK4I)m zh_j8Z6HheAj%}QGxyBlU`kCEEBlRZLLUE2v0vA2D(iXN9b&wcB*fsAa6}F=L4x8zOGIVaH5+`$jWn*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-vYh`ZcPhdPGfUpJ&i4y zeaIZ9$h8M)-$uLGM87^Ir3xLqbi8bnsd%dM{;DVI!qi>p^(iUUsI1ifvp)eyEa9*J S;vLZ2@Ynw`>;K>58wErF literal 0 HcmV?d00001 diff --git a/exercises/5_OOP-and-Intents/oop/oop.iml b/exercises/5_OOP-and-Intents/oop/oop.iml new file mode 100644 index 00000000..c90834f2 --- /dev/null +++ b/exercises/5_OOP-and-Intents/oop/oop.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/exercises/5_OOP-and-Intents/oop/src/Clarinet.java b/exercises/5_OOP-and-Intents/oop/src/Clarinet.java new file mode 100644 index 00000000..7938617e --- /dev/null +++ b/exercises/5_OOP-and-Intents/oop/src/Clarinet.java @@ -0,0 +1,22 @@ +/** + * Created by c4q-Abass on 4/30/15. + */ +public class Clarinet extends ReedInstrument { + + @Override + public String play() { + return "WOMP WOMP WOMPPPPPPP"; + } + + public Clarinet() { + this.hasReed(); + } + + public void toggleReed(){ + if (this.hasReed()){ + this.removeReed(); + } else { + this.placeReed(); + } + } +} diff --git a/exercises/5_OOP-and-Intents/oop/src/ClarinetPlayer.java b/exercises/5_OOP-and-Intents/oop/src/ClarinetPlayer.java new file mode 100644 index 00000000..a333cdd1 --- /dev/null +++ b/exercises/5_OOP-and-Intents/oop/src/ClarinetPlayer.java @@ -0,0 +1,32 @@ +/** + * Created by c4q-Abass on 4/30/15. + */ +import java.util.ArrayList; +public class ClarinetPlayer extends Musician { + Clarinet myClarinet = new Clarinet(); + + public ClarinetPlayer(Clarinet x){ + this.myClarinet = x; + } + + + +// +// public String play_instrument(Clarinet x) { +// if (!(x.hasReed())){ +// return null; +// } +// +// return null; +// } + + + @Override + public String play_instrument() { + if (myClarinet.hasReed()) { + return myClarinet.play(); + } else { + return null; + } + } +} diff --git a/exercises/5_OOP-and-Intents/oop/src/ReedInstrument.java b/exercises/5_OOP-and-Intents/oop/src/ReedInstrument.java new file mode 100644 index 00000000..ca66ff44 --- /dev/null +++ b/exercises/5_OOP-and-Intents/oop/src/ReedInstrument.java @@ -0,0 +1,20 @@ +/** + * Created by c4q-Abass on 4/30/15. + */ +public abstract class ReedInstrument implements Instrument { + private boolean reed; + + public boolean hasReed(){ + return this.reed; + } + + public void placeReed() { + this.reed = true; + } + + public void removeReed() { + this.reed = false; + } + + +} diff --git a/exercises/5_OOP-and-Intents/oop/src/ReedPlayer.java b/exercises/5_OOP-and-Intents/oop/src/ReedPlayer.java new file mode 100644 index 00000000..84d422d6 --- /dev/null +++ b/exercises/5_OOP-and-Intents/oop/src/ReedPlayer.java @@ -0,0 +1,20 @@ +/** + * Created by c4q-Abass on 4/30/15. + */ +abstract public class ReedPlayer extends Musician{ + ReedInstrument reedInstrument; + + + public ReedPlayer(ReedInstrument x){ + this.reedInstrument= x; + } + + + @Override + public String play_instrument() { + if(this.reedInstrument.hasReed()){ + return this.play_instrument(); + } else + return null; + } +} diff --git a/homework/week-0/.DS_Store b/homework/week-0/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..e5d889c411f67db248b5f0e6d3154e1d09fab2b0 GIT binary patch literal 6148 zcmeHK&1%~~5T141Moum&O-P{^T?;ulG;OYmk{kmDm4wn1SE@w4plXe^wlKk#VKQ@b9cWj|Zxbb)v^rl#HI4Uoy*6XZI34nA=a3Dz5A#J&}3c_csny zsS{b|qhC_bPGy;?I#S~@tIlG(-l@#=pzm+?M)?F&dr6s}$V#TNkb3HMX!QN9^Yh2M z-R)p^Z?+v+bMIkyHuEn%@BV{F`^Qg*vx_%x-@X6v@zduowm1U6V*YY%p zM`fYPR~Sp{TpwTQLQjXed|6KB8!<8i%m6d61P0t$=dCYcFW!O~UX9#Sk_f{eg=M9X1wiItbT%2)DCv z9f~l!^0FZine+Dc8EU1d2&V*?5WY<9i&xm4U^r&%%9Xgy(4D=V9bnZu-b3^U< ze9ixbtJvWI8$9Baxc)7<0xEyi_-B@ zl7VC(8At|_fuCT2XST}X&@pW?kPIXPpA6{!P^gMk;NWOm2aS~g#5tQy=#>-4yhc|CIiX9m;tSQDN8;7 zFZjz$7Wo#ECK*Tu{wo7AU)`)~t}f2jy>;qYTd22G6^$Fzq0k>)0{Ei)$gy>Le^H-t XRp8*LqiDOO6Z0ZqgrrFZeu05^l>RiF literal 0 HcmV?d00001 diff --git a/homework/week-0/abassBayoAwoyemi/.idea/compiler.xml b/homework/week-0/abassBayoAwoyemi/.idea/compiler.xml new file mode 100644 index 00000000..a8523149 --- /dev/null +++ b/homework/week-0/abassBayoAwoyemi/.idea/compiler.xml @@ -0,0 +1,23 @@ + + + + + \ No newline at end of file diff --git a/homework/week-0/abassBayoAwoyemi/.idea/copyright/profiles_settings.xml b/homework/week-0/abassBayoAwoyemi/.idea/copyright/profiles_settings.xml new file mode 100644 index 00000000..e7bedf33 --- /dev/null +++ b/homework/week-0/abassBayoAwoyemi/.idea/copyright/profiles_settings.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/homework/week-0/abassBayoAwoyemi/.idea/description.html b/homework/week-0/abassBayoAwoyemi/.idea/description.html new file mode 100644 index 00000000..db5f1295 --- /dev/null +++ b/homework/week-0/abassBayoAwoyemi/.idea/description.html @@ -0,0 +1 @@ +Simple Java application that includes a class with main() method \ No newline at end of file diff --git a/homework/week-0/abassBayoAwoyemi/.idea/encodings.xml b/homework/week-0/abassBayoAwoyemi/.idea/encodings.xml new file mode 100644 index 00000000..d8210482 --- /dev/null +++ b/homework/week-0/abassBayoAwoyemi/.idea/encodings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/homework/week-0/abassBayoAwoyemi/.idea/misc.xml b/homework/week-0/abassBayoAwoyemi/.idea/misc.xml new file mode 100644 index 00000000..ccf24ce4 --- /dev/null +++ b/homework/week-0/abassBayoAwoyemi/.idea/misc.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/homework/week-0/abassBayoAwoyemi/.idea/modules.xml b/homework/week-0/abassBayoAwoyemi/.idea/modules.xml new file mode 100644 index 00000000..73f2dd57 --- /dev/null +++ b/homework/week-0/abassBayoAwoyemi/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/homework/week-0/abassBayoAwoyemi/.idea/project-template.xml b/homework/week-0/abassBayoAwoyemi/.idea/project-template.xml new file mode 100644 index 00000000..1f08b887 --- /dev/null +++ b/homework/week-0/abassBayoAwoyemi/.idea/project-template.xml @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/homework/week-0/abassBayoAwoyemi/.idea/scopes/scope_settings.xml b/homework/week-0/abassBayoAwoyemi/.idea/scopes/scope_settings.xml new file mode 100644 index 00000000..922003b8 --- /dev/null +++ b/homework/week-0/abassBayoAwoyemi/.idea/scopes/scope_settings.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/homework/week-0/abassBayoAwoyemi/.idea/vcs.xml b/homework/week-0/abassBayoAwoyemi/.idea/vcs.xml new file mode 100644 index 00000000..6564d52d --- /dev/null +++ b/homework/week-0/abassBayoAwoyemi/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/homework/week-0/abassBayoAwoyemi/.idea/workspace.xml b/homework/week-0/abassBayoAwoyemi/.idea/workspace.xml new file mode 100644 index 00000000..2d266879 --- /dev/null +++ b/homework/week-0/abassBayoAwoyemi/.idea/workspace.xml @@ -0,0 +1,718 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1430353406797 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/homework/week-0/abassBayoAwoyemi/abassBayoAwoyemi.iml b/homework/week-0/abassBayoAwoyemi/abassBayoAwoyemi.iml new file mode 100644 index 00000000..d5c07432 --- /dev/null +++ b/homework/week-0/abassBayoAwoyemi/abassBayoAwoyemi.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/homework/week-0/abassBayoAwoyemi/out/production/abassBayoAwoyemi/nyc/c4q/abassawo/Animal.class b/homework/week-0/abassBayoAwoyemi/out/production/abassBayoAwoyemi/nyc/c4q/abassawo/Animal.class new file mode 100644 index 0000000000000000000000000000000000000000..be2d57c0241471e9aa88d69c0a4122331939338e GIT binary patch literal 1270 zcmaKrOK;Oa6ot>^VPnUnX-Hqt7HE0o0d=9-wM0~rDj`MfB2^dNO^g*>C3b5&ynYi4 zkRV7b5Nm!E;*LEeu1mVeo$;MJXTCXe^ZU<_p8$5y)S=;#1{IG*sOl7II_hYM@I=K^ zk=asVs@P^I1n0Kp*ufzm+6?8+8Gp;o0eAamH}oC1zsrzwqcvsEahLj|_@^G2#Ov zzOME(1%1>zv#oGfXk^}#w@EkU8iUq#`YsPgK3UaHpv!_prX3Lr6ZdBFw#YcW>y3QN zK5&Hlh1kz6@s0+Hm@{w_hJk_zOITL%%)o6tH?W2shNT(rA!_b0l&0+v^D$JWsVU&4 z%D8b--pFne-duX`$33wV+n$cY-mZB!7N1`!b{|@$rCK=3A z6dOSsbF`^UGb1j-EmY`B2rNi}1F96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oyemi/nyc/c4q/abassawo/Card.class b/homework/week-0/abassBayoAwoyemi/out/production/abassBayoAwoyemi/nyc/c4q/abassawo/Card.class new file mode 100644 index 0000000000000000000000000000000000000000..ce96c4627435dd586492b4e5b048e84dd3e953b6 GIT binary patch literal 801 zcmZuvTTc@~7(LV5PRrKTL99hoP?WYR3$)w>5v(zyjmE5LvhiuU-QYsm%C^<`vwScn zM*RW)DB~IGi$XT%%zT&m=A7OA_50gT0Chahp@gc1n#5g+dlL607PGhvM`B50Sz<+^ zF42%!l~|Klm)MZllz1SqC9!RKA6nS4@W{fhKq}VJk$}A)MM2!`>A@fv2#9@F2BUB& zF!{E1s6S|@r=tVM9mZjFuqBW-$Jm(J4x@0mBd}08+jcfnZF6q3-wgx`tuP8+j*dG) z{6=?r%&1o1*S)rmLlgf^riSlA-cxEtpM1w}oH)8ejrwEXY3jI3CF<-g0y(!oiv8ee zXy#^3=b|xT;|BHwivJs;pJ#!N>DGD@>f?UYH8Ojn4h!yk-3@Ha;F>^k&*wa`Lez-{ zu}Z8F>%<1JDUeuR;_(-JQ9S;76a*2&=h{EAaotRrI@iiSvR-u#1D|rH&uyI_f3swz z+QuBeXNkW?5($)XmAiz|db;v9t`tSvv*bBO-;ri75ZAs!)T|#!cuAFXy_8D1URtGH zFQYQ<7g)7oeq5BMm^H z_4!oOO|n9YoF_}_%HjkC++t>StPJzG&4?Q5=ni$8-3)gLJ`0Qzs9>6Fj~%|a7!Y?X9g`1RT!x5qaw literal 0 HcmV?d00001 diff --git a/homework/week-0/abassBayoAwoyemi/out/production/abassBayoAwoyemi/nyc/c4q/abassawo/DomesticDog.class b/homework/week-0/abassBayoAwoyemi/out/production/abassBayoAwoyemi/nyc/c4q/abassawo/DomesticDog.class new file mode 100644 index 0000000000000000000000000000000000000000..23ba7d1046d547ceb01453f9b4575164b35b7686 GIT binary patch literal 1129 zcmah{-%ry}6#njhbsHU&3B&0GhQPXRQWJffAsUE@$$}3M9`<%uZ$?SiLfdKdZ}LGC z!Ndpu0RJfCxoufCHsRr(`{SJRedqhyKYxGy2JixA0eNf|Q9wP9EqQrbq_ADY4t8Z| zD9{x&6&MT|mk$L)xqHq(a?|1Nz&s9p+Z}Wmlt6?>QF=vh&MU|qcps>FscXC9Xf*5# z|AhCQ2+p&(bIN^N-jl~ncxDF->s|M=Wm+#UP2T50z(0BBp*IvkXj_L~L_4^lUDan< zo2Lx9SGH@1`wWda1@l`Lf(v2UB8c@AEN^(heR1M3)b+auYQAG&Ux-v(j<`bt?rrEX z6py`;Z;7|IbVHlawe&?1ucR-;4ayx;-P$6!J>k;iYlI|s9}$xc9&ZWYcuIL zu07-qLv@&Rj&La4-534+ujHA&(M))K59)uahQGkzjvl+#zp80{(4 zGBT9krno}_cS%|!Lf?%0#^{>-=7dUE5s!4Libo00YvPeJtHw35En3&eeWiOmd91rV eF||6zRq>eYlT+95Y-JOF~PL(DiNkKdo6A}Xtz(XN? zLPtFK^82%8fB$@b0XWBAiXnDmjAD!l(Zp4*yCMvaPv(T+x_%VGD0h|ItyhIKGcHP1 z_Ve0uIp@atdLstilWPfwdG%(Ey?8cUaNF{0ZEkrbmxN>?-GdV=N~P0!-B`JCeqG{$ zvn9W9h5#Yq;NKO5v1d%l)xz8tOR-&Wgn>TbZ2&zOq54QGqmeX*ryrpAz8$NNdNIP5 U=Gh;B1Sxb9+d2%@vYy`g1^0V8a{vGU literal 0 HcmV?d00001 diff --git a/homework/week-0/abassBayoAwoyemi/out/production/abassBayoAwoyemi/nyc/c4q/abassawo/Main.class b/homework/week-0/abassBayoAwoyemi/out/production/abassBayoAwoyemi/nyc/c4q/abassawo/Main.class new file mode 100644 index 0000000000000000000000000000000000000000..17a9ad2197425252e01e6599d0804a11da82685e GIT binary patch literal 2103 zcmZuy+jkRX5dUp+*)N+dl!bs>E>gKPDVJ!00%-+m3sOi6x?Bt>x=oj`G|84^LkTM0 z>izB;Zyr7Bvp%#Qdf=6#e}ZrFrsw#m$HVc6zi(rOnk1RonQy-N&3rSnUw-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@^*!tzN8x#Ywf)Al~TRkcA$B)Iu0fM_~~1y0llWRf6zR zr2DmNGpRn!!o~p{WXanw638^Hn`p3SV?>VVCkBX9#2|5+7$VLP*N7X$RSxjo%F~AY zmA&qGxALs<@-v&b?R0cGGd6Bv*1~NY-@vzV2X`&pv+*sy6FATmwwcm)X)miHnIG?L zo=LMsFIz&*b9>y){@3Rogh4#qb!Tf!>eV>*^OKJBe9K9BzI4)_pGi79C@sgPluj#U%K3yc?d+u7;bgo?Ydy^_ zoyO5=cIz~sdQ*u(!!>%}{(_T~vF{aYHqb$tgH74Ww+uBGGiXB*?RbQJ_>ruikoOAppJ;o^h!;4* zZU9%v`w4LbpCgH7e1W5ci6xxEF=_^VUg9`9`LyvHx^RL$o54MFqlaBAVjR8H66kAq zhz+kSy}qQS1I7m?GcBC7kh9RwzX1M0O1#I>_q+)h_&5jV { + public String speciesName; + public String name; + + public Animal(){ + + } + + public Animal(String animalName) { + super(); + name = animalName; + } + + + +// public Animal DomesticDog(String speciesName, String animalName) { +// Animal x = new Animal(animalName); +// x.speciesName = "Canine"; +// return x; +// } + + + public String getSpeciesName() { + return speciesName; + } + + public void setSpeciesName(String speciesName) { + this.speciesName = speciesName; + } + + + + + + + +// The value 0 if the argument is a string lexicographically equal to this string; a value less than 0 if the argument is a string lexicographically greater than this string; +// and a value greater than 0 if the argument is a string lexicographically less than this string. + @Override + public int compareTo(Animal z) { + + return this.getSpeciesName().compareTo(z.getSpeciesName()); + } + + public boolean equals(Animal z) { + return ((this.getSpeciesName()).equals(z.getSpeciesName())); + } +} + diff --git a/homework/week-0/abassBayoAwoyemi/src/nyc/c4q/abassawo/Card.java b/homework/week-0/abassBayoAwoyemi/src/nyc/c4q/abassawo/Card.java new file mode 100644 index 00000000..a5899ba5 --- /dev/null +++ b/homework/week-0/abassBayoAwoyemi/src/nyc/c4q/abassawo/Card.java @@ -0,0 +1,50 @@ +package nyc.c4q.abassawo; + +/** + * Created by c4q-Abass on 4/29/15. + */ +public class Card { + private String rank; + private String suit; + + public String getRank() { + return rank; + } + + public void setRank(String rank) { + this.rank = rank; + } + + public String getSuit() { + return suit; + } + + public void setSuit(String suit) { + this.suit = suit; + } + + public Card(String rank, String suit){ + this.rank = rank; + this.suit = suit; + } + + + +// private String getSuit() { +// return suit; +// } +// +// public void setSuit(String suit) { +// this.suit = suit; +// } +// +// public char getRank() { +// return rank; +// } +// +// public void setRank(char rank) { +// this.rank = rank; +// } + + // ACE, 2 = 10, King, Queen, Jack +} diff --git a/homework/week-0/abassBayoAwoyemi/src/nyc/c4q/abassawo/Domestic.java b/homework/week-0/abassBayoAwoyemi/src/nyc/c4q/abassawo/Domestic.java new file mode 100644 index 00000000..ae6b823f --- /dev/null +++ b/homework/week-0/abassBayoAwoyemi/src/nyc/c4q/abassawo/Domestic.java @@ -0,0 +1,17 @@ +package nyc.c4q.abassawo; + +/** + * Created by c4q-Abass on 4/30/15. + */ +public interface Domestic{ + public String name = ""; + //public String speciesName = ""; + + String setName(); + String getName(); + + // Animal animal(); + + + +} diff --git a/homework/week-0/abassBayoAwoyemi/src/nyc/c4q/abassawo/DomesticDog.java b/homework/week-0/abassBayoAwoyemi/src/nyc/c4q/abassawo/DomesticDog.java new file mode 100644 index 00000000..9d5a3e6d --- /dev/null +++ b/homework/week-0/abassBayoAwoyemi/src/nyc/c4q/abassawo/DomesticDog.java @@ -0,0 +1,56 @@ +package nyc.c4q.abassawo; + +/** + * Created by c4q-Abass on 4/30/15. + */ +public class DomesticDog extends Animal implements Domestic { + + String name; + + + + @Override + public String setName() { + this.name = name; + return name; + } + + @Override + public String getName() { + + return name; + } + +// public Animal DomesticAnimal(String speciesName, String animalName) { +// Animal x = new Animal(); +// this.speciesName = "canine"; +// this.name = animalName; +// return x; +// } + + + public void setName(String name) { + this.name = name; + } + + public DomesticDog (String speciesName, String name ){ //Constructor for domestic anaimal that takes in species name and petname. + this.speciesName = "Canine"; + this.name = name; + } + + + public int compareTo(DomesticDog z) { + + return this.getName().compareTo(z.getName()); + } + + public boolean equals(DomesticDog z) { + return ((this.getName()).equals(z.getName())); + } + + + + +} + + diff --git a/homework/week-0/abassBayoAwoyemi/src/nyc/c4q/abassawo/Game.java b/homework/week-0/abassBayoAwoyemi/src/nyc/c4q/abassawo/Game.java new file mode 100644 index 00000000..09268db6 --- /dev/null +++ b/homework/week-0/abassBayoAwoyemi/src/nyc/c4q/abassawo/Game.java @@ -0,0 +1,9 @@ +package nyc.c4q.abassawo; + +/** + * Created by c4q-Abass on 4/29/15. + */ +public abstract class Game { + + abstract void getPieces(); +} diff --git a/homework/week-0/abassBayoAwoyemi/src/nyc/c4q/abassawo/Main.java b/homework/week-0/abassBayoAwoyemi/src/nyc/c4q/abassawo/Main.java new file mode 100644 index 00000000..3530b41b --- /dev/null +++ b/homework/week-0/abassBayoAwoyemi/src/nyc/c4q/abassawo/Main.java @@ -0,0 +1,40 @@ + +package nyc.c4q.abassawo; + +import java.lang.reflect.Array; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; + +public class Main { + + + public static void main(String[] args) { + Animal dog = new Animal("dog"); + dog.setSpeciesName("Canine"); + Animal wolf = new Animal("wolf"); + wolf.setSpeciesName("Canine"); + Animal cat = new Animal("cat"); + cat.setSpeciesName("Feline"); + + + //System.out.println(cat.equals(dog)); + //System.out.println(animalHouse); + //System.out.println(dog.compareTo(cat)); + + DomesticDog sparky = new DomesticDog("Canine", "Sparky"); + DomesticDog alex = new DomesticDog("Canine", "alex"); + System.out.println(sparky.getName()); + System.out.println(sparky.compareTo(alex)); + Animal animalHouse[] = {dog, wolf, cat, sparky}; + Arrays.sort(animalHouse); + + + // ArrayList suits = new ArrayList(); + //suits.add("hearts"); + + } + + +} + diff --git a/homework/week-0/abassBayoAwoyemi/src/nyc/c4q/abassawo/PlayingCards.java b/homework/week-0/abassBayoAwoyemi/src/nyc/c4q/abassawo/PlayingCards.java new file mode 100644 index 00000000..c2ee3df4 --- /dev/null +++ b/homework/week-0/abassBayoAwoyemi/src/nyc/c4q/abassawo/PlayingCards.java @@ -0,0 +1,51 @@ +package nyc.c4q.abassawo; + +/** + * Created by c4q-Abass on 4/29/15. + */ + +import java.lang.reflect.Array; +import java.util.ArrayList; +import java.util.HashMap; + +public class PlayingCards extends Game { + + + ArrayListCardDeck; + public PlayingCards() { + //ArrayListsuits = new ArrayList(); + + this.CardDeck = new ArrayList(52); + + //ArrayListranks = new ArrayList(); + //System.out.println(ranks.size()); + + String[] ranks = {"A", "2", "3", "4", "5", "6", "7", "8", "9","10", "K", "Q", "J"}; + String[] suits = {"♥", "♣", " ♦", "♠"}; + + + for (int z = 0; z < suits.length; z++) { + for (int y = 0; y < ranks.length; y++) { + this.CardDeck.add(new Card(suits[z], ranks[y])); + } + } + + } + @Override + void getPieces () { + (for Card x : CardDeck){ + + } + } + + public static void main(String[] args) { + (for Card x : CardDeck){ + + } + } + + + +} + + diff --git a/review/.DS_Store b/review/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..00bc1981a9c04ddb0eb27f10661ce665fe8fd7ba GIT binary patch literal 8196 zcmeHMO>Epm6n<}$wzgZ^$sgHn)v`(mDb<#4LXr~Erki9btgs@9+*L z0tNyG0tNyG0tNyG)&m2yXY(Re*!P7sXafcU2JT7*`1>JBm1DxkMSG2!E)KrfVzDY6IjL(xw$P=u2`%H0VQJ}wFr;ea9>&_6T!847x5r?{x+ z4ww)av;hMF19vjOA0LJC^*FRa=gRy&S8`@^rkx}EAGul6aNKzO7KW;-H*DM_$;xK_ zV>Qaj^t4?{yQ*7o`qcb{H!?Im=l4^pJ6-M%+qSvfS97C=Udpoie%o?Y!_xCBLMJnZ zrP-xEyI^U~WLg|AV`%PlmNlgEdXYj?s-=$_j*&A=!#yj>{Fh~o^YiTw$D-X`3$f^Y zTRa|*MZ4mi3k&QON!syXXYb(n?7|E0z5l_77cO49_PL+~{Z|Uqt)l0PO5B)EF(tSO z*=25SuHYt|tXB??8B?~EHqPl;w#^}uj?&OyduGZu3p19JWi?Z(IaM%KSMN1V?(B@Y z`kc#qCmcKP_Ir+5#tM#pTqi%Hs3*yrLTfn-L$j`7Th6GScLOi^5inCwuxq#BILV^j9b46V=+)7{}mCHAFsil6(K>bOI* zx<#iy*mH={s`@Hjr6i5>h+a+8HK{qV+b4?gjb}SF(Pygzkb-g0pakdPRd@~Fg(dh1 zK7niSHGBi#!gcr#et;k0C-@nDgFoRf_!}jx!CI`x28>`c-j5GpE5@)ByYLb0#zS}n zkKzCx!(lv$r%=Tlo;R!^mx%r*!s z>60s)RSRpkLb@D~*+yaQQ4-$M#6XN&B1u_dxI%grg?E``ca=nU9d5$+@C*D3zax;; zwqh7};eFUdQftA7a38i|J9gkf?7;-~Vm}FO5Qi{@$8iEDNpM+`+*2gE8MJT~&*C|J z8W->xd=8(-^Y|jZL;`#R-^91@ZM?8bdPmBl6NncpNw1jBTc&NDCVN@7w}%F!^~pe$ zSXP+l|BqGv{=YsKAFL{1AYkBMVF0U>>0}=rs?zJ5=h{)KPf+EB`z;FeLa6c5aY8R0 jCtUu+kor+_ Date: Fri, 1 May 2015 10:03:30 -0400 Subject: [PATCH 2/6] added interface and abstract class --- exercises/5_OOP-and-Intents/oop/src/ReedInstrument.java | 2 +- exercises/5_OOP-and-Intents/oop/src/ReedPlayer.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/exercises/5_OOP-and-Intents/oop/src/ReedInstrument.java b/exercises/5_OOP-and-Intents/oop/src/ReedInstrument.java index ca66ff44..bd591758 100644 --- a/exercises/5_OOP-and-Intents/oop/src/ReedInstrument.java +++ b/exercises/5_OOP-and-Intents/oop/src/ReedInstrument.java @@ -9,7 +9,7 @@ public boolean hasReed(){ } public void placeReed() { - this.reed = true; + reed = true; } public void removeReed() { diff --git a/exercises/5_OOP-and-Intents/oop/src/ReedPlayer.java b/exercises/5_OOP-and-Intents/oop/src/ReedPlayer.java index 84d422d6..1efc2fdb 100644 --- a/exercises/5_OOP-and-Intents/oop/src/ReedPlayer.java +++ b/exercises/5_OOP-and-Intents/oop/src/ReedPlayer.java @@ -16,5 +16,7 @@ public String play_instrument() { return this.play_instrument(); } else return null; + + } } From 17366f5ff5120e6b2213b1b59788dc9b8f4e8075 Mon Sep 17 00:00:00 2001 From: abassawo Date: Fri, 1 May 2015 21:47:26 -0400 Subject: [PATCH 3/6] Homework Assignment --- exercises/AdventureGame/.DS_Store | Bin 0 -> 8196 bytes exercises/AdventureGame/.idea/compiler.xml | 23 + .../.idea/copyright/profiles_settings.xml | 3 + .../AdventureGame/.idea/description.html | 1 + exercises/AdventureGame/.idea/encodings.xml | 4 + exercises/AdventureGame/.idea/misc.xml | 12 + exercises/AdventureGame/.idea/modules.xml | 8 + .../AdventureGame/.idea/project-template.xml | 3 + .../.idea/scopes/scope_settings.xml | 5 + exercises/AdventureGame/.idea/uiDesigner.xml | 124 +++ exercises/AdventureGame/.idea/vcs.xml | 6 + exercises/AdventureGame/.idea/workspace.xml | 783 ++++++++++++++++++ exercises/AdventureGame/AdventureGame.iml | 12 + .../nyc/c4q/abassawo/Armor.class | Bin 0 -> 504 bytes .../nyc/c4q/abassawo/GameCharacter.class | Bin 0 -> 2063 bytes .../nyc/c4q/abassawo/Grenade.class | Bin 0 -> 510 bytes .../nyc/c4q/abassawo/HandGun.class | Bin 0 -> 510 bytes .../AdventureGame/nyc/c4q/abassawo/Main.class | Bin 0 -> 553 bytes .../nyc/c4q/abassawo/PocketKnife.class | Bin 0 -> 518 bytes .../AdventureGame/nyc/c4q/abassawo/Room.class | Bin 0 -> 1110 bytes .../nyc/c4q/abassawo/Weapon.class | Bin 0 -> 208 bytes .../nyc/c4q/abassawo/World.class | Bin 0 -> 3970 bytes exercises/AdventureGame/src/.DS_Store | Bin 0 -> 8196 bytes exercises/AdventureGame/src/nyc/.DS_Store | Bin 0 -> 8196 bytes exercises/AdventureGame/src/nyc/c4q/.DS_Store | Bin 0 -> 8196 bytes .../src/nyc/c4q/abassawo/Armor.java | 25 + .../src/nyc/c4q/abassawo/ChainSaw.java | 10 + .../src/nyc/c4q/abassawo/GameCharacter.java | 81 ++ .../src/nyc/c4q/abassawo/Grenade.java | 25 + .../src/nyc/c4q/abassawo/Gun.java | 26 + .../src/nyc/c4q/abassawo/HandGun.java | 25 + .../src/nyc/c4q/abassawo/Main.java | 22 + .../src/nyc/c4q/abassawo/PocketKnife.java | 38 + .../src/nyc/c4q/abassawo/Room.java | 41 + .../src/nyc/c4q/abassawo/Weapon.java | 21 + .../src/nyc/c4q/abassawo/World.java | 98 +++ homework/week-0/AdventureGame/.DS_Store | Bin 0 -> 8196 bytes .../week-0/AdventureGame/.idea/compiler.xml | 23 + .../.idea/copyright/profiles_settings.xml | 3 + .../AdventureGame/.idea/description.html | 1 + .../week-0/AdventureGame/.idea/encodings.xml | 4 + homework/week-0/AdventureGame/.idea/misc.xml | 12 + .../week-0/AdventureGame/.idea/modules.xml | 8 + .../AdventureGame/.idea/project-template.xml | 3 + .../.idea/scopes/scope_settings.xml | 5 + .../week-0/AdventureGame/.idea/uiDesigner.xml | 124 +++ homework/week-0/AdventureGame/.idea/vcs.xml | 6 + .../week-0/AdventureGame/.idea/workspace.xml | 783 ++++++++++++++++++ .../week-0/AdventureGame/AdventureGame.iml | 12 + .../nyc/c4q/abassawo/Armor.class | Bin 0 -> 504 bytes .../nyc/c4q/abassawo/GameCharacter.class | Bin 0 -> 2063 bytes .../nyc/c4q/abassawo/Grenade.class | Bin 0 -> 510 bytes .../nyc/c4q/abassawo/HandGun.class | Bin 0 -> 510 bytes .../AdventureGame/nyc/c4q/abassawo/Main.class | Bin 0 -> 553 bytes .../nyc/c4q/abassawo/PocketKnife.class | Bin 0 -> 518 bytes .../AdventureGame/nyc/c4q/abassawo/Room.class | Bin 0 -> 1110 bytes .../nyc/c4q/abassawo/Weapon.class | Bin 0 -> 208 bytes .../nyc/c4q/abassawo/World.class | Bin 0 -> 3970 bytes homework/week-0/AdventureGame/src/.DS_Store | Bin 0 -> 8196 bytes .../week-0/AdventureGame/src/nyc/.DS_Store | Bin 0 -> 8196 bytes .../AdventureGame/src/nyc/c4q/.DS_Store | Bin 0 -> 8196 bytes .../src/nyc/c4q/abassawo/Armor.java | 25 + .../src/nyc/c4q/abassawo/ChainSaw.java | 10 + .../src/nyc/c4q/abassawo/GameCharacter.java | 81 ++ .../src/nyc/c4q/abassawo/Grenade.java | 25 + .../src/nyc/c4q/abassawo/Gun.java | 26 + .../src/nyc/c4q/abassawo/HandGun.java | 25 + .../src/nyc/c4q/abassawo/Main.java | 22 + .../src/nyc/c4q/abassawo/PocketKnife.java | 38 + .../src/nyc/c4q/abassawo/Room.java | 41 + .../src/nyc/c4q/abassawo/Weapon.java | 21 + .../src/nyc/c4q/abassawo/World.java | 98 +++ .../week-0/abassBayoAwoyemi/src/.DS_Store | Bin 0 -> 6148 bytes .../week-0/abassBayoAwoyemi/src/nyc/.DS_Store | Bin 0 -> 6148 bytes .../abassBayoAwoyemi/src/nyc/c4q/.DS_Store | Bin 0 -> 6148 bytes .../src/nyc/c4q/abassawo/.DS_Store | Bin 0 -> 6148 bytes .../src/nyc/c4q/abassawo/Card.java | 19 - .../src/nyc/c4q/abassawo/Game.java | 7 +- .../src/nyc/c4q/abassawo/Main.java | 7 + .../src/nyc/c4q/abassawo/PlayingCards.java | 29 +- 80 files changed, 2822 insertions(+), 32 deletions(-) create mode 100644 exercises/AdventureGame/.DS_Store create mode 100644 exercises/AdventureGame/.idea/compiler.xml create mode 100644 exercises/AdventureGame/.idea/copyright/profiles_settings.xml create mode 100644 exercises/AdventureGame/.idea/description.html create mode 100644 exercises/AdventureGame/.idea/encodings.xml create mode 100644 exercises/AdventureGame/.idea/misc.xml create mode 100644 exercises/AdventureGame/.idea/modules.xml create mode 100644 exercises/AdventureGame/.idea/project-template.xml create mode 100644 exercises/AdventureGame/.idea/scopes/scope_settings.xml create mode 100644 exercises/AdventureGame/.idea/uiDesigner.xml create mode 100644 exercises/AdventureGame/.idea/vcs.xml create mode 100644 exercises/AdventureGame/.idea/workspace.xml create mode 100644 exercises/AdventureGame/AdventureGame.iml create mode 100644 exercises/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/Armor.class create mode 100644 exercises/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/GameCharacter.class create mode 100644 exercises/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/Grenade.class create mode 100644 exercises/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/HandGun.class create mode 100644 exercises/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/Main.class create mode 100644 exercises/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/PocketKnife.class create mode 100644 exercises/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/Room.class create mode 100644 exercises/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/Weapon.class create mode 100644 exercises/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/World.class create mode 100644 exercises/AdventureGame/src/.DS_Store create mode 100644 exercises/AdventureGame/src/nyc/.DS_Store create mode 100644 exercises/AdventureGame/src/nyc/c4q/.DS_Store create mode 100644 exercises/AdventureGame/src/nyc/c4q/abassawo/Armor.java create mode 100644 exercises/AdventureGame/src/nyc/c4q/abassawo/ChainSaw.java create mode 100644 exercises/AdventureGame/src/nyc/c4q/abassawo/GameCharacter.java create mode 100644 exercises/AdventureGame/src/nyc/c4q/abassawo/Grenade.java create mode 100644 exercises/AdventureGame/src/nyc/c4q/abassawo/Gun.java create mode 100644 exercises/AdventureGame/src/nyc/c4q/abassawo/HandGun.java create mode 100644 exercises/AdventureGame/src/nyc/c4q/abassawo/Main.java create mode 100644 exercises/AdventureGame/src/nyc/c4q/abassawo/PocketKnife.java create mode 100644 exercises/AdventureGame/src/nyc/c4q/abassawo/Room.java create mode 100644 exercises/AdventureGame/src/nyc/c4q/abassawo/Weapon.java create mode 100644 exercises/AdventureGame/src/nyc/c4q/abassawo/World.java create mode 100644 homework/week-0/AdventureGame/.DS_Store create mode 100644 homework/week-0/AdventureGame/.idea/compiler.xml create mode 100644 homework/week-0/AdventureGame/.idea/copyright/profiles_settings.xml create mode 100644 homework/week-0/AdventureGame/.idea/description.html create mode 100644 homework/week-0/AdventureGame/.idea/encodings.xml create mode 100644 homework/week-0/AdventureGame/.idea/misc.xml create mode 100644 homework/week-0/AdventureGame/.idea/modules.xml create mode 100644 homework/week-0/AdventureGame/.idea/project-template.xml create mode 100644 homework/week-0/AdventureGame/.idea/scopes/scope_settings.xml create mode 100644 homework/week-0/AdventureGame/.idea/uiDesigner.xml create mode 100644 homework/week-0/AdventureGame/.idea/vcs.xml create mode 100644 homework/week-0/AdventureGame/.idea/workspace.xml create mode 100644 homework/week-0/AdventureGame/AdventureGame.iml create mode 100644 homework/week-0/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/Armor.class create mode 100644 homework/week-0/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/GameCharacter.class create mode 100644 homework/week-0/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/Grenade.class create mode 100644 homework/week-0/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/HandGun.class create mode 100644 homework/week-0/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/Main.class create mode 100644 homework/week-0/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/PocketKnife.class create mode 100644 homework/week-0/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/Room.class create mode 100644 homework/week-0/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/Weapon.class create mode 100644 homework/week-0/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/World.class create mode 100644 homework/week-0/AdventureGame/src/.DS_Store create mode 100644 homework/week-0/AdventureGame/src/nyc/.DS_Store create mode 100644 homework/week-0/AdventureGame/src/nyc/c4q/.DS_Store create mode 100644 homework/week-0/AdventureGame/src/nyc/c4q/abassawo/Armor.java create mode 100644 homework/week-0/AdventureGame/src/nyc/c4q/abassawo/ChainSaw.java create mode 100644 homework/week-0/AdventureGame/src/nyc/c4q/abassawo/GameCharacter.java create mode 100644 homework/week-0/AdventureGame/src/nyc/c4q/abassawo/Grenade.java create mode 100644 homework/week-0/AdventureGame/src/nyc/c4q/abassawo/Gun.java create mode 100644 homework/week-0/AdventureGame/src/nyc/c4q/abassawo/HandGun.java create mode 100644 homework/week-0/AdventureGame/src/nyc/c4q/abassawo/Main.java create mode 100644 homework/week-0/AdventureGame/src/nyc/c4q/abassawo/PocketKnife.java create mode 100644 homework/week-0/AdventureGame/src/nyc/c4q/abassawo/Room.java create mode 100644 homework/week-0/AdventureGame/src/nyc/c4q/abassawo/Weapon.java create mode 100644 homework/week-0/AdventureGame/src/nyc/c4q/abassawo/World.java create mode 100644 homework/week-0/abassBayoAwoyemi/src/.DS_Store create mode 100644 homework/week-0/abassBayoAwoyemi/src/nyc/.DS_Store create mode 100644 homework/week-0/abassBayoAwoyemi/src/nyc/c4q/.DS_Store create mode 100644 homework/week-0/abassBayoAwoyemi/src/nyc/c4q/abassawo/.DS_Store diff --git a/exercises/AdventureGame/.DS_Store b/exercises/AdventureGame/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..32d1cd892d97cdb6c0531894796624db0169f500 GIT binary patch literal 8196 zcmeHMTTC2P82*2t?d-IbvruFxZo3AErBdA9C}>-kn{91Li3==Hbe-K9Vd5~e*_qv? zBD%&zt1%j@iHV61g0@CupEM>u7&U54G+vU%$crx~Mtw5zMW6IPb7m=*^5Bb_cFyLU z@7(?~=X~dzbNB}Uz@EIe7eE03i6Td~nUbpn-p=EiP~q295hB@xlTDj;no579vuk<> z6#)YQ0|5g80|5g81OEpG=+5RrTIb#utw9wgqk|I91t8=u zfEOswc!n_QW8BA*Kx(0Y!jw>$qVHm$FsJ&c-!JZCNuV$X^qmj%pNzhTg5J|<{HWI* zFfK4i0|o*H)-u3fpGt5b2bpwnx&Lk&jvI?DVnt=uhK-w~ki41ySXjO{F=ZDMuIlEU z9yNEyD;b)e_Va_PJ5|mP*|xcqSJNYgUQDrVy|(45hNb70nNB1POS6kTcHYvQiG&z0 zX=v_Liq#F~^a7a@h5@+^bZlJT}8;JSJ*I}!l3w?QDLXEf{pK&v7z*Z z`{fj?;WIm(bq(8cM)aIRm}1oqQFJ0>TmH^pS$^41%wS-3`) z$B8n_H6AeZ+;EZeHl{im-O>zeGFjlHnfj2WPU~U(G8FQxZmd`235|vvur+R{v3DiW z(pax3XLw6*PN!6pB+p=HRFQ`qniW(1j?FEyJoF CQ3ZTX)OKu&JhXlW8Gg)_$9; zBnyHXcG9ohe?V47Gxqc}P1*@#n_u18r6~9DC!bOs_jFdbXjY%o_H?Rml!O!pu{0hIrUkHdOV>O1c25a#qycwIY8C$R&4`2r#!cOeQ6L=C&;Q)?c z3e%WD4X5#8d;}lG51SAyVDW|LqPn;{{c$oy+u)R@^43oh0 znblifmIB)(KS6)1Flv+W&JiHugiO6*R{1d6o!&~saC$n$iJNN;9gx}y#64(Y3S3Ne6 zv?90zZ^2f)729wRiK`QD$2;&a_Tw><*xe+uA(GfAj^Q|oOvg!_LIZQ?VgZXdgOB0k z_yj(Q=SXtr@dbPlU%?Bj#CE(aGl6*Vir5N?oMqb9B-NCqxw3Omy0#do6w6V#|KGp< z_y22a(ZOm01_B0FFo0EkiM}4HTJPBBzIK%2{S + + + + \ No newline at end of file diff --git a/exercises/AdventureGame/.idea/copyright/profiles_settings.xml b/exercises/AdventureGame/.idea/copyright/profiles_settings.xml new file mode 100644 index 00000000..e7bedf33 --- /dev/null +++ b/exercises/AdventureGame/.idea/copyright/profiles_settings.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/exercises/AdventureGame/.idea/description.html b/exercises/AdventureGame/.idea/description.html new file mode 100644 index 00000000..db5f1295 --- /dev/null +++ b/exercises/AdventureGame/.idea/description.html @@ -0,0 +1 @@ +Simple Java application that includes a class with main() method \ No newline at end of file diff --git a/exercises/AdventureGame/.idea/encodings.xml b/exercises/AdventureGame/.idea/encodings.xml new file mode 100644 index 00000000..d8210482 --- /dev/null +++ b/exercises/AdventureGame/.idea/encodings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/exercises/AdventureGame/.idea/misc.xml b/exercises/AdventureGame/.idea/misc.xml new file mode 100644 index 00000000..ccf24ce4 --- /dev/null +++ b/exercises/AdventureGame/.idea/misc.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/exercises/AdventureGame/.idea/modules.xml b/exercises/AdventureGame/.idea/modules.xml new file mode 100644 index 00000000..b4e016c7 --- /dev/null +++ b/exercises/AdventureGame/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/exercises/AdventureGame/.idea/project-template.xml b/exercises/AdventureGame/.idea/project-template.xml new file mode 100644 index 00000000..1f08b887 --- /dev/null +++ b/exercises/AdventureGame/.idea/project-template.xml @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/exercises/AdventureGame/.idea/scopes/scope_settings.xml b/exercises/AdventureGame/.idea/scopes/scope_settings.xml new file mode 100644 index 00000000..922003b8 --- /dev/null +++ b/exercises/AdventureGame/.idea/scopes/scope_settings.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/exercises/AdventureGame/.idea/uiDesigner.xml b/exercises/AdventureGame/.idea/uiDesigner.xml new file mode 100644 index 00000000..e96534fb --- /dev/null +++ b/exercises/AdventureGame/.idea/uiDesigner.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/exercises/AdventureGame/.idea/vcs.xml b/exercises/AdventureGame/.idea/vcs.xml new file mode 100644 index 00000000..6564d52d --- /dev/null +++ b/exercises/AdventureGame/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/exercises/AdventureGame/.idea/workspace.xml b/exercises/AdventureGame/.idea/workspace.xml new file mode 100644 index 00000000..dd918675 --- /dev/null +++ b/exercises/AdventureGame/.idea/workspace.xml @@ -0,0 +1,783 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1430497576593 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/exercises/AdventureGame/AdventureGame.iml b/exercises/AdventureGame/AdventureGame.iml new file mode 100644 index 00000000..d5c07432 --- /dev/null +++ b/exercises/AdventureGame/AdventureGame.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/exercises/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/Armor.class b/exercises/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/Armor.class new file mode 100644 index 0000000000000000000000000000000000000000..5726f65039652d02aa2d442d0e7e888f1108f991 GIT binary patch literal 504 zcmah_O-sW-5Pj1ojmFy6){kDj`2psjH$@P^Q_zD_&y#d9Thgpo$2C~(A?P_5u9@~R)lV-Gj%ze zM#|oBluD-`nwZlOTV3LL(?vM5XRs(&D<0C(>d^ddzAOA>v_kjlZb9H9L@B>fdZB=|>Qzrxb{C6`w~=MPa9 Xn-fA3VIxb5 literal 0 HcmV?d00001 diff --git a/exercises/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/GameCharacter.class b/exercises/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/GameCharacter.class new file mode 100644 index 0000000000000000000000000000000000000000..417731f7114328eefc2b21241bf26b829b65585d GIT binary patch literal 2063 zcmaJ>ZBrXn7(F)$d1GlXEnqFyXjMXj4Yt@SAQrGxYM|IK?dZ2lvXg8{cH?G)#-HM^ zP)F#D&iDiTQBKdjyX+<=?U&vA@;v7`=iKMsfB*aI9{_jpT^2J~PhlgA7}hf|u&G90 zX0U~?(s+=?Hg?p?uG;%reIBN;m%<}~ge^O!K)(7yp2azVzx|W&;iwUn~k#S+X!XrAc+mf!Vd#1}WM$`26BQXob`(<7&TYI@|C3PDvu~sb1HVrvllU(|7CUo~4^+qz!H>e+;~X z8v<9gSEJ2rU>*wwzQKM9j}3f_sz9;kxb9%3;I&NGTR;>8*Z@Z}|X)-P;)-V0vH+30L*gPv#da>kv$7hX%t zsT}c!do;?F9rm#=aCDjGbyZN?W;TzN*^|2A2fWYMWQNaBlJ5(Za1_HV-qQbk@V|;{ zdQOr0Pwyb`wjN(cmSY;t?;=-r5a$S(Exm*&{f*f7FA+aS;&&bWF27e80U{*$^yP?h zlQYB5!FwohCdldo@=$nB`B!)gr9Y9lz|^mp{sYN;>H=xC@*B6}h+uD!&LZ*zjbIl7 z*jqYQ_3Kc4UcBN{PQx^w6?ZK0`7@Tl|VPvMx9S? z6IEPMk~7ket)zTJg|7PsbgN940voY;l94>Pk0_zCq(>W_70OVm4h6h2v$kTRLgkiH zw#amC5nS3yA=Rm_)x&0fZ%hvq!b4kN_@AgiuO5qXGB?phGFFo1*Z)jkE4s7B-Gsv@ zvn}86a%OFg{`5BlSAe(k0`bg+g9VNOXK>|WkslC#4KcpN9q;-rusiJ;`ytobK<5{c YFKvj+^NE9*#Lj%;a3-q-L0R_>~@sMx<9f$@AC@d&Ipz(*n0 z!2%?L(%kNhW@dNq{p0lwz#djTbg<+iaIx%SMWB1Aw5pB-I-6S~0sGjbQlK9xEzj%Q zSQb|l=gb6=Nhlvtp&Hzhc9p48U_H`LNto>4hZIv;(xVB_NT;W@J`ixq%$SM?6*4!J z@`y||BfLvf7l}MkO}gLecgOTVJ{)uf*8U3>7&NjlCw&uM#ABIo{P2(ZTGE}-_696I znaA?|HdoH(*PZ-^;0|!MUm%{ju`tK4#}zEF8O?L&e~Fl1V8pwA2kcBRb3f)L8|eKq Y@};e@H`^FYH7?FJ4yPLXyo-gwCk1v*cK`qY literal 0 HcmV?d00001 diff --git a/exercises/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/Main.class b/exercises/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/Main.class new file mode 100644 index 0000000000000000000000000000000000000000..6621e71b82ec0113af16a0b63eef6085158f8808 GIT binary patch literal 553 zcmZutO;5r=5Pe$;wY7kN0)EFEYGMz1!+0T457oqAFvinT8d%d0U5bXE%`8AGnM-(%1_ z@xW&&yCU+hCt=^0x4a(^Q*~pH2R$x@!V6MQMquy4#C;5hX$<%2**r4d0NMM!E6{?S6)w pd-x8WPX14*3Y{8?+?ZERjR9fYFH&%dN*MW^bMYf;%tZEOe*15!^Vapw#u57;Wm9=v)*Z%a!252k@c9 zGqqyDVhNmE&iCh>e0;vW1K7c0fEwm}gg)kdEC@9AjWxxAKy7`aDhxxi{{pH-xGA0kR9&*{lUXHMPf;@FyNy~nCOQ>n_l zpoCviWg!rpyE0Sy$W-c`k^b#IJyH{OGz3=u6K1SxjZ(5V(P`4xie;Do5SNoc4Q&VK~9207P$;pz%# ajexxI5S*P1hGW6jWN>LL*ydS0biM!rh)~=B literal 0 HcmV?d00001 diff --git a/exercises/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/Room.class b/exercises/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/Room.class new file mode 100644 index 0000000000000000000000000000000000000000..98c73b7746a3636c42d568380018f6482329a294 GIT binary patch literal 1110 zcmZ`%+invv5FICJlWfxqY12E@g+i0G%03jHKu8FwPi;Y@s?i#J-7!u zdAOg42Mlsr^d*Dx(S>*;d?j?(Z`vr--Ny{_U1?t#(`T?$t=$C3JvVJ6&mV!3`gzCkA>aAD*1FD@dU~d^r zKM8ecpE9Ua|20OSLWG(puD5KJ5}q>V@>ygO-DWV`v?91X7K7B9*EC5K$itA#7s*b8 z?xO@n@JdjDRW#R5bXOXkhusoXp~m3nxk-2+BH2ll8gd&BtdU#j2sien2h^UshF$qQerKO9MeWkS6S~`j!)!NTcXQN zr^AQX2=7VJ-si2vB1O|Kav0*rHdKlal8D~exfqB5!v;SbTSQLu8NWxU}VpNql5 zcw%0(E@WV@rJBRoN}QamN${XDdZf_!FR`x036p|ee9>uKPvcb&2&6P@f!3ASt z*%6mVhbfV$ODIA0DzKbN93qA!y!uzj)b~D5YRy3wPgWoYtLS}gLeu-J>EXGTYObc5 z2X0S2q2}0{=L&70+~$patznr_U&n}~p38J8j{n5Kj5g@M;b|fDdK-jI1tg)3j+{ z@5d9s3R4e(hY4X=r`9%vK^PqgZex+%i^Pm3`724tbiv)sqI(Tz(WIQ$I|f`=hk@V%bho;{2> JK^QYS@ISy7EaCtF literal 0 HcmV?d00001 diff --git a/exercises/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/World.class b/exercises/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/World.class new file mode 100644 index 0000000000000000000000000000000000000000..47ff7277b28e822df3282e925974f5d82af48e50 GIT binary patch literal 3970 zcmZu!Yj@km5gq77ih>iHwiVZTt<$7>n4;1ojoT=V>$puUTUH!Pv8%LAvILgIiU1Z~ z0HT;CeYgLiKchaCd`^2#Pe1oRwWoI$q@+algG&H|**k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diwW7zo;< ziJtN4Pki*xbWI$afk%stZ3I>I4U`NEza`euI$Uk0N`>4uAy}XOO#7I{9!iZ09x2bM zfzP??cv78G=!i%Uknyps(-M=%w7cii&v@sLw=2=QT8`nI^A2;#O$u+i98`xpU*r5o zpA|iAV;oIDSREdqB*f+!j|7;4cm%>9&OWx7KQ)TD(Z{2+Zs4h=yCIU1fD(=2@nSXh zX|w7EQcQkI@_2b^@u?4Z)Vnx(baGVW`;+K^Cmr5{IEo{O=N$m-bK*AOXKWM$$W*HK z@%n|urKb&|C*ix{6nRvS&_yvtegn@(om~{m+R~@+ovVU}Wsfc|o*p#$$r{6M@Zo;L z$q4z%(YX3_1%vwxeqYSuKPEwZdOYvB6(b*3;-Sv1nCsk%(ax=yP27s(!L2A!tW)rS z$rGPzxO(iaiN08VLf-N}X=3LwO+KNi1DeLw%uciRgz5)0TU|8V#T+jDohNkWfSx)2 z`t0%7v&+qM2h?0{oq6@S`&(r7h3jG+?KF|Uqy+_xvdi0Yqes6{*;fZK?41HsS?(SoHZu#%jJfurk z59vG2%ZK#*U+I2z_X6(XTk{31Em+MR(u;ik(%AZCXZ>pRNH_;q+^usX_nRxtR}SgB z9N44_>>Yq7dJW+$(0N*-7m>Opg!U%VwuZ28B3*ZotcOU?XSlnI;n5=OeZ0*jV#5(>8&{i4APv9{Y57*}p^cv_UV>rrT}4ax~iQEL8FV ODDd$2L%cIVxBd@=d~CA- literal 0 HcmV?d00001 diff --git a/exercises/AdventureGame/src/.DS_Store b/exercises/AdventureGame/src/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..49c0ce6368effa2e5d200bd15c9a91c9e951757b GIT binary patch literal 8196 zcmeI1T}&KR6vxj2+Rjc}xeG;x;SI#4^g_fjr+DFthaPf8VV>}$qHBWj~FQ2sXXepi~F`DtZ)bP4l_r_wewrEG} z;M^QLFG-E92fGKxvU5+*FTD2pg^O=|{D}|%{Y3<7R|)dz6*Ww!FetueRM_dPP~-b$ zYAAi-emTWz_{dIYUBkAV5k2RSO|fc+Bs!6?Eq~<6jBVzpEhojo8P&|>P1V)AO*3IU zq&uUoKI8J#xMSzsUa#S(LB6~!#aQ0a@6pM@DCm9U<}eJsxutIVj;39E_8mHWdFu_; zELnkQjf$y$!{!!Q9(s^wjyZm(t-EDq*i_TH$+VDg zYrjoak_90RJLwnhKOifk8GCw~2JM8g%`fikQk47nolmKbdpfIIG^)?(_D7E1xmBrG zddiQo`Vl2*jC*x!8jZFozDrDNQ#>XTA=+FTpq)0c<1hg_WC{0Y;8}PMUWNs@1n@H6}ZzryeE7Xl*6SdC$z&a^gh?JTJlott*$Tp1^7?As9g$h32QRNBE+cG%hbhkzkut0D zK<3%bE~?$=@yfGDj#4d%mxt#=EfJa4pMQedJiG<(dzgI--@y;?Bm4$`5?~t$u6k@B zv?90zZ^2f)729wR!PSYk;~jVy`|%hdb~iybM2L;z7>*NUI!@vg8kj>D3s}S%d<-AQ zC-6x;N64MW7w|=V1uv|E?RXh8Ve#S>*b0f9W!lyxm6Xw3**M5uTMAT)$5HtCzkmJj z|JT+-2Tv0y5Gb%h0j%mv^z~5DddogPYe(t2pDrGFyOOY;3q{^>oUC^oC%g0yLrO=f jDffx{wj?Z-Q25tB1n@sz`4%4R|6KiG|Mw`o{-VDDL=e~F literal 0 HcmV?d00001 diff --git a/exercises/AdventureGame/src/nyc/.DS_Store b/exercises/AdventureGame/src/nyc/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..77d869fe7be269e2afc3eeb2f83d9a28f4b40e0b GIT binary patch literal 8196 zcmeHMOKjXk82UgaqOtRft@;AR*v{#05_9kH?$l(Hyt{YCWr& zZ(jd+=9|wm`5gej?wqy{Kmh=WB1g7`k}Cw>&f~fe@@vWok?g_Aq)a?um+-MDP?!Vy&IkHWM&Cn0@98vt%Ex(kX?CI8&RLo>IVi>( zH8giR$!Z3&dY()NR7)Q*93y3zhI>{D^IwwH&du#V&=TuxpKpoH?Tg3bEwT3a!TEW1 zPLk@I4|esBXXc+?SbX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hhc_GoA9(EPk|UXq&H4)qL*->-g(0C! zg;Un$yA`^q{ow&QrPQ)Hp2>QqW4oh9&Lx{tYFrZQWX7@mYe;4sD?ekqDJ7iItW4h0 zJfp|566OPjJLVa)9;;2bPR{G&1IJ8?Wqm0{$-Bl~1_hV}qo2ZD1w(Iat>3Y;dH3G^ zhmTy|c3q7Uu9f8p63_O``%EJ@Qe+B_Yi`D{b<>_o7MOgNF>GryMi{>cg?QBU4XQk; z(;){PoyFjp zrKJr^(L*Av;}%&>7KAj)DZlf;L0KKkI5RUeX*Z1Res@>5s@}uSd|Gq8Gg-r?S$#&Q zKYHx;ZEAzsTfUUlmncc&EUHJ>X|~Pr-Qor}$77-rBJ3NXgO-;QFbM`^;T${-&%m?r z5-h?ccpKh_PvLX;625}3VF`YOpWtWs1%87+5fD+v8VqAC*5M6!BQ|3Twqge!#7;bn zUD$&s@f4oMK^(;trZIy$&ftUi5I&40d=j6-7x5Kbz(sruFX6lRftXZ98OP(IT`uuM zs;zlU3CFCDV{$zlBLj7J{6{!0Z50sKZLjyK>{-6Gt8V5>syIr570ytZ5sv8kG*&-dR|H1mt3A{FozW`ok=8FIT literal 0 HcmV?d00001 diff --git a/exercises/AdventureGame/src/nyc/c4q/abassawo/Armor.java b/exercises/AdventureGame/src/nyc/c4q/abassawo/Armor.java new file mode 100644 index 00000000..6e3dddc9 --- /dev/null +++ b/exercises/AdventureGame/src/nyc/c4q/abassawo/Armor.java @@ -0,0 +1,25 @@ +package nyc.c4q.abassawo; + +/** + * Created by c4q-Abass on 5/1/15. + */ +abstract public class Armor implements Weapon { + + public Armor() { + } + + @Override + public void shoot() { + + } + + @Override + public void reload() { + + } + + @Override + public void hide() { + + } +} diff --git a/exercises/AdventureGame/src/nyc/c4q/abassawo/ChainSaw.java b/exercises/AdventureGame/src/nyc/c4q/abassawo/ChainSaw.java new file mode 100644 index 00000000..8719ed23 --- /dev/null +++ b/exercises/AdventureGame/src/nyc/c4q/abassawo/ChainSaw.java @@ -0,0 +1,10 @@ +package nyc.c4q.abassawo; + +/** + * Created by c4q-Abass on 5/1/15. + */ +abstract public class ChainSaw implements Weapon { + + public ChainSaw() { + } +} diff --git a/exercises/AdventureGame/src/nyc/c4q/abassawo/GameCharacter.java b/exercises/AdventureGame/src/nyc/c4q/abassawo/GameCharacter.java new file mode 100644 index 00000000..d42b8963 --- /dev/null +++ b/exercises/AdventureGame/src/nyc/c4q/abassawo/GameCharacter.java @@ -0,0 +1,81 @@ +package nyc.c4q.abassawo; +import java.lang.reflect.Array; +import java.util.ArrayList; + +/** + * Created by c4q-Abass on 5/1/15. + */ +public class GameCharacter extends Room { + // private Room office = new Room(); +// private Room dungeon = new Room(); + + + + + private String name; + private float health; + private float damage; + private int goldCoins; + private String room; + + + + public GameCharacter() { + } + + public ArrayList getInventory() { + if(this.inventory.size() == 0){ + System.out.println("Sorry, there's nothing in your inventory"); + } + return inventory; + } + + public ArrayList checkPockets(){ + ArrayListPockets = new ArrayList(); + return Pockets; + } + + public void addToPockets(Object x){ + ArrayListPockets = new ArrayList(); + Pockets.add(x); + } + + + + + + public void addTotInventory(Weapon x) { + this.inventory.add(x); + } + + private ArrayList inventory = new ArrayList(); + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + + + + public void setRoom() { + this.room = room; + } + // +// public Room getRoom() { +// return this.room; +// } +// + public void moveAround(){ + + } + + public void speak(String x){ + System.out.println( x); + } + + +} diff --git a/exercises/AdventureGame/src/nyc/c4q/abassawo/Grenade.java b/exercises/AdventureGame/src/nyc/c4q/abassawo/Grenade.java new file mode 100644 index 00000000..c6eea75d --- /dev/null +++ b/exercises/AdventureGame/src/nyc/c4q/abassawo/Grenade.java @@ -0,0 +1,25 @@ +package nyc.c4q.abassawo; + +/** + * Created by c4q-Abass on 5/1/15. + */ +public abstract class Grenade implements Weapon { + + public Grenade() { + } + + @Override + public void shoot() { + + } + + @Override + public void reload() { + + } + + @Override + public void hide() { + + } +} diff --git a/exercises/AdventureGame/src/nyc/c4q/abassawo/Gun.java b/exercises/AdventureGame/src/nyc/c4q/abassawo/Gun.java new file mode 100644 index 00000000..7bc8c4f8 --- /dev/null +++ b/exercises/AdventureGame/src/nyc/c4q/abassawo/Gun.java @@ -0,0 +1,26 @@ +package nyc.c4q.abassawo; + +/** + * Created by c4q-Abass on 5/1/15. + */ +public class Gun implements Weapon { + @Override + public void shoot() { + + } + + @Override + public void reload() { + + } + + @Override + public void hide() { + + } + + @Override + public Weapon buy() { + return null; + } +} diff --git a/exercises/AdventureGame/src/nyc/c4q/abassawo/HandGun.java b/exercises/AdventureGame/src/nyc/c4q/abassawo/HandGun.java new file mode 100644 index 00000000..f1735b43 --- /dev/null +++ b/exercises/AdventureGame/src/nyc/c4q/abassawo/HandGun.java @@ -0,0 +1,25 @@ +package nyc.c4q.abassawo; + +/** + * Created by c4q-Abass on 5/1/15. + */ +abstract public class HandGun extends Gun { + public HandGun() { + } + + @Override + public void shoot() { + + } + + @Override + public void reload() { + + } + + @Override + public void hide() { + + } + +} diff --git a/exercises/AdventureGame/src/nyc/c4q/abassawo/Main.java b/exercises/AdventureGame/src/nyc/c4q/abassawo/Main.java new file mode 100644 index 00000000..9fd6709f --- /dev/null +++ b/exercises/AdventureGame/src/nyc/c4q/abassawo/Main.java @@ -0,0 +1,22 @@ +package nyc.c4q.abassawo; + +import java.util.Scanner; + +public class Main extends GameCharacter { + + + // track which senses are available to the player; + + + + public static void main(String[] args) { + World myWorld = new World(); + myWorld.startGame(); + myWorld.catHelp(); + + + } + + +} + diff --git a/exercises/AdventureGame/src/nyc/c4q/abassawo/PocketKnife.java b/exercises/AdventureGame/src/nyc/c4q/abassawo/PocketKnife.java new file mode 100644 index 00000000..4898b801 --- /dev/null +++ b/exercises/AdventureGame/src/nyc/c4q/abassawo/PocketKnife.java @@ -0,0 +1,38 @@ +package nyc.c4q.abassawo; + +/** + * Created by c4q-Abass on 5/1/15. + */ +public class PocketKnife implements Weapon { + public PocketKnife() { + + } + + @Override + public void hide() { + + } + + @Override + public Weapon buy() { + return null; + } + + public void stab(){ + + } + + public void cut(Object x){ + System.out.println("You have used the knife to cut the object"); + } + + @Override + public void reload() { + + } + + @Override + public void shoot() { + + } +} diff --git a/exercises/AdventureGame/src/nyc/c4q/abassawo/Room.java b/exercises/AdventureGame/src/nyc/c4q/abassawo/Room.java new file mode 100644 index 00000000..b2ab0bac --- /dev/null +++ b/exercises/AdventureGame/src/nyc/c4q/abassawo/Room.java @@ -0,0 +1,41 @@ +package nyc.c4q.abassawo; + +import java.util.ArrayList; + +/** + * Created by c4q-Abass on 5/1/15. + */ +public class Room { + private String name; + + public String getRoom() { + return this.name; + } + + + + public void setRoom(Room x) { + } + + //private ArrayListroomObjects = new ArrayList(); + + + public Room(String roomName){ + this.name = roomName; + } + + public Room(){ + } + + public void lookAround(){ + if (this.name == "dungeon"){ + System.out.println("You carefully tiptoe across the room. " + + "YYou follow the noise and follow the cat to another room that smells like cat food. You can't get the bag off your head, but can hear the cat still purring and pacing. Follow the cat"); + } + + } + + + +} + diff --git a/exercises/AdventureGame/src/nyc/c4q/abassawo/Weapon.java b/exercises/AdventureGame/src/nyc/c4q/abassawo/Weapon.java new file mode 100644 index 00000000..16196802 --- /dev/null +++ b/exercises/AdventureGame/src/nyc/c4q/abassawo/Weapon.java @@ -0,0 +1,21 @@ +package nyc.c4q.abassawo; + +/** + * Created by c4q-Abass on 5/1/15. + */ +abstract public interface Weapon { + + public void shoot(); + + public void reload(); + + public void hide(); + + public Weapon buy(); + + // public Weapon get(); + + + + +} diff --git a/exercises/AdventureGame/src/nyc/c4q/abassawo/World.java b/exercises/AdventureGame/src/nyc/c4q/abassawo/World.java new file mode 100644 index 00000000..952460eb --- /dev/null +++ b/exercises/AdventureGame/src/nyc/c4q/abassawo/World.java @@ -0,0 +1,98 @@ +package nyc.c4q.abassawo; + +import java.util.Scanner; + +/** + * Created by c4q-Abass on 5/1/15. + */ +public class World extends Room { + Scanner playerInput = new Scanner(System.in); + public Room office = new Room("office"); + public Room dungeon = new Room("dungeon"); + GameCharacter professor = new GameCharacter(); + GameCharacter player = new GameCharacter(); + GameCharacter cat = new GameCharacter(); + + String intro = ("You are about to embark on an adventure in interactive fiction where you control the main character as you play thought the story. " + + "To see what you are carrying press 'inventory' You can pick up items, examine them, use them, talk to other characters. If you get stuck, type 'hints Happy Adventure" + "\n\n Press Start to begin"); + + + String gamePremise = ("\n After your professor's untimely death, you explore his empty office gathering all of his belongings and looking for clues. " + + "You learn that the professor's scientific skills were being abused by a sinister corporation developing an untraceable toxin for assassinations, " + + "and that when your uncle tried to destroy his work, he was silenced.\n" + + "You were confronted by the corporation's agents, but fought back, killing one. Unfortunately you were struck by a tazer before you could escape from the school. " + + "Unconsciousness. They took you and you remember nothing.. You have awoken in darkness, a bag on your head and handcuffs on your wrists..."); + + + String catPremise = ("It turns out that this cat is no ordinary cat, but actually a cat from the future. Jinxie The professor has programmed Jinxie with a computer chip so that instead of a normal brain, it can process the things much like a computer can. The cat fills you in on the professor's disappearance," + + " and explains that the professor actually isn't dead, but is in hiding. Unfortunately, the cat's feeble computer brain is too simple to crack the clues that the professor has left behind." + + "No worries, you can still use the cat to guide you around the room. You can communicate with Jinxie, and you can run computer programs directly on her micro-chip"); + + + + public World(){ + } + + public void startGame() { + Scanner playerInput = new Scanner(System.in); + + GameCharacter player = new GameCharacter(); + + System.out.println(intro); + + if (playerInput.next().equals("Start")) { + System.out.println(gamePremise); + System.out.println("\n It is complete darkness in the room and complete silence other than the sound of a purring cat. The cat doesn't seem too interested in helping you, she's probably just too hungry to help you"); + player.setRoom(dungeon); + System.out.println("\nType go to move around and explore the room with touch"); + + if (playerInput.next().equals("go")) { + dungeon.lookAround(); + if(playerInput.next().equals("follow")){ + + GameCharacter cat = new GameCharacter(); + + cat.speak("\nThank you so much, I really needed that"); + } + } + } + //methd for removing blindfold, uncovering more information aboiut identity. + } + + public void catHelp(){ + System.out.println("Wait, the cat can talk?"); + System.out.println(catPremise); + System.out.println("Press enter to continue"); + if (playerInput.next().equals("enter")) { + stageTwo(); + } + } + + public void stageTwo() { + System.out.println("The cat has led you to another room where there is a girl also being held captive"); + GameCharacter cassie = new GameCharacter(); + + System.out.println("move to approach the girl and help free her"); + if (playerInput.next().equals("move")){ + this.setRoom(office); + System.out.println("Jinxie says the girl is actually the professor's daughter. " + + "You have both been held hostage by the bad guy so they can use you as leverage if the professor returns. But you're running out of time. they'll be back any minute!"); + } else { + System.out.println("Feel around the room or have Jinxie help guide you."); + } + System.out.println("You can abandon the daughter and escape, or you can follow Jinxie to help"); + if (playerInput.next().equals("follow")){ + System.out.println("Jinxie pointed out a knife in the small office you are now in near the kitchen. You use the knife to cut open the ropes and mouth gag "); + Object gag = new Object(); + PocketKnife knife = new PocketKnife(); + knife.cut(gag); + System.out.println("the knife has been added to your weapons inventory. You can pick up more along the ways, but first we need to stop the bad guys from finding and destroying the professor's vaccine."); + cassie.speak("Helpppp!!!"); + + System.out.println("The professor's daughter helps take the bag off your heads and helps you look for keys to the handcuffs"); + } + } + + public void gotoHomeDepot() {} + //ChainSaw x = new ChainSaw(); +} \ No newline at end of file diff --git a/homework/week-0/AdventureGame/.DS_Store b/homework/week-0/AdventureGame/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..32d1cd892d97cdb6c0531894796624db0169f500 GIT binary patch literal 8196 zcmeHMTTC2P82*2t?d-IbvruFxZo3AErBdA9C}>-kn{91Li3==Hbe-K9Vd5~e*_qv? zBD%&zt1%j@iHV61g0@CupEM>u7&U54G+vU%$crx~Mtw5zMW6IPb7m=*^5Bb_cFyLU z@7(?~=X~dzbNB}Uz@EIe7eE03i6Td~nUbpn-p=EiP~q295hB@xlTDj;no579vuk<> z6#)YQ0|5g80|5g81OEpG=+5RrTIb#utw9wgqk|I91t8=u zfEOswc!n_QW8BA*Kx(0Y!jw>$qVHm$FsJ&c-!JZCNuV$X^qmj%pNzhTg5J|<{HWI* zFfK4i0|o*H)-u3fpGt5b2bpwnx&Lk&jvI?DVnt=uhK-w~ki41ySXjO{F=ZDMuIlEU z9yNEyD;b)e_Va_PJ5|mP*|xcqSJNYgUQDrVy|(45hNb70nNB1POS6kTcHYvQiG&z0 zX=v_Liq#F~^a7a@h5@+^bZlJT}8;JSJ*I}!l3w?QDLXEf{pK&v7z*Z z`{fj?;WIm(bq(8cM)aIRm}1oqQFJ0>TmH^pS$^41%wS-3`) z$B8n_H6AeZ+;EZeHl{im-O>zeGFjlHnfj2WPU~U(G8FQxZmd`235|vvur+R{v3DiW z(pax3XLw6*PN!6pB+p=HRFQ`qniW(1j?FEyJoF CQ3ZTX)OKu&JhXlW8Gg)_$9; zBnyHXcG9ohe?V47Gxqc}P1*@#n_u18r6~9DC!bOs_jFdbXjY%o_H?Rml!O!pu{0hIrUkHdOV>O1c25a#qycwIY8C$R&4`2r#!cOeQ6L=C&;Q)?c z3e%WD4X5#8d;}lG51SAyVDW|LqPn;{{c$oy+u)R@^43oh0 znblifmIB)(KS6)1Flv+W&JiHugiO6*R{1d6o!&~saC$n$iJNN;9gx}y#64(Y3S3Ne6 zv?90zZ^2f)729wRiK`QD$2;&a_Tw><*xe+uA(GfAj^Q|oOvg!_LIZQ?VgZXdgOB0k z_yj(Q=SXtr@dbPlU%?Bj#CE(aGl6*Vir5N?oMqb9B-NCqxw3Omy0#do6w6V#|KGp< z_y22a(ZOm01_B0FFo0EkiM}4HTJPBBzIK%2{S + + + + \ No newline at end of file diff --git a/homework/week-0/AdventureGame/.idea/copyright/profiles_settings.xml b/homework/week-0/AdventureGame/.idea/copyright/profiles_settings.xml new file mode 100644 index 00000000..e7bedf33 --- /dev/null +++ b/homework/week-0/AdventureGame/.idea/copyright/profiles_settings.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/homework/week-0/AdventureGame/.idea/description.html b/homework/week-0/AdventureGame/.idea/description.html new file mode 100644 index 00000000..db5f1295 --- /dev/null +++ b/homework/week-0/AdventureGame/.idea/description.html @@ -0,0 +1 @@ +Simple Java application that includes a class with main() method \ No newline at end of file diff --git a/homework/week-0/AdventureGame/.idea/encodings.xml b/homework/week-0/AdventureGame/.idea/encodings.xml new file mode 100644 index 00000000..d8210482 --- /dev/null +++ b/homework/week-0/AdventureGame/.idea/encodings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/homework/week-0/AdventureGame/.idea/misc.xml b/homework/week-0/AdventureGame/.idea/misc.xml new file mode 100644 index 00000000..ccf24ce4 --- /dev/null +++ b/homework/week-0/AdventureGame/.idea/misc.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/homework/week-0/AdventureGame/.idea/modules.xml b/homework/week-0/AdventureGame/.idea/modules.xml new file mode 100644 index 00000000..b4e016c7 --- /dev/null +++ b/homework/week-0/AdventureGame/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/homework/week-0/AdventureGame/.idea/project-template.xml b/homework/week-0/AdventureGame/.idea/project-template.xml new file mode 100644 index 00000000..1f08b887 --- /dev/null +++ b/homework/week-0/AdventureGame/.idea/project-template.xml @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/homework/week-0/AdventureGame/.idea/scopes/scope_settings.xml b/homework/week-0/AdventureGame/.idea/scopes/scope_settings.xml new file mode 100644 index 00000000..922003b8 --- /dev/null +++ b/homework/week-0/AdventureGame/.idea/scopes/scope_settings.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/homework/week-0/AdventureGame/.idea/uiDesigner.xml b/homework/week-0/AdventureGame/.idea/uiDesigner.xml new file mode 100644 index 00000000..e96534fb --- /dev/null +++ b/homework/week-0/AdventureGame/.idea/uiDesigner.xml @@ -0,0 +1,124 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/homework/week-0/AdventureGame/.idea/vcs.xml b/homework/week-0/AdventureGame/.idea/vcs.xml new file mode 100644 index 00000000..6564d52d --- /dev/null +++ b/homework/week-0/AdventureGame/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/homework/week-0/AdventureGame/.idea/workspace.xml b/homework/week-0/AdventureGame/.idea/workspace.xml new file mode 100644 index 00000000..dd918675 --- /dev/null +++ b/homework/week-0/AdventureGame/.idea/workspace.xml @@ -0,0 +1,783 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1430497576593 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/homework/week-0/AdventureGame/AdventureGame.iml b/homework/week-0/AdventureGame/AdventureGame.iml new file mode 100644 index 00000000..d5c07432 --- /dev/null +++ b/homework/week-0/AdventureGame/AdventureGame.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/homework/week-0/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/Armor.class b/homework/week-0/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/Armor.class new file mode 100644 index 0000000000000000000000000000000000000000..5726f65039652d02aa2d442d0e7e888f1108f991 GIT binary patch literal 504 zcmah_O-sW-5Pj1ojmFy6){kDj`2psjH$@P^Q_zD_&y#d9Thgpo$2C~(A?P_5u9@~R)lV-Gj%ze zM#|oBluD-`nwZlOTV3LL(?vM5XRs(&D<0C(>d^ddzAOA>v_kjlZb9H9L@B>fdZB=|>Qzrxb{C6`w~=MPa9 Xn-fA3VIxb5 literal 0 HcmV?d00001 diff --git a/homework/week-0/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/GameCharacter.class b/homework/week-0/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/GameCharacter.class new file mode 100644 index 0000000000000000000000000000000000000000..417731f7114328eefc2b21241bf26b829b65585d GIT binary patch literal 2063 zcmaJ>ZBrXn7(F)$d1GlXEnqFyXjMXj4Yt@SAQrGxYM|IK?dZ2lvXg8{cH?G)#-HM^ zP)F#D&iDiTQBKdjyX+<=?U&vA@;v7`=iKMsfB*aI9{_jpT^2J~PhlgA7}hf|u&G90 zX0U~?(s+=?Hg?p?uG;%reIBN;m%<}~ge^O!K)(7yp2azVzx|W&;iwUn~k#S+X!XrAc+mf!Vd#1}WM$`26BQXob`(<7&TYI@|C3PDvu~sb1HVrvllU(|7CUo~4^+qz!H>e+;~X z8v<9gSEJ2rU>*wwzQKM9j}3f_sz9;kxb9%3;I&NGTR;>8*Z@Z}|X)-P;)-V0vH+30L*gPv#da>kv$7hX%t zsT}c!do;?F9rm#=aCDjGbyZN?W;TzN*^|2A2fWYMWQNaBlJ5(Za1_HV-qQbk@V|;{ zdQOr0Pwyb`wjN(cmSY;t?;=-r5a$S(Exm*&{f*f7FA+aS;&&bWF27e80U{*$^yP?h zlQYB5!FwohCdldo@=$nB`B!)gr9Y9lz|^mp{sYN;>H=xC@*B6}h+uD!&LZ*zjbIl7 z*jqYQ_3Kc4UcBN{PQx^w6?ZK0`7@Tl|VPvMx9S? z6IEPMk~7ket)zTJg|7PsbgN940voY;l94>Pk0_zCq(>W_70OVm4h6h2v$kTRLgkiH zw#amC5nS3yA=Rm_)x&0fZ%hvq!b4kN_@AgiuO5qXGB?phGFFo1*Z)jkE4s7B-Gsv@ zvn}86a%OFg{`5BlSAe(k0`bg+g9VNOXK>|WkslC#4KcpN9q;-rusiJ;`ytobK<5{c YFKvj+^NE9*#Lj%;a3-q-L0R_>~@sMx<9f$@AC@d&Ipz(*n0 z!2%?L(%kNhW@dNq{p0lwz#djTbg<+iaIx%SMWB1Aw5pB-I-6S~0sGjbQlK9xEzj%Q zSQb|l=gb6=Nhlvtp&Hzhc9p48U_H`LNto>4hZIv;(xVB_NT;W@J`ixq%$SM?6*4!J z@`y||BfLvf7l}MkO}gLecgOTVJ{)uf*8U3>7&NjlCw&uM#ABIo{P2(ZTGE}-_696I znaA?|HdoH(*PZ-^;0|!MUm%{ju`tK4#}zEF8O?L&e~Fl1V8pwA2kcBRb3f)L8|eKq Y@};e@H`^FYH7?FJ4yPLXyo-gwCk1v*cK`qY literal 0 HcmV?d00001 diff --git a/homework/week-0/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/Main.class b/homework/week-0/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/Main.class new file mode 100644 index 0000000000000000000000000000000000000000..6621e71b82ec0113af16a0b63eef6085158f8808 GIT binary patch literal 553 zcmZutO;5r=5Pe$;wY7kN0)EFEYGMz1!+0T457oqAFvinT8d%d0U5bXE%`8AGnM-(%1_ z@xW&&yCU+hCt=^0x4a(^Q*~pH2R$x@!V6MQMquy4#C;5hX$<%2**r4d0NMM!E6{?S6)w pd-x8WPX14*3Y{8?+?ZERjR9fYFH&%dN*MW^bMYf;%tZEOe*15!^Vapw#u57;Wm9=v)*Z%a!252k@c9 zGqqyDVhNmE&iCh>e0;vW1K7c0fEwm}gg)kdEC@9AjWxxAKy7`aDhxxi{{pH-xGA0kR9&*{lUXHMPf;@FyNy~nCOQ>n_l zpoCviWg!rpyE0Sy$W-c`k^b#IJyH{OGz3=u6K1SxjZ(5V(P`4xie;Do5SNoc4Q&VK~9207P$;pz%# ajexxI5S*P1hGW6jWN>LL*ydS0biM!rh)~=B literal 0 HcmV?d00001 diff --git a/homework/week-0/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/Room.class b/homework/week-0/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/Room.class new file mode 100644 index 0000000000000000000000000000000000000000..98c73b7746a3636c42d568380018f6482329a294 GIT binary patch literal 1110 zcmZ`%+invv5FICJlWfxqY12E@g+i0G%03jHKu8FwPi;Y@s?i#J-7!u zdAOg42Mlsr^d*Dx(S>*;d?j?(Z`vr--Ny{_U1?t#(`T?$t=$C3JvVJ6&mV!3`gzCkA>aAD*1FD@dU~d^r zKM8ecpE9Ua|20OSLWG(puD5KJ5}q>V@>ygO-DWV`v?91X7K7B9*EC5K$itA#7s*b8 z?xO@n@JdjDRW#R5bXOXkhusoXp~m3nxk-2+BH2ll8gd&BtdU#j2sien2h^UshF$qQerKO9MeWkS6S~`j!)!NTcXQN zr^AQX2=7VJ-si2vB1O|Kav0*rHdKlal8D~exfqB5!v;SbTSQLu8NWxU}VpNql5 zcw%0(E@WV@rJBRoN}QamN${XDdZf_!FR`x036p|ee9>uKPvcb&2&6P@f!3ASt z*%6mVhbfV$ODIA0DzKbN93qA!y!uzj)b~D5YRy3wPgWoYtLS}gLeu-J>EXGTYObc5 z2X0S2q2}0{=L&70+~$patznr_U&n}~p38J8j{n5Kj5g@M;b|fDdK-jI1tg)3j+{ z@5d9s3R4e(hY4X=r`9%vK^PqgZex+%i^Pm3`724tbiv)sqI(Tz(WIQ$I|f`=hk@V%bho;{2> JK^QYS@ISy7EaCtF literal 0 HcmV?d00001 diff --git a/homework/week-0/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/World.class b/homework/week-0/AdventureGame/out/production/AdventureGame/nyc/c4q/abassawo/World.class new file mode 100644 index 0000000000000000000000000000000000000000..47ff7277b28e822df3282e925974f5d82af48e50 GIT binary patch literal 3970 zcmZu!Yj@km5gq77ih>iHwiVZTt<$7>n4;1ojoT=V>$puUTUH!Pv8%LAvILgIiU1Z~ z0HT;CeYgLiKchaCd`^2#Pe1oRwWoI$q@+algG&H|**kac%ntwazkmFTh~A{XG-!s_ zYjk^-?$AbqCg|=gU8T($eN?A5KfK4+AJ^%1Uhmgvt3f`k^TjrQe8L|O>hzG;pVw)J z*H7#83toT8UVqh~&**b@{Y9N*gE|z{DP%9IPTe~7c$cV7x=y=%w_m5YPD!2823(jr zWp#SQK5UJ0kLI#i4wYR`v$F8${Kl@_ldEN+CnclUi7&J!MjlW;1KLD$kAeNSwC+P$ueTB&`gJ%6GNDN0WgBfN7l; z)_BycfW$KGt!@=or#);k*Tc*AtV(naFb%wLbTRX;PId7f+$=6V@M!9$31RZ=hECOH znRJxhmYo=Pnj0pN@dIf!Uyp816_ExNmrkR7Xlxu}=h?iFwqWcYo!Kg6(7!7)_cn5k zB!U2-xuxRFqdIJRYI}evW&*IJ8S9oQZJ<8TjG^JYwwY<4enjthbnX=EH7a~6X^#yC zKDB7Yql-@^pDp%%YSXGuuhXhWFP$>`2IoF~pWg7HReZcfZ+PDI9a9Qvm5?1%7NRgh zB^_z|!lXjtU%02zqQrBZ;vcex)agAXAc;c5W)LYn9KuOpIC-%sA|(wPde?2&Qw5NeLBA!6VWz}Fgg|p~OJ>+60LN3a*(20tNB2==7T5dnOKT2ULZkGZa$fD5IRC2#n2)l`g}f+5>>h*`^#0 zB%ru{KY8|;RZ3+u6W7@Cv7lA;D|h$Pt|->UdRIhW8HXP?cEV(gY&^=)xm zr~6uQWXF;c5%L6q^{h-1BxPhX&_%>4aOEI;JbUPR`6SC5_{N z`|?KLt`%{_hR)N4f=f26XaarMAkv_(_bn-*Yp^0^0VQ^o;=(whz(vU1LljVUlDVo8 z0ZIrxiC^Oaei{;{I9A;PYJ_IO_NEai6I2fb!r^iQ%yCf1<4))3KwJ_UVW8 zwogO)vPQr5=_@{#zNX*cPWm~ z6h=K9iK`5A7od|=R)QRqI)XY@M`)DGBTg4oE>hr5FmxV>meYw7o8LjmEs;kG2}GbB z^tPecEpu-2Mno8GP%vPY&DqwcKhPgNy4Kj{)1n7~8<7|;=8ABx`*DXq3diwW7zo;< ziJtN4Pki*xbWI$afk%stZ3I>I4U`NEza`euI$Uk0N`>4uAy}XOO#7I{9!iZ09x2bM zfzP??cv78G=!i%Uknyps(-M=%w7cii&v@sLw=2=QT8`nI^A2;#O$u+i98`xpU*r5o zpA|iAV;oIDSREdqB*f+!j|7;4cm%>9&OWx7KQ)TD(Z{2+Zs4h=yCIU1fD(=2@nSXh zX|w7EQcQkI@_2b^@u?4Z)Vnx(baGVW`;+K^Cmr5{IEo{O=N$m-bK*AOXKWM$$W*HK z@%n|urKb&|C*ix{6nRvS&_yvtegn@(om~{m+R~@+ovVU}Wsfc|o*p#$$r{6M@Zo;L z$q4z%(YX3_1%vwxeqYSuKPEwZdOYvB6(b*3;-Sv1nCsk%(ax=yP27s(!L2A!tW)rS z$rGPzxO(iaiN08VLf-N}X=3LwO+KNi1DeLw%uciRgz5)0TU|8V#T+jDohNkWfSx)2 z`t0%7v&+qM2h?0{oq6@S`&(r7h3jG+?KF|Uqy+_xvdi0Yqes6{*;fZK?41HsS?(SoHZu#%jJfurk z59vG2%ZK#*U+I2z_X6(XTk{31Em+MR(u;ik(%AZCXZ>pRNH_;q+^usX_nRxtR}SgB z9N44_>>Yq7dJW+$(0N*-7m>Opg!U%VwuZ28B3*ZotcOU?XSlnI;n5=OeZ0*jV#5(>8&{i4APv9{Y57*}p^cv_UV>rrT}4ax~iQEL8FV ODDd$2L%cIVxBd@=d~CA- literal 0 HcmV?d00001 diff --git a/homework/week-0/AdventureGame/src/.DS_Store b/homework/week-0/AdventureGame/src/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..49c0ce6368effa2e5d200bd15c9a91c9e951757b GIT binary patch literal 8196 zcmeI1T}&KR6vxj2+Rjc}xeG;x;SI#4^g_fjr+DFthaPf8VV>}$qHBWj~FQ2sXXepi~F`DtZ)bP4l_r_wewrEG} z;M^QLFG-E92fGKxvU5+*FTD2pg^O=|{D}|%{Y3<7R|)dz6*Ww!FetueRM_dPP~-b$ zYAAi-emTWz_{dIYUBkAV5k2RSO|fc+Bs!6?Eq~<6jBVzpEhojo8P&|>P1V)AO*3IU zq&uUoKI8J#xMSzsUa#S(LB6~!#aQ0a@6pM@DCm9U<}eJsxutIVj;39E_8mHWdFu_; zELnkQjf$y$!{!!Q9(s^wjyZm(t-EDq*i_TH$+VDg zYrjoak_90RJLwnhKOifk8GCw~2JM8g%`fikQk47nolmKbdpfIIG^)?(_D7E1xmBrG zddiQo`Vl2*jC*x!8jZFozDrDNQ#>XTA=+FTpq)0c<1hg_WC{0Y;8}PMUWNs@1n@H6}ZzryeE7Xl*6SdC$z&a^gh?JTJlott*$Tp1^7?As9g$h32QRNBE+cG%hbhkzkut0D zK<3%bE~?$=@yfGDj#4d%mxt#=EfJa4pMQedJiG<(dzgI--@y;?Bm4$`5?~t$u6k@B zv?90zZ^2f)729wR!PSYk;~jVy`|%hdb~iybM2L;z7>*NUI!@vg8kj>D3s}S%d<-AQ zC-6x;N64MW7w|=V1uv|E?RXh8Ve#S>*b0f9W!lyxm6Xw3**M5uTMAT)$5HtCzkmJj z|JT+-2Tv0y5Gb%h0j%mv^z~5DddogPYe(t2pDrGFyOOY;3q{^>oUC^oC%g0yLrO=f jDffx{wj?Z-Q25tB1n@sz`4%4R|6KiG|Mw`o{-VDDL=e~F literal 0 HcmV?d00001 diff --git a/homework/week-0/AdventureGame/src/nyc/.DS_Store b/homework/week-0/AdventureGame/src/nyc/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..77d869fe7be269e2afc3eeb2f83d9a28f4b40e0b GIT binary patch literal 8196 zcmeHMOKjXk82UgaqOtRft@;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K0*jr+DFEPr)S!M6Zp z*%p8&s?$Dz$3%S__iag79!kd)y9e|`(cfaA2q%A(4JRA-ZAn-W4k*F_{WGJ#LqUFa zii`5$fN^1iGEg8;V66h|@sViPo~G=s+`p$SCr!TJ(^<=Oy;y7sD=Mq1H*JM|R^0w|yCdBcQrtVFrl=`8ZQJ~Nv%{E3&*G!w1>7A28?2}R&=H~VvXpeSx&bLSB z_Qhhc_GoA9(EPk|UXq&H4)qL*->-g(0C! zg;Un$yA`^q{ow&QrPQ)Hp2>QqW4oh9&Lx{tYFrZQWX7@mYe;4sD?ekqDJ7iItW4h0 zJfp|566OPjJLVa)9;;2bPR{G&1IJ8?Wqm0{$-Bl~1_hV}qo2ZD1w(Iat>3Y;dH3G^ zhmTy|c3q7Uu9f8p63_O``%EJ@Qe+B_Yi`D{b<>_o7MOgNF>GryMi{>cg?QBU4XQk; z(;){PoyFjp zrKJr^(L*Av;}%&>7KAj)DZlf;L0KKkI5RUeX*Z1Res@>5s@}uSd|Gq8Gg-r?S$#&Q zKYHx;ZEAzsTfUUlmncc&EUHJ>X|~Pr-Qor}$77-rBJ3NXgO-;QFbM`^;T${-&%m?r z5-h?ccpKh_PvLX;625}3VF`YOpWtWs1%87+5fD+v8VqAC*5M6!BQ|3Twqge!#7;bn zUD$&s@f4oMK^(;trZIy$&ftUi5I&40d=j6-7x5Kbz(sruFX6lRftXZ98OP(IT`uuM zs;zlU3CFCDV{$zlBLj7J{6{!0Z50sKZLjyK>{-6Gt8V5>syIr570ytZ5sv8kG*&-dR|H1mt3A{FozW`ok=8FIT literal 0 HcmV?d00001 diff --git a/homework/week-0/AdventureGame/src/nyc/c4q/abassawo/Armor.java b/homework/week-0/AdventureGame/src/nyc/c4q/abassawo/Armor.java new file mode 100644 index 00000000..6e3dddc9 --- /dev/null +++ b/homework/week-0/AdventureGame/src/nyc/c4q/abassawo/Armor.java @@ -0,0 +1,25 @@ +package nyc.c4q.abassawo; + +/** + * Created by c4q-Abass on 5/1/15. + */ +abstract public class Armor implements Weapon { + + public Armor() { + } + + @Override + public void shoot() { + + } + + @Override + public void reload() { + + } + + @Override + public void hide() { + + } +} diff --git a/homework/week-0/AdventureGame/src/nyc/c4q/abassawo/ChainSaw.java b/homework/week-0/AdventureGame/src/nyc/c4q/abassawo/ChainSaw.java new file mode 100644 index 00000000..8719ed23 --- /dev/null +++ b/homework/week-0/AdventureGame/src/nyc/c4q/abassawo/ChainSaw.java @@ -0,0 +1,10 @@ +package nyc.c4q.abassawo; + +/** + * Created by c4q-Abass on 5/1/15. + */ +abstract public class ChainSaw implements Weapon { + + public ChainSaw() { + } +} diff --git a/homework/week-0/AdventureGame/src/nyc/c4q/abassawo/GameCharacter.java b/homework/week-0/AdventureGame/src/nyc/c4q/abassawo/GameCharacter.java new file mode 100644 index 00000000..d42b8963 --- /dev/null +++ b/homework/week-0/AdventureGame/src/nyc/c4q/abassawo/GameCharacter.java @@ -0,0 +1,81 @@ +package nyc.c4q.abassawo; +import java.lang.reflect.Array; +import java.util.ArrayList; + +/** + * Created by c4q-Abass on 5/1/15. + */ +public class GameCharacter extends Room { + // private Room office = new Room(); +// private Room dungeon = new Room(); + + + + + private String name; + private float health; + private float damage; + private int goldCoins; + private String room; + + + + public GameCharacter() { + } + + public ArrayList getInventory() { + if(this.inventory.size() == 0){ + System.out.println("Sorry, there's nothing in your inventory"); + } + return inventory; + } + + public ArrayList checkPockets(){ + ArrayListPockets = new ArrayList(); + return Pockets; + } + + public void addToPockets(Object x){ + ArrayListPockets = new ArrayList(); + Pockets.add(x); + } + + + + + + public void addTotInventory(Weapon x) { + this.inventory.add(x); + } + + private ArrayList inventory = new ArrayList(); + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + + + + public void setRoom() { + this.room = room; + } + // +// public Room getRoom() { +// return this.room; +// } +// + public void moveAround(){ + + } + + public void speak(String x){ + System.out.println( x); + } + + +} diff --git a/homework/week-0/AdventureGame/src/nyc/c4q/abassawo/Grenade.java b/homework/week-0/AdventureGame/src/nyc/c4q/abassawo/Grenade.java new file mode 100644 index 00000000..c6eea75d --- /dev/null +++ b/homework/week-0/AdventureGame/src/nyc/c4q/abassawo/Grenade.java @@ -0,0 +1,25 @@ +package nyc.c4q.abassawo; + +/** + * Created by c4q-Abass on 5/1/15. + */ +public abstract class Grenade implements Weapon { + + public Grenade() { + } + + @Override + public void shoot() { + + } + + @Override + public void reload() { + + } + + @Override + public void hide() { + + } +} diff --git a/homework/week-0/AdventureGame/src/nyc/c4q/abassawo/Gun.java b/homework/week-0/AdventureGame/src/nyc/c4q/abassawo/Gun.java new file mode 100644 index 00000000..7bc8c4f8 --- /dev/null +++ b/homework/week-0/AdventureGame/src/nyc/c4q/abassawo/Gun.java @@ -0,0 +1,26 @@ +package nyc.c4q.abassawo; + +/** + * Created by c4q-Abass on 5/1/15. + */ +public class Gun implements Weapon { + @Override + public void shoot() { + + } + + @Override + public void reload() { + + } + + @Override + public void hide() { + + } + + @Override + public Weapon buy() { + return null; + } +} diff --git a/homework/week-0/AdventureGame/src/nyc/c4q/abassawo/HandGun.java b/homework/week-0/AdventureGame/src/nyc/c4q/abassawo/HandGun.java new file mode 100644 index 00000000..f1735b43 --- /dev/null +++ b/homework/week-0/AdventureGame/src/nyc/c4q/abassawo/HandGun.java @@ -0,0 +1,25 @@ +package nyc.c4q.abassawo; + +/** + * Created by c4q-Abass on 5/1/15. + */ +abstract public class HandGun extends Gun { + public HandGun() { + } + + @Override + public void shoot() { + + } + + @Override + public void reload() { + + } + + @Override + public void hide() { + + } + +} diff --git a/homework/week-0/AdventureGame/src/nyc/c4q/abassawo/Main.java b/homework/week-0/AdventureGame/src/nyc/c4q/abassawo/Main.java new file mode 100644 index 00000000..9fd6709f --- /dev/null +++ b/homework/week-0/AdventureGame/src/nyc/c4q/abassawo/Main.java @@ -0,0 +1,22 @@ +package nyc.c4q.abassawo; + +import java.util.Scanner; + +public class Main extends GameCharacter { + + + // track which senses are available to the player; + + + + public static void main(String[] args) { + World myWorld = new World(); + myWorld.startGame(); + myWorld.catHelp(); + + + } + + +} + diff --git a/homework/week-0/AdventureGame/src/nyc/c4q/abassawo/PocketKnife.java b/homework/week-0/AdventureGame/src/nyc/c4q/abassawo/PocketKnife.java new file mode 100644 index 00000000..4898b801 --- /dev/null +++ b/homework/week-0/AdventureGame/src/nyc/c4q/abassawo/PocketKnife.java @@ -0,0 +1,38 @@ +package nyc.c4q.abassawo; + +/** + * Created by c4q-Abass on 5/1/15. + */ +public class PocketKnife implements Weapon { + public PocketKnife() { + + } + + @Override + public void hide() { + + } + + @Override + public Weapon buy() { + return null; + } + + public void stab(){ + + } + + public void cut(Object x){ + System.out.println("You have used the knife to cut the object"); + } + + @Override + public void reload() { + + } + + @Override + public void shoot() { + + } +} diff --git a/homework/week-0/AdventureGame/src/nyc/c4q/abassawo/Room.java b/homework/week-0/AdventureGame/src/nyc/c4q/abassawo/Room.java new file mode 100644 index 00000000..b2ab0bac --- /dev/null +++ b/homework/week-0/AdventureGame/src/nyc/c4q/abassawo/Room.java @@ -0,0 +1,41 @@ +package nyc.c4q.abassawo; + +import java.util.ArrayList; + +/** + * Created by c4q-Abass on 5/1/15. + */ +public class Room { + private String name; + + public String getRoom() { + return this.name; + } + + + + public void setRoom(Room x) { + } + + //private ArrayListroomObjects = new ArrayList(); + + + public Room(String roomName){ + this.name = roomName; + } + + public Room(){ + } + + public void lookAround(){ + if (this.name == "dungeon"){ + System.out.println("You carefully tiptoe across the room. " + + "YYou follow the noise and follow the cat to another room that smells like cat food. You can't get the bag off your head, but can hear the cat still purring and pacing. Follow the cat"); + } + + } + + + +} + diff --git a/homework/week-0/AdventureGame/src/nyc/c4q/abassawo/Weapon.java b/homework/week-0/AdventureGame/src/nyc/c4q/abassawo/Weapon.java new file mode 100644 index 00000000..16196802 --- /dev/null +++ b/homework/week-0/AdventureGame/src/nyc/c4q/abassawo/Weapon.java @@ -0,0 +1,21 @@ +package nyc.c4q.abassawo; + +/** + * Created by c4q-Abass on 5/1/15. + */ +abstract public interface Weapon { + + public void shoot(); + + public void reload(); + + public void hide(); + + public Weapon buy(); + + // public Weapon get(); + + + + +} diff --git a/homework/week-0/AdventureGame/src/nyc/c4q/abassawo/World.java b/homework/week-0/AdventureGame/src/nyc/c4q/abassawo/World.java new file mode 100644 index 00000000..952460eb --- /dev/null +++ b/homework/week-0/AdventureGame/src/nyc/c4q/abassawo/World.java @@ -0,0 +1,98 @@ +package nyc.c4q.abassawo; + +import java.util.Scanner; + +/** + * Created by c4q-Abass on 5/1/15. + */ +public class World extends Room { + Scanner playerInput = new Scanner(System.in); + public Room office = new Room("office"); + public Room dungeon = new Room("dungeon"); + GameCharacter professor = new GameCharacter(); + GameCharacter player = new GameCharacter(); + GameCharacter cat = new GameCharacter(); + + String intro = ("You are about to embark on an adventure in interactive fiction where you control the main character as you play thought the story. " + + "To see what you are carrying press 'inventory' You can pick up items, examine them, use them, talk to other characters. If you get stuck, type 'hints Happy Adventure" + "\n\n Press Start to begin"); + + + String gamePremise = ("\n After your professor's untimely death, you explore his empty office gathering all of his belongings and looking for clues. " + + "You learn that the professor's scientific skills were being abused by a sinister corporation developing an untraceable toxin for assassinations, " + + "and that when your uncle tried to destroy his work, he was silenced.\n" + + "You were confronted by the corporation's agents, but fought back, killing one. Unfortunately you were struck by a tazer before you could escape from the school. " + + "Unconsciousness. They took you and you remember nothing.. You have awoken in darkness, a bag on your head and handcuffs on your wrists..."); + + + String catPremise = ("It turns out that this cat is no ordinary cat, but actually a cat from the future. Jinxie The professor has programmed Jinxie with a computer chip so that instead of a normal brain, it can process the things much like a computer can. The cat fills you in on the professor's disappearance," + + " and explains that the professor actually isn't dead, but is in hiding. Unfortunately, the cat's feeble computer brain is too simple to crack the clues that the professor has left behind." + + "No worries, you can still use the cat to guide you around the room. You can communicate with Jinxie, and you can run computer programs directly on her micro-chip"); + + + + public World(){ + } + + public void startGame() { + Scanner playerInput = new Scanner(System.in); + + GameCharacter player = new GameCharacter(); + + System.out.println(intro); + + if (playerInput.next().equals("Start")) { + System.out.println(gamePremise); + System.out.println("\n It is complete darkness in the room and complete silence other than the sound of a purring cat. The cat doesn't seem too interested in helping you, she's probably just too hungry to help you"); + player.setRoom(dungeon); + System.out.println("\nType go to move around and explore the room with touch"); + + if (playerInput.next().equals("go")) { + dungeon.lookAround(); + if(playerInput.next().equals("follow")){ + + GameCharacter cat = new GameCharacter(); + + cat.speak("\nThank you so much, I really needed that"); + } + } + } + //methd for removing blindfold, uncovering more information aboiut identity. + } + + public void catHelp(){ + System.out.println("Wait, the cat can talk?"); + System.out.println(catPremise); + System.out.println("Press enter to continue"); + if (playerInput.next().equals("enter")) { + stageTwo(); + } + } + + public void stageTwo() { + System.out.println("The cat has led you to another room where there is a girl also being held captive"); + GameCharacter cassie = new GameCharacter(); + + System.out.println("move to approach the girl and help free her"); + if (playerInput.next().equals("move")){ + this.setRoom(office); + System.out.println("Jinxie says the girl is actually the professor's daughter. " + + "You have both been held hostage by the bad guy so they can use you as leverage if the professor returns. But you're running out of time. they'll be back any minute!"); + } else { + System.out.println("Feel around the room or have Jinxie help guide you."); + } + System.out.println("You can abandon the daughter and escape, or you can follow Jinxie to help"); + if (playerInput.next().equals("follow")){ + System.out.println("Jinxie pointed out a knife in the small office you are now in near the kitchen. You use the knife to cut open the ropes and mouth gag "); + Object gag = new Object(); + PocketKnife knife = new PocketKnife(); + knife.cut(gag); + System.out.println("the knife has been added to your weapons inventory. You can pick up more along the ways, but first we need to stop the bad guys from finding and destroying the professor's vaccine."); + cassie.speak("Helpppp!!!"); + + System.out.println("The professor's daughter helps take the bag off your heads and helps you look for keys to the handcuffs"); + } + } + + public void gotoHomeDepot() {} + //ChainSaw x = new ChainSaw(); +} \ No newline at end of file diff --git a/homework/week-0/abassBayoAwoyemi/src/.DS_Store b/homework/week-0/abassBayoAwoyemi/src/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..8a939bcd61a86f07251b31644ed3d05298f4b98e GIT binary patch literal 6148 zcmeHK!D`z;5Z$$%MoumYZD^nu9b520Nl73##dQNc6bvc}r3tPSiF!e3jU~qfW6(Lr zd_tS1{f^RpME|6>bY^#K8j@Vow9JUvH=3PUY2S)njSxb%N6ESnt`NcjMXWWUxk0cW z^_tYkQwNkdhCYfj9m5?C$MP>QfNNJ5xi}F=ud*xaw+lT_LFMJ8nFvM2<6=Oo{3{-0 zswjQ`r>xZ*3lA2Z=F&1=?#j|(*w^E*jLK2bj)w2dol4S}>~2){XZ9Pdv$-9`dnz6G z+($2TUPdZUhkv9V?5jM{0HEns5b>H_}-j=^Pow{d^^W@p)&g-{>>FLK$=btaWeEs&_%vVVGrj0x# zoWTz;h>hcLm}ffw0G?U&EQ*mCU4+#GV7#g@?2JV!B-?^A*00000 literal 0 HcmV?d00001 diff --git a/homework/week-0/abassBayoAwoyemi/src/nyc/.DS_Store b/homework/week-0/abassBayoAwoyemi/src/nyc/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5009b506529cdf73354bf3adc9fd8e1cc1e5f20c GIT binary patch literal 6148 zcmeHK&1%~~5Z<+&L{2UWX=tGr9b520`Gwq6Cn@w$FsLMyrnpih;sv2~EIB3^gU&tX z5%SaaIZFEweUskOncZ<{NPBJ5G9zZc(d^7h`>oj32q9#9n5+ol3LzXc-YUkLW2 z-jN!4>VOi*(1&rRW4OcNSpEeDaP8{iP^^pN7ul`#dk#HMK;`wdnFvM2qoPl%{5|ex zswjQ`o2=CvGqZC}bAACYcX9r0*wdr1jLKorjs|bcol4S}>`qknruHkXvl}~#_f$IS zx(~K>UPdZU2S24A?5jM{qqZLANpTR`@%B|x_PXwJXONyiYA4FmJyob!WvV=Nns{~H zhvV_;TFcwooV2|0itqa^Z`0qHOx!cadHi(a*~{1c$@}w*%c~C`KYjjU<|`z8(?*sE zr|=aFV&fznXnJW#}du(D{j z4rojX0N4Px5wOkAKcI&Wz<{u_2p$k=Qvq$Nq!L3??I3MB^am7QS+wawnkU0J^khjD zilov*dL~@Rz#_NI05fo#0j&K%Ts;4Ge_#KbAa0leX5jy1KsI*5oi@yk&el7##Ix1| teFutyah1iJ6fn$D46%3=KLRxZeh&@6fUvR%9uWQ!Ff?$(4E#|BegGKYXF31? literal 0 HcmV?d00001 diff --git a/homework/week-0/abassBayoAwoyemi/src/nyc/c4q/.DS_Store b/homework/week-0/abassBayoAwoyemi/src/nyc/c4q/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..c341e207fe4e01e2ae26a1bc2b18e6c949898fd6 GIT binary patch literal 6148 zcmeHKPixdb6rb6ynr$x;D+*rbXkibj(t@{it%3((A*DrHSrZf7fsk1?*@m(#@SpjlAN6BJVGxZ`@Z%+KZlw_Uh|ssOqSSt4Z05$A|itOtZw={kR&=?LDRP zg&imRGOGvv`cqX@u`IIjZ>dKIvPf0kQhz_yJ>y$Kz;R0NZeDflZ%`lp`#L78`>YfpC)wG^yN{7~G`8FKk?Bu`y`U8Mnm; zw<~j7p>VxA<`+7g@z9{_9RrSmKN+Cf58~7P|LpJezYcPpW56-+e=@+^yU}hB&t~t| yrKhC3RzTlCNhq!{xJZGauVTc~ReT?+1%5#WFtpehga_h21T+n@18(F1 literal 0 HcmV?d00001 diff --git a/homework/week-0/abassBayoAwoyemi/src/nyc/c4q/abassawo/.DS_Store b/homework/week-0/abassBayoAwoyemi/src/nyc/c4q/abassawo/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..ef40833c4f93eb8d9899bff6c21dcac1907a5ccd GIT binary patch literal 6148 zcmeHK!AiqG5Pee%HWZ=WJm%<0@DF0GiU&dTE=^l0m1x1L;4PowNBIGMfd3KS?5>e+ z%(aNj!0g*h=IthLmrNFb44-F*zyLsxuGmS~{9<}vyxBh6d+9}z#n8J|^W{@$I@vvzJ8j0-Xr)TNE_88LQoN%eBPI@Y{a zXVo@>Q}m6aNL8^lGX+cmQ($unux6|E`W~${1xx``pjJS?4=G(S3s`z|pAI(e2te#I z?2LW=SyWCMFbi0E5y>vkTA1^6N suits = new ArrayList(); //suits.add("hearts"); + PlayingCards x = new PlayingCards(); + + x.printPieces(); + + x.getPieces(); + //x.printPieces(); + } diff --git a/homework/week-0/abassBayoAwoyemi/src/nyc/c4q/abassawo/PlayingCards.java b/homework/week-0/abassBayoAwoyemi/src/nyc/c4q/abassawo/PlayingCards.java index c2ee3df4..ae1bc987 100644 --- a/homework/week-0/abassBayoAwoyemi/src/nyc/c4q/abassawo/PlayingCards.java +++ b/homework/week-0/abassBayoAwoyemi/src/nyc/c4q/abassawo/PlayingCards.java @@ -6,6 +6,8 @@ import java.lang.reflect.Array; import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; import java.util.HashMap; public class PlayingCards extends Game { @@ -13,13 +15,9 @@ public class PlayingCards extends Game { ArrayListCardDeck; public PlayingCards() { - //ArrayListsuits = new ArrayList(); this.CardDeck = new ArrayList(52); - //ArrayListranks = new ArrayList(); - //System.out.println(ranks.size()); - String[] ranks = {"A", "2", "3", "4", "5", "6", "7", "8", "9","10", "K", "Q", "J"}; String[] suits = {"♥", "♣", " ♦", "♠"}; @@ -31,21 +29,28 @@ public PlayingCards() { } } - @Override - void getPieces () { - (for Card x : CardDeck){ - } - } - public static void main(String[] args) { - (for Card x : CardDeck){ + @Override + public ArrayList getPieces() { //Shuffles and returns card deck + Collections.shuffle(CardDeck); + return CardDeck; + } + + + public void printPieces() { //Created to see actual face value of cards. + System.out.println(CardDeck.size() + "Playing Cards"); + + for(Card x : CardDeck){ + System.out.println(x.getRank() + "," + x.getSuit()); //Loop exercise print this in different lines by rank/by suit. } - } + } + + } From 2fe2d3b935352fb4ca0ef9766b878500e8a0e3cd Mon Sep 17 00:00:00 2001 From: abassawo Date: Sat, 2 May 2015 16:44:49 -0400 Subject: [PATCH 4/6] Added instrument and musician class --- exercises/5_OOP-and-Intents/oop/src/Instrument.java | 7 +++++++ exercises/5_OOP-and-Intents/oop/src/Musician.java | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 exercises/5_OOP-and-Intents/oop/src/Instrument.java create mode 100644 exercises/5_OOP-and-Intents/oop/src/Musician.java diff --git a/exercises/5_OOP-and-Intents/oop/src/Instrument.java b/exercises/5_OOP-and-Intents/oop/src/Instrument.java new file mode 100644 index 00000000..b3332ec4 --- /dev/null +++ b/exercises/5_OOP-and-Intents/oop/src/Instrument.java @@ -0,0 +1,7 @@ +/** + * Created by amyquispe on 4/30/15. + */ +public interface Instrument { + /* expected behavior: when play() is called, return a String that represents the Instrument's noise */ + public String play(); +} \ No newline at end of file diff --git a/exercises/5_OOP-and-Intents/oop/src/Musician.java b/exercises/5_OOP-and-Intents/oop/src/Musician.java new file mode 100644 index 00000000..58895b99 --- /dev/null +++ b/exercises/5_OOP-and-Intents/oop/src/Musician.java @@ -0,0 +1,7 @@ +/** + * Created by amyquispe on 4/30/15. + */ +public abstract class Musician { + /* expected behavior: when play_instrument() is called, return a String that represents the instrument's noise */ + public abstract String play_instrument(); +} \ No newline at end of file From ea15741263712284d39d2fee62b0a8fa0ac7275f Mon Sep 17 00:00:00 2001 From: abassawo Date: Fri, 8 May 2015 22:04:32 -0400 Subject: [PATCH 5/6] Init Commit --- homework/week-1/CheesyHoroscope | 1 + 1 file changed, 1 insertion(+) create mode 160000 homework/week-1/CheesyHoroscope diff --git a/homework/week-1/CheesyHoroscope b/homework/week-1/CheesyHoroscope new file mode 160000 index 00000000..f3ff190e --- /dev/null +++ b/homework/week-1/CheesyHoroscope @@ -0,0 +1 @@ +Subproject commit f3ff190e38790a4ee727c572ce52d36470bcf4fc From ceab9f4c560a12249b0d570a71afd41f6cad58d6 Mon Sep 17 00:00:00 2001 From: abassawo Date: Sun, 10 May 2015 10:59:40 -0400 Subject: [PATCH 6/6] commit 5_10_15 --- .DS_Store | Bin 12292 -> 14340 bytes exercises/AC_05-09-15/.idea/compiler.xml | 23 + .../.idea/copyright/profiles_settings.xml | 3 + exercises/AC_05-09-15/.idea/description.html | 1 + exercises/AC_05-09-15/.idea/encodings.xml | 4 + exercises/AC_05-09-15/.idea/misc.xml | 50 ++ exercises/AC_05-09-15/.idea/modules.xml | 8 + .../AC_05-09-15/.idea/project-template.xml | 3 + .../.idea/scopes/scope_settings.xml | 5 + exercises/AC_05-09-15/.idea/vcs.xml | 6 + exercises/AC_05-09-15/.idea/workspace.xml | 454 ++++++++++++++++++ exercises/AC_05-09-15/AC_05-09-15.iml | 12 + .../nyc/c4q/abassawo/BuggyClass.class | Bin 0 -> 2272 bytes .../AC_05-09-15/nyc/c4q/abassawo/Main.class | Bin 0 -> 2458 bytes .../src/nyc/c4q/abassawo/BuggyClass.java | 74 +++ .../src/nyc/c4q/abassawo/Main.java | 57 +++ homework/week-0/.DS_Store | Bin 6148 -> 6148 bytes 17 files changed, 700 insertions(+) create mode 100644 exercises/AC_05-09-15/.idea/compiler.xml create mode 100644 exercises/AC_05-09-15/.idea/copyright/profiles_settings.xml create mode 100644 exercises/AC_05-09-15/.idea/description.html create mode 100644 exercises/AC_05-09-15/.idea/encodings.xml create mode 100644 exercises/AC_05-09-15/.idea/misc.xml create mode 100644 exercises/AC_05-09-15/.idea/modules.xml create mode 100644 exercises/AC_05-09-15/.idea/project-template.xml create mode 100644 exercises/AC_05-09-15/.idea/scopes/scope_settings.xml create mode 100644 exercises/AC_05-09-15/.idea/vcs.xml create mode 100644 exercises/AC_05-09-15/.idea/workspace.xml create mode 100644 exercises/AC_05-09-15/AC_05-09-15.iml create mode 100644 exercises/AC_05-09-15/out/production/AC_05-09-15/nyc/c4q/abassawo/BuggyClass.class create mode 100644 exercises/AC_05-09-15/out/production/AC_05-09-15/nyc/c4q/abassawo/Main.class create mode 100644 exercises/AC_05-09-15/src/nyc/c4q/abassawo/BuggyClass.java create mode 100644 exercises/AC_05-09-15/src/nyc/c4q/abassawo/Main.java diff --git a/.DS_Store b/.DS_Store index a005452b9fbf82dc8a36e3cf601fd33d76c4b90d..d9bce0eea57c1d88d79566ad4f7f48ade6cb19fe 100644 GIT binary patch delta 1441 zcmd^9O)mpc6g|^wRYJmGS3YjAut*pc->MuMO*sL6>|nFWT`CuT5BEk` zrX(nK4RID)P`YH5n4A-$r?YL@gRUJFqC3DAjfWm&u6-93Eb!aN;E6_JEsEa2HjR}= zx+Fnhmt?C2z*o~&Z@*h&9yoSci; zlzY#Whd`r;5FqbIj{m$Eh!437pgbl-GV#IIWWt|nN`WNTrXy^b`frp=1j~YJ$q_1s zNj+PlQx0jaU|Y7Y-W=3PY70hI6`OXfdSIHx_zPp1oy}sX&lW^F*{g_$@Tc!zwBEGZ z-{xcw*&xkJ^3@``wRe?wWyYL);l2UmvwBqbecwY)*14IfiQ@2`^56P|r<3zvw@5oR delta 275 zcmZoEXh~3DU|?W$DortDV9)?EIe-{M3-B;7uy8RjC~!|y&=&=A7?^>A3=G9Un9q>M zP@Ge|@#13U$p$7Y6T2lg%L`O7Z8la;X9THa1Y#iI;NEyqoMp2*&l6@ww#_qz+L<=D zi5fC)zApBcg{LgIC@&{JFCD0kapOfZ_K6QT7+EI^sEci$q#(_>`Lg0emdR@B{F{%e z3o}lhD||!-sE`$8D$se{K*AN-i5oAzXP(S&qN@Xv2HD;Kp}`IT5==lY7y#KI4}#Pf QOwKWxxVc|dl@Y}r0IbwDU;qFB diff --git a/exercises/AC_05-09-15/.idea/compiler.xml b/exercises/AC_05-09-15/.idea/compiler.xml new file mode 100644 index 00000000..a8523149 --- /dev/null +++ b/exercises/AC_05-09-15/.idea/compiler.xml @@ -0,0 +1,23 @@ + + + + + \ No newline at end of file diff --git a/exercises/AC_05-09-15/.idea/copyright/profiles_settings.xml b/exercises/AC_05-09-15/.idea/copyright/profiles_settings.xml new file mode 100644 index 00000000..e7bedf33 --- /dev/null +++ b/exercises/AC_05-09-15/.idea/copyright/profiles_settings.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/exercises/AC_05-09-15/.idea/description.html b/exercises/AC_05-09-15/.idea/description.html new file mode 100644 index 00000000..db5f1295 --- /dev/null +++ b/exercises/AC_05-09-15/.idea/description.html @@ -0,0 +1 @@ +Simple Java application that includes a class with main() method \ No newline at end of file diff --git a/exercises/AC_05-09-15/.idea/encodings.xml b/exercises/AC_05-09-15/.idea/encodings.xml new file mode 100644 index 00000000..d8210482 --- /dev/null +++ b/exercises/AC_05-09-15/.idea/encodings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/exercises/AC_05-09-15/.idea/misc.xml b/exercises/AC_05-09-15/.idea/misc.xml new file mode 100644 index 00000000..b63395b0 --- /dev/null +++ b/exercises/AC_05-09-15/.idea/misc.xml @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/exercises/AC_05-09-15/.idea/modules.xml b/exercises/AC_05-09-15/.idea/modules.xml new file mode 100644 index 00000000..4037017d --- /dev/null +++ b/exercises/AC_05-09-15/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/exercises/AC_05-09-15/.idea/project-template.xml b/exercises/AC_05-09-15/.idea/project-template.xml new file mode 100644 index 00000000..1f08b887 --- /dev/null +++ b/exercises/AC_05-09-15/.idea/project-template.xml @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/exercises/AC_05-09-15/.idea/scopes/scope_settings.xml b/exercises/AC_05-09-15/.idea/scopes/scope_settings.xml new file mode 100644 index 00000000..922003b8 --- /dev/null +++ b/exercises/AC_05-09-15/.idea/scopes/scope_settings.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/exercises/AC_05-09-15/.idea/vcs.xml b/exercises/AC_05-09-15/.idea/vcs.xml new file mode 100644 index 00000000..6564d52d --- /dev/null +++ b/exercises/AC_05-09-15/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/exercises/AC_05-09-15/.idea/workspace.xml b/exercises/AC_05-09-15/.idea/workspace.xml new file mode 100644 index 00000000..89ffa7cd --- /dev/null +++ b/exercises/AC_05-09-15/.idea/workspace.xml @@ -0,0 +1,454 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1431182323423 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + file://$PROJECT_DIR$/src/nyc/c4q/abassawo/Main.java + 48 + + + + file://$PROJECT_DIR$/src/nyc/c4q/abassawo/BuggyClass.java + 71 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/exercises/AC_05-09-15/AC_05-09-15.iml b/exercises/AC_05-09-15/AC_05-09-15.iml new file mode 100644 index 00000000..d5c07432 --- /dev/null +++ b/exercises/AC_05-09-15/AC_05-09-15.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/exercises/AC_05-09-15/out/production/AC_05-09-15/nyc/c4q/abassawo/BuggyClass.class b/exercises/AC_05-09-15/out/production/AC_05-09-15/nyc/c4q/abassawo/BuggyClass.class new file mode 100644 index 0000000000000000000000000000000000000000..3c4dd746762dd05a4c9cc71820309249f93b7632 GIT binary patch literal 2272 zcmaJ>TT@e47+w2Za*}We5llcrTBxGoBGGy;s9d#J1PgejEgX^~91S^olF)IcZ`FU` zOh+C%t$px?hc--=(GGq0y$}5ZeebJdYu7%BhR)DtCVPM9+uwDqZ||3XKi>jy1jR5C zm@ZvJk`_5_;tS%re_6&*KU7Su~p=JrMFj$fvM zBL?KYugl5KS#L+C@ABMKMZi8dh)2E&p8s_h8kdf5+f6x*l(f@NfYnMr5^(( z_F|tvOAW)Jx1^4Fp6i)tmzEt!8n|g<3Ckwlmzocx#xZdVw+Yo%`+#S+XWhKrVIXH> z1$h&vamK`u%rT4+6QdY2;euEs{)buvcTIR8NzqzOQ;WAq1gEp6x@Z-b34paoOD*Li zzs+IhUZH4{d(|z`Emj#3$4y`2d=xn)wza|;YVyPVTPS44{j$SusF2diWJWFAh>eXYn;OrUzb> zq5Kk_XjD&!hSlSGOz+uxj6FRuy)C9^r#j^Nz#6`n%I0ZjuZXU*n?@x*T};vIe18mGC6q8*_Lp9Ol~67 z_3^LMI!25SF=`(HJnZWT7(V2~E@A!|M{$gBh8W{GPZj3<5hv)O;v_BF5q!gNx`9&$ zJ`x(adWE*vP{iI>(38m|J$V%?gutPfWV3TOc5R~R5rW;D*uDPtE2Q!>wyt(>agVRl zu+n;*g@U&-#1V;bNSfJjk_^|_@AS)rUy=qT5}_@xXf^E!=RjeE$R?WifAcL2?Flrs z7QZr0z1!kNa2A8~kS*#^%t46&uX{D%DhpG2)S?ckr`x)>en3N_yRC0w;J(5c`ZG}r zT`Bz#(;r5ds7ATRS*$F*oiQ{rDVdPvwN#r>XpyE)`02w?{(>gNE1!41Hq{y~(_4B) zTi2kg>#eQY0tYs>P|F?hYdpyur^w`hpEF+Z@pICd^;Gzkjgp%H+vHnTP4N|7H6FC} zZt1x*t%>ho^s0U9t;t@}lT65UTe?Qyc9eLHvDI^A>b#$_yAp#MdEFU}dfA+mWO9Wb z%^b@l3y@`yjn|0q>BsoHXJFa42M#u&(9XI=*0#XZiz3AWkJN#4iDBZd06G}jNx$L0b}6@2m!EDDvI literal 0 HcmV?d00001 diff --git a/exercises/AC_05-09-15/out/production/AC_05-09-15/nyc/c4q/abassawo/Main.class b/exercises/AC_05-09-15/out/production/AC_05-09-15/nyc/c4q/abassawo/Main.class new file mode 100644 index 0000000000000000000000000000000000000000..ca56300491f3ee215402eacd8da76240882fecef GIT binary patch literal 2458 zcmZuyTXz#x6#h;!$t39@G;IonqM;T{Zv+$pDWIi_M$-b8a#duK4Cz2_%uGsyB3|$= zzO(oNys8fYWi6L4zW5*X!JolW>UUaIs79uzm!w^oZI1@t;vT`^pSI$Z6yd2(B@qP@w$f~#y zLmxhn!$mph5#;1fUJivG7`P~hODc*o#G)KbIb4zqACzRXjV+;us|?1 zd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+ } + + public static int sum_recursive(int i, int[] A) { + if (i == 0) { + return 0; + } + // return A[i+1] + sum_recursive(i+1, A); + return i + sum_recursive(i + 1, A); //doesnt fix it + } + // sample: sum+recursive(3, int[] A){ + + + //} + + public static int sum_divide_and_conquer(int lo, int hi, int[] A) { + int mid = A.length/2; + if(lo==hi) { + return A[0]; } + return sum_divide_and_conquer(lo, mid, A) + sum_divide_and_conquer(mid, hi, A); + } + +} diff --git a/exercises/AC_05-09-15/src/nyc/c4q/abassawo/Main.java b/exercises/AC_05-09-15/src/nyc/c4q/abassawo/Main.java new file mode 100644 index 00000000..3bbbd467 --- /dev/null +++ b/exercises/AC_05-09-15/src/nyc/c4q/abassawo/Main.java @@ -0,0 +1,57 @@ +package nyc.c4q.abassawo; + +import com.sun.deploy.util.StringUtils; + +import java.util.ArrayList; +import java.util.Scanner; + +public class Main { + + public static void main(String[] args) { + System.out.println(reverseTxt("Quispe")); + System.out.println(upperCase("my name is bill cosby")); + System.out.println(reverseWords("my name is bill cosby")); + } + + public static String reverseTxt(String txt){ + String output = ""; + for (int i = txt.length() - 1; i >= 0; i--) { + output += txt.charAt(i); + } + return output; + } + + public static String upperCase(String txt){ + ArrayList words = new ArrayList(); + Scanner scanner = new Scanner(txt); + String output = ""; + while (scanner.hasNext()){ + words.add(scanner.next() + " "); + + } + for (String word : words) { + output += word.substring(0, 1).toUpperCase() + word.substring(1); + } + + return output; + } + + public static String reverseWords(String x) { + String output = ""; + ArrayList words = new ArrayList(); + Scanner scanner = new Scanner(x); + while (scanner.hasNext()){ + words.add(scanner.next() + " "); + + } + + for (int i = words.size() - 1; i >= 0; i--) { + output += words.get(i); + } + return output; + } + + public static String parseAddX() { + return "fixme"; + } +} diff --git a/homework/week-0/.DS_Store b/homework/week-0/.DS_Store index e5d889c411f67db248b5f0e6d3154e1d09fab2b0..4cbccf2ce7ee32b6bfc46e3c21f746aa15961dcf 100644 GIT binary patch delta 336 zcmZoMXfc=|#>B!ku~2NHo+2an#(>?7i#IScF>-I_Ve(-V$VoR0PR`FQU;qKel<>(s zOezAo`7SOgr6tJ>3>S-~)fpI|f+?7S1sO=%nI3>uPL5!1=!NkHho7p+|Ie_7{c_H(6 X=E?jbjvR~(3`{^%7&b?UtYHQKxaLeI delta 75 zcmZoMXfc=|#>B)qu~2NHo+2aj#(>?7jLefSu&Qh}V9{Wltifi#S%gEFWnx3@W_AvK d4xrM_f*jwOC-aLqaxee^BLf4=<_M8B%mC6*5k~+3