Esempio n. 1
0
        private TblRounds updateRoundPlayerData(string playerMove)
        {
            TblRounds updatedRound = _gameDao.getRoundInProgress();

            if (string.IsNullOrEmpty(updatedRound.FirstPlayerMove))
            {
                updatedRound.FirstPlayerMove = playerMove;

                return(updatedRound);
            }
            else
            {
                updatedRound.SecondPlayerMove = playerMove;

                updatedRound.Winner = _gameDao.CheckingHands(updatedRound);

                return(updatedRound);
            }
        }