示例#1
0
        private async Task <Move> PlayersShot()
        {
            var shootingCoord = await UserClickedOnCoordinateBoard();

            CoordinateTask = null;

            MoveTask = new TaskCompletionSource <Move>();
            var move = CurrentGame.PlayerMove(shootingCoord);

            MoveTask.SetResult(move);

            return(MoveTask.Task.Result);
        }