private void OnAnotherMove(Move move) => gameWindow.Dispatcher.Invoke(() => { board.Move(move); viewBoard.InvalidateVisual(); socket.SendOk(); turnSelf = true; if (board.IsOver()) { ShowResult(); } Console.WriteLine("Receive Move"); });
private void OnAnotherMove(Move move) => gameWindow.Dispatcher.Invoke(() => { board.Move(move); viewBoard.InvalidateVisual(); socket.SendOk(); turnSelf = true; if (board.IsOver()) { ShowResult(); } Console.WriteLine("Receive Move"); });