Browse Source

DummyBot -> EnemyBot

master
Your Average Code 11 months ago
parent
commit
9c555c9cde
2 changed files with 3 additions and 3 deletions
  1. 2
    2
      src/EnemyBot.java
  2. 1
    1
      src/RumbleBot.java

src/DummyBot.java → src/EnemyBot.java View File

import java.util.Random; import java.util.Random;


public class DummyBot extends Bot {
public class EnemyBot extends Bot {
protected final Random random = new Random(); protected final Random random = new Random();


protected DummyBot(String[] args) {
protected EnemyBot(String[] args) {
super(args); super(args);
} }



+ 1
- 1
src/RumbleBot.java View File

public static void main(String[] args) { public static void main(String[] args) {
if(args.length == 0) { if(args.length == 0) {
String[] dummyArgs = {"localhost", "63187"}; String[] dummyArgs = {"localhost", "63187"};
DummyBot dummy = new DummyBot(dummyArgs);
Bot dummy = new EnemyBot(dummyArgs);
new Thread(dummy).start(); new Thread(dummy).start();
} }



Loading…
Cancel
Save