예제 #1
0
        public override GameResolveStatus resolvePotentialWinners()
        {
            GameDao gameDao = new GameDao(db);
            IEnumerable <ProductPlayed> gameResults = gameDao.findProductPlayeds(game.ProductInGames.First().ProductInGameID);  //winner = 0 and orderd highest to lowest

            resolve(gameResults);
            return(game.GameState.ToUpper() != "COMPLETED" ? GameResolveStatus.OUTSTANDING : GameResolveStatus.RESOLVED);
        }