Skip to content

Commit e91fcbb

Browse files
Create Snakelogic.java
1 parent 8aa5be3 commit e91fcbb

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Snakelogic.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
class SnakeLogic {
2+
public static void main(String[] args) {
3+
int[][] board = new int[10][10];
4+
int x = 5, y = 5;
5+
board[x][y] = 1;
6+
System.out.println("Snake at position: "+x+","+y);
7+
}
8+
}

0 commit comments

Comments
 (0)