Beispiel #1
0
 /// <summary>
 /// Creates a local match.
 /// </summary>
 public static IEnumerable<ITenhouReceiver> CreateLocalMatch()
 {
     var server = new LocalLobbyServer(new SeedGenerator());
       for (var i = 0; i < 4; ++i)
       {
     var connection = new LocalConnection(server);
     var sender = new TenhouSender(connection, new LogOnInformation("AccountId" + i, "M", 0));
     var client = new AutoJoinLobbyClient(sender);
     var ai = new TsumokiriAI(sender);
     var receiver = new TenhouReceiver(connection, sender, client, ai);
     connection.Connect();
     yield return receiver;
       }
 }
Beispiel #2
0
 public LocalConnection(LocalLobbyServer server)
 {
   _server = server;
 }