package li.seiji;


import li.seiji.minichess.Game;
import li.seiji.minichess.InvalidMoveException;
import li.seiji.minichess.Player;
import li.seiji.minichess.player.IMCSPlayer;
import li.seiji.minichess.player.RandomPlayer;

import java.io.IOException;

public class Main {

    public static void main(String[] args) throws InvalidMoveException {
        IMCSPlayer netPlayer = null;
        try {
            netPlayer = new IMCSPlayer("imcs.svcs.cs.pdx.edu", 3589, "lazycat", "31337");
            netPlayer.setGameConfig("12815", Player.BLACK);
        } catch (IOException e) {
            e.printStackTrace();
        }

        RandomPlayer randomPlayer = new RandomPlayer();

        Game game = new Game(netPlayer, randomPlayer);
        game.run();
    }
}

@@ -488,32 +488,84 @@
 %22);%0A            
+netPlayer.setOfferGame(Player.BLACK);%0A            //
 netPlayer.setGam
@@ -580,10 +580,10 @@
 %22128
-15
+23
 %22, P

Implement Game-Offering Main