Esempio n. 1
0
        private void Window_MouseDown(object sender, MouseButtonEventArgs e)
        {
            if (!canShot)
            {
                MessageBox.Show("It's not your turn!");
                return;
            }
            int row = 0;
            int col = 0;

            GetClickCoordinates(out row, out col);
            gameClient.SendShot(row, col);
        }