diff --git a/src/snake.ts b/src/snake.ts index 27258b7..3896783 100644 --- a/src/snake.ts +++ b/src/snake.ts @@ -60,7 +60,6 @@ class SnakeCore { foodAte: boolean; constructor() { - // TODO: Add CSS stuff for page this.canvas = document.getElementById('snake') as HTMLCanvasElement; this.context = this.canvas.getContext('2d') as CanvasRenderingContext2D; this.grid = 25; // size of grid squares @@ -213,7 +212,6 @@ class Bot { } } - // TODO: Fix trim function trim() { let reachedSnake = false; this.path.push(this.pathUntrimmed.pop() as Point); // Push food location @@ -240,13 +238,6 @@ class Bot { } } - /* - values: - 0 = left - 1 = up - 2 = right - 4 = down - */ nextMove() { // Get new path to food if (this.path.length === 0)