From 19888b742f442a92cc35b71253c60592afd4ecbc Mon Sep 17 00:00:00 2001 From: Justin Senn Date: Mon, 6 Feb 2023 16:18:45 +0100 Subject: [PATCH] update --- src/main/java/Snake/SnakeView.java | 9 +++++++++ target/classes/Snake/Snake$1.class | Bin 0 -> 778 bytes target/classes/Snake/Snake$SnakeDirection.class | Bin 0 -> 1195 bytes target/classes/Snake/Snake.class | Bin 0 -> 3438 bytes target/classes/Snake/SnakeView.class | Bin 0 -> 635 bytes 5 files changed, 9 insertions(+) create mode 100644 target/classes/Snake/Snake$1.class create mode 100644 target/classes/Snake/Snake$SnakeDirection.class create mode 100644 target/classes/Snake/Snake.class create mode 100644 target/classes/Snake/SnakeView.class diff --git a/src/main/java/Snake/SnakeView.java b/src/main/java/Snake/SnakeView.java index f3994b4..847cff4 100644 --- a/src/main/java/Snake/SnakeView.java +++ b/src/main/java/Snake/SnakeView.java @@ -1,10 +1,19 @@ package Snake; import java.awt.*; +import java.util.ArrayList; public class SnakeView implements Drawable{ + private final int cellSize; + private ArrayList positions; + + public SnakeView(int cellSize) + { + positions = new ArrayList<>(); + this.cellSize = cellSize; + } @Override diff --git a/target/classes/Snake/Snake$1.class b/target/classes/Snake/Snake$1.class new file mode 100644 index 0000000000000000000000000000000000000000..770fd9f956f768e5c281e2cf1f80d62f2fc62361 GIT binary patch literal 778 zcmaJkA3)`h#v9`2UTa_wUEo!1KeneBi68SKK?L(i2Wm2YHcg*fm|Bo*| ztBEnj^auE(jCaOH@Ig15d*_^-xo76y`SJ7HDS*eg;~<5!4a-FaS%%eq$d5(M#IlKX z83{j;DrCr>@L(chhV@GIp#5*b&4VP z$PZ*FlPAV{kGAiqkziP8%TRPDZ-yco@L@nqv8{X_?D0ryd`1@f3HOhwH)q)Ct4ZXG zrqnwe)5>jaN(CFCAE;P{haHiO)yT#zhPjz$(^|>y+@i>K=Uiu>38Qd>`(eHe8D-Z_W{-m1D6SArf`*D zb_y>Mv<>_S3wbPJ85d9@kL#3g;2!Q%et>7FQ%+-({IbTiN(#^bKq_DfxqX`yoxcOs gtQb`lHz`}#qIladTiB*tqzWlwYfo3`ZuEJ%Uo~r_{Qv*} literal 0 HcmV?d00001 diff --git a/target/classes/Snake/Snake$SnakeDirection.class b/target/classes/Snake/Snake$SnakeDirection.class new file mode 100644 index 0000000000000000000000000000000000000000..dcc42de2e7baeaf06af8b932769c420141bb86c7 GIT binary patch literal 1195 zcmaJ>Yi|-k6g>kA3+uEXeQ2@RTB|})XtnrStTlbuCWIQd#SlMjamB6MC0UmKE~SZW zG@5?)M;Y&oYr3QgBy)4`oO|wLPWI=ouRj1h!*dl8hOFV5AFZ-H=jFL>dsfT0J8lvT z3P%iahREJ4hUwb>!MZ>vIFbS#d%gW~Yga@rac~h))_302MPQU8B?GmMO^LY7k-->) zI^TFv+uJZ0a&L##(J+BY6=NJ%aFt56oQ`WTjOPor1M|o%JEq$%@9ZDY47!FauBn*j z$l*HGJ_l^Ly+f*bWI8=-=RHFuAIe^H%x+f?1q|P_-L@XCAP6M?EXNJZF~qC3Yx^q< zlVPeLbGy(;Ag0m$vk4><;0dIJSKwGcQ4B9T=`zgZ3q!}JLVuykTIU^2o~qfdRqq|{ zTi&j@?@(m%9~~5i?UW%?>$FU#VS2Wp2zV6NJS4iz#ZAzI`X6j+H)+^y*YtZH;iCCM zgEUZWIl(4Mp+vE->aZSGbOz1n^t_g}X^SZ|DYlY$Gh(eOyh)1T&xIb-3Jlx{3#)bu3FvC9MfP1&vgoP!!0i-@%&EKB7ib=|eS|u|93L8Si7n zxHwA!4^asyjDSM_Mhuyo(G$!cBPyL+igZ-z+>S{{lg^#EbVg2*KSo+~Ke#L<==KpF X(_I8l@KjozK1#G^LNn-CS)KX~g4^(f literal 0 HcmV?d00001 diff --git a/target/classes/Snake/Snake.class b/target/classes/Snake/Snake.class new file mode 100644 index 0000000000000000000000000000000000000000..2a625104905bc5a7148d61011ae633ea1bf12bf2 GIT binary patch literal 3438 zcmbVO+jA4w9sZ6ju~!We8U?zV$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