private void CheckIfHaveConnected() { if (clientSession.UniqueID <= 0) return; //ncrunch: no coverage List<MessagingSession.Message> messages = clientSession.GetMessages(); if (messages.Count == 0) return; //ncrunch: no coverage isWaitingToConnect = false; //joinTwoHumanNetworkButton.Text = "Join Human vs Human (networked)"; scene.Hide(); game = new TwoHumanNetworkGame(clientSession, (Board.Data)(messages[0].Data)); game.Exited += scene.Show; }
private void StartHumanVsSmartAiGame() { scene.Hide(); game = new HumanVsAiGame(new HumanVsSmartAiLogic(boardWidth, boardHeight)); game.Exited += scene.Show; }
private void StartTwoHumanLocalGame() { scene.Hide(); game = new TwoHumanGame(boardWidth, boardHeight); game.Exited += scene.Show; }