Revert "revert: "thistitlemakesthebothappy: replace the client with something better""

This commit is contained in:
ThatGamerBlue
2022-06-28 23:51:05 +01:00
committed by GitHub
parent 09b0a5f2d6
commit aa1f0a2fbc
5 changed files with 404 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
package com.thatgamerblue.snake;
public enum Direction {
UP(0, -1, "^"),
DOWN(0, 1, "v"),
LEFT(-1, 0, "<"),
RIGHT(1, 0, ">");
public int xOffset;
public int yOffset;
public String display;
Direction(int xOff, int yOff, String display) {
xOffset = xOff;
yOffset = yOff;
this.display = display;
}
}