Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ compileJava {
}

dependencies {
compile group: 'se.cygni.snakebot', name: 'snakebot-client', version: '0.1.17', changing: true
compile group: 'se.cygni.snakebot', name: 'snakebot-client-util', version: '0.1.17', changing: true
compile group: 'se.cygni.snakebot', name: 'snakebot-client', version: '0.1.18', changing: true
compile group: 'se.cygni.snakebot', name: 'snakebot-client-util', version: '0.1.18', changing: true
}

task run(type:JavaExec) {
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/se/cygni/snake/SimpleSnakePlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public class SimpleSnakePlayer extends BaseSnakeClient {
private static final int SERVER_PORT = 80;

private static final GameMode GAME_MODE = GameMode.TRAINING;
private static final String ARENA_NAME = "official";
private static final String SNAKE_NAME = "The Simple Snake";

// Set to false if you don't want the game world printed every game tick.
Expand All @@ -40,6 +41,9 @@ public class SimpleSnakePlayer extends BaseSnakeClient {

public static void main(String[] args) {
SimpleSnakePlayer simpleSnakePlayer = new SimpleSnakePlayer();
if (GAME_MODE == GameMode.ARENA) {
simpleSnakePlayer.setArenaName(ARENA_NAME);
}

try {
ListenableFuture<WebSocketSession> connect = simpleSnakePlayer.connect();
Expand Down