// Make the board, start the server, and connect the clients. public static void Run(GetNextMoveDelegate getNextMove, GetTotalMovesDelegate getTotalMoves, GetMoveNumberDelegate getMoveNumber, GameBoard aBoard) { GetNextMove = getNextMove; GetTotalMoves = getTotalMoves; GetMoveNumber = getMoveNumber; f = new DaedalusGameManagerForm(aBoard); while (!f.ServerIsRunning) ; IPAddress host = IPAddress.Parse("127.0.0.1"); Client client1 = new Client(host, 2525); Client client2 = new Client(host, 2525); f.ShowDialog(); }
public static void Run(GetNextMoveDelegate getNextMove, GetTotalMovesDelegate getTotalMoves, GetMoveNumberDelegate getMoveNumber) { Run(getNextMove, getTotalMoves, getMoveNumber, null); }