From c2f49ff0a27f60a908f3b255fc5d8819df99f4d2 Mon Sep 17 00:00:00 2001 From: fdai4616 Date: Tue, 7 Feb 2023 21:55:36 +0100 Subject: [PATCH] update --- src/main/java/PingPong/Ball.java | 4 ++++ .../BattleShip/AIGridGUI$DirectionCompare.class | Bin 0 -> 1093 bytes .../BattleShip/AIGridGUI$SetShipsListener.class | Bin 0 -> 3319 bytes target/classes/BattleShip/GridGUI.class | Bin 0 -> 2132 bytes target/classes/Snake/Controller$1.class | Bin 0 -> 767 bytes target/classes/Snake/Controller$2.class | Bin 0 -> 1202 bytes target/classes/Snake/Controller$3.class | Bin 0 -> 1280 bytes target/classes/Snake/Controller$GameState.class | Bin 0 -> 1166 bytes target/classes/Snake/Controller$MoveAction.class | Bin 0 -> 1135 bytes target/classes/Snake/Game.class | Bin 0 -> 1081 bytes 10 files changed, 4 insertions(+) create mode 100644 target/classes/BattleShip/AIGridGUI$DirectionCompare.class create mode 100644 target/classes/BattleShip/AIGridGUI$SetShipsListener.class create mode 100644 target/classes/BattleShip/GridGUI.class create mode 100644 target/classes/Snake/Controller$1.class create mode 100644 target/classes/Snake/Controller$2.class create mode 100644 target/classes/Snake/Controller$3.class create mode 100644 target/classes/Snake/Controller$GameState.class create mode 100644 target/classes/Snake/Controller$MoveAction.class create mode 100644 target/classes/Snake/Game.class diff --git a/src/main/java/PingPong/Ball.java b/src/main/java/PingPong/Ball.java index 1e75d0c..6702635 100644 --- a/src/main/java/PingPong/Ball.java +++ b/src/main/java/PingPong/Ball.java @@ -30,4 +30,8 @@ Random random; yVelocity = randomYDirection; } + public void move(){ + x += xVelocity; + y += yVelocity; + } } diff --git a/target/classes/BattleShip/AIGridGUI$DirectionCompare.class b/target/classes/BattleShip/AIGridGUI$DirectionCompare.class new file mode 100644 index 0000000000000000000000000000000000000000..6155fb49f239808eacdc7f7d42973b6018a0b34b GIT binary patch literal 1093 zcmZuwTXWJt6#f>FKpJR@h}J7Am8+%J+XI!c(y?ZSX`P|+9_UKbNs~@k>YwtZbIy0p{{8psH-I;Il|~G42?+()kYw0+rwd{7-idME+|~9S z<9Pp*R@yThJ`{#+b?mcq-Qf&Labk>1TMUKnvKuWKDWoOH3Ra*nsHggc-ZXV<)I1!V z5*IP-7?vU04Dm{}FC&Xp395oM+97E@?9IxFMmS;3jS{tj%I* zmf$1qFi01=IpK$&DbI>l?JgiF&pd7`xP!Y4>7ifUk?q2lfZdQW+*j}bMdA+N49!YZ zgfQXOa&J|W@Q7;kl9>p@Z2GF|!lsPZ=eWWaw5olEM8`fR?N_^o#SbQD1MVE@1Cun$JEDTPRgiZfMBdqr1qx3@DNN@-3LK$Bu;AukI7r2U7HXwvU08d9jx{P(j}c@ z*r0EcFkqK>Li>V`LKzi05#D2CgrM08xIPlbWzRLH$o$0hx^Jdf|4QB{=QoeD=%Yi< z9IB|fF_A-^b}@CA*c$=+YeKv1nOgl1vJF~O+`CHbC#!fQnSeNfr(XC?G(Ee8XP({0 N3$ij{W7x(^;6LYf`c(h` literal 0 HcmV?d00001 diff --git a/target/classes/BattleShip/AIGridGUI$SetShipsListener.class b/target/classes/BattleShip/AIGridGUI$SetShipsListener.class new file mode 100644 index 0000000000000000000000000000000000000000..5478518ad5db1452e7baa3f03f0e16913b5d1992 GIT binary patch literal 3319 zcmcImX>b%(5dJz@GMmkige(TbAqxgcK(Y#+ETSZGtR?{y3*?3W*I)OW zgMYuW55PruwipE{)DX}y4n>4n^@fy|Xib^j(IxTaj+tD3WxTpoNF{L_O;?Jva0o>* zWxCa85h@$=orr}HM6rgDjuPmE@=Zps5w(nTM|5TTCXtYAVUd|OJ8Ur6|)- zu44i!2vwfC(I=y#SEOaM$?kE*Qne%$cW^LvkCPCDi8Zy2qbd&yj%hf}56gGsWfU)F zXAvDUFq1GYVF`mlqjgGJtz#C>AOsD|@=zt5;%Ct#O)I*@af|^4bWADN=%~dULW#@x zueMiNhRSm=0Ae3gH68bS%O}?3oWY8(m{c)+!w{-4Ux`E?%tT z5-cH1>M}Y-gPl$o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 zA u>N!*7@uvvz><_l^j4i|h7WsA+clmw=ORO9mHEp%_h{0AkG}vfovWV! literal 0 HcmV?d00001 diff --git a/target/classes/Snake/Controller$2.class b/target/classes/Snake/Controller$2.class new file mode 100644 index 0000000000000000000000000000000000000000..0beba0426960d0292bc77f299b603cf79e066b27 GIT binary patch literal 1202 zcmZuw*-{fh6g`~)Ly}1dVG)riFKRr3uDf)rR!Lh zaFY`ZEppfNlH;_St>4as(Tb3Uu#O0HhWH*o;D*KR9V55BCkm2IPnxzVrx=2%k$ea- zv}uUzXh(wR^?D4U9bOXal1stR*AOqcc(I!ap%Yyix^-MrQoZ$3S5)$_#><{4s_55s z^x_6Xq$E6#?})r9DrBSqsg;+PkuCoA!>1c}K@xq!^l|SrRToM^=^T(C{imFg6rO0n-@Oa8Jj5Rmk=R z1|9b#ccltq=onW)B5M{u5^mO^Q z*jdw)!d8yDQVpffjN~b;Ij2Y$(UvuBv05%|3wMKWTZAOCPJvr_?wV>{1DjN%FmyI( zB_}c@!u_CY!u{m9B~fG;O!V3^CkA8gScfo(nS4nge)GUSl75=$qBE0UD-GW#! zmCd%RP99S#gv{Fo%kil2D?;u%MIG~4VCdn+;%r$;$Nsl8lur9aZ8lB2=u~`Pt*cbv zCC8)w)|YK6;he=iPY^qF*`d@q0eT$_kHF$_^}guI1?Y?5387DEHbrZNgwvyEVCnDB zzWJPIG`0{2Siy4|yQ?g`K!#St_th9NCg~AZwZ7K0a_LjBQ$$bDag5>Wq9=HcJ~chT z&>5mtaQGY}Uodn@A3H`@9sL{+l%XJ$p&?2Jc#A03(Sr?IzlVWMvhV?m*upA4{$)0I uX*Ne`z9N&;bh-%vV}QmPng=k8IUkGRH7O`0h9&wZYN^nanmvZ)>E1tXJ`?`{ literal 0 HcmV?d00001 diff --git a/target/classes/Snake/Controller$3.class b/target/classes/Snake/Controller$3.class new file mode 100644 index 0000000000000000000000000000000000000000..acc6571238892782c61c7caebe8b8ac43385bd9e GIT binary patch literal 1280 zcmZuw+foxj5IqwDn}iLQa1oH38kLI@6fbB{fyhn6MMA|YpB$1Q3~Y9(-3j2Y_yN94 z0ap3o2lz`?S@vu;BEg59?e00#edhG^&)?sF0C<616d^Pi2%Bg`6GI|r^L>%ZIJR;f z%MxyKilIsEN-sG{yV?5fbPN$h4a7_|!(?dNH z6fI~q&}O0?34+(>V~Cb`S>zN~f}#IPz2s7DHyuSMx(sxixTaI})u+0EG8mf`+m?1o zm+v*vhwBW@W#M_eB=S-m5tE?QmN-^Al8#`2!PMo3H+aPp#fcb(Fl^w4iJQ2^&{8c} zJ3vJ|p|r=)HIlv1A*WoboF2{V^S4dh!Ci(pVe`_H+tQNi6GM39Lsgtn6Jr=>h-euu zQ`200YBAi$gn^WaNv(N6q_#~&Tyemqt+YZ9O-yNdnyQ!30z5YH1Wy?nl`IRFp~EM8 zobrx{XKG6asjbiO+(6pIj4sixuX71Ols)Af7@)=u_?P8JDkTnutx|IZB^^5}Jtb^i zfaIue4#`0oGER}Y+?tiPSgVw`g}cSKEs7+vPJvr_?n>}p3Yt*QYe94L>ofm}{g-?dM17){SlD0X2LXv#&Z)Qsu_!go){8Nj&{-(5 zU>7XMBOOr}+FeB)po(cqI9gh6%@aqOTMB_y$n2}n$1kBC|Skjwlfm%$R2iPQ?6Yy|s7 jpfKK$6T(|$=^v&SzKRV$(t>yNPXye_q=9I`=4{^|Crm2{ literal 0 HcmV?d00001 diff --git a/target/classes/Snake/Controller$GameState.class b/target/classes/Snake/Controller$GameState.class new file mode 100644 index 0000000000000000000000000000000000000000..7c0b6b785f7e4cae02e4f09329f85d6457095b49 GIT binary patch literal 1166 zcmaJ=?@!ZE6g_Y2)~ytn6G0}3BFYB3fr6+*f+3(J3lOVIh@T$giN*4obS;Vhm5xM+ zM#E?SDC2#P>IUkzWOw)8bAO!M(;q*-dv zY@>i{41I0Ds*Db3<{|eYvH6x^zSvQ{;_+s)+7WQVfOuCsC#VLx|EP`Y7$d5Su5`mC zhQZEOapiicomkP=A5d9y!Z^|jzV>;#cn$+RT(VDkAj9+a}|sJwiwH50cyP=n&At-8Jc*+kh>^A276sf z5$Iy_fXb((hs53#91Wi3z$>W zBgYu|q|=?_+T|uHYIV$L%xun5Vu}~3z@R8Fl>P>`oopfLY#S|@&UUIrcmA722KQ<9 z8SAyUxcrrB^EZ;mxOs%6cE%0unA*9O(vEe4i6iu?RnK3>h*x`nIm#t4kB8bW;4xYC L0x&G#$#UTr{*>}o literal 0 HcmV?d00001 diff --git a/target/classes/Snake/Controller$MoveAction.class b/target/classes/Snake/Controller$MoveAction.class new file mode 100644 index 0000000000000000000000000000000000000000..824eb043863d2ff0c6d973e4c6f5e7edb690992d GIT binary patch literal 1135 zcmah|+foxj5IvnlmV||bs2~9ZH6jGaf_Dv2P~kTTH+laTvlAK9O+;MkFS*4l2Me7mAr zah4qEs1-tddS*v67%-7WhLEf}zKFoaB8(6zAMVeZucaiixNP8xiK`eQWV-1POh+Ep z)P^mquBZ~|y>_`~VgxzH*|QJCwz8EVG;um|e%X9woH2|WxNc%X`{lZE@-0(>@wO%< zr>lW(n7D~sgjAsGx#?AfOX%;+hzoWbQwHvsn8pmDuMs-jnSCHsD_g?Ebf;@~F=loM zi%pAm8m0gFB-WW1AzgN)*s2}u3jdwG>#`*lUAL!CEc|8o4eXJ~TB&4z$bMRc>OPV}|ZMeXQYscNH>~GqK5u4PuSMw|4 zg`@eV+hmG53ZZvP1Zu+z6qoXql)_(k?H~}$Kh+*+1I#ySX;}BJ!V(5Tbw?wTt$t&Y z=eCzWQH&Q4FObRTKNM=fpP&H3EK9HXJgYcS4d-|t2%oPBHieQ;pm34~%}rNJE(9qyH!JT8h^( zsBz=axLG84uVWZzJc_><_q+qU*upO2F77er{m_%<+5G`uV|a*1;hDu_K69*(anL8c RKjnZ+t0Vk*vRGct{R95Z4{-nh literal 0 HcmV?d00001 diff --git a/target/classes/Snake/Game.class b/target/classes/Snake/Game.class new file mode 100644 index 0000000000000000000000000000000000000000..6d095ca8624966b8e11acd3340777c94a8a6dcc0 GIT binary patch literal 1081 zcmZ8gZBNr+6g>}g>(-5}0|cx1f+7@DCiA@m6nV>%O%os^(+^sW!YUw?l51h9fP8ip{eLP;ZrxPX3Sf3x$R?H}gf9UM9J zwm^K@_1*TWz_2-ARgn-#@A~#vC%^Cdjpn%q6`Dk+1Y%~XBx^#$J{Sru0v#eq13cL>NQOe@`f~v>f^B)Q|A9jp2o92i;2;-)6LPOGt@knO zwcc%>wd&56D^*F#gI|;v8q=8PJ(oYSmN%XDKAl;4c^UN=IuJSWds#26=-O%*YK@*= z=pbn+U8HOBHDkrP$klYMgE1@K#dxiQ2}|u_GKd*g!cZ=7%}N?cBYuIKd?fhjVy0#& zM$CvCs*&hmcKUE-7sKH)LnhS_rmPw