def test_getWinners():
    kingdomCards = [d.Adventurer, d.Ambassador, d.Baron, d.Council_Room, d.Cutpurse, d.Embargo, d.Feast, d.Gardens, d.Great_Hall, d.Village]
    print("Tetsing getWinners")
    p = d.initializeGame(2, kingdomCards,111)
    p.discard[0].append(d.Province)
    r = d.getWinners(p)
    assert(r!=-1)
    print("Player Won:")
    print r
def test_getWinners():
    ##kingdomCards = [d.Adventurer, d.Ambassador, d.Baron, d.Council_Room, d.Cutpurse, d.Embargo, d.Feast, d.Gardens, d.Great_Hall, d.Village]
    print("Tetsing getWinners")
    p = d.initializeGame(numPlayers, kingdomCards,randomSeed)
    p.discard[0].append(d.Province)
    p.discard[1].append(d.Province)
    for player in range(numPlayers):
        print "Score of Player: %d" %player
        print d.scoreFor(player,p)
    r = d.getWinners(p)
    assert(r!=-1)
    print("Player Won:")
    print r
Esempio n. 3
0
   def act56(self):
      if self.__collectCov:
         self.__cov.start()
      try:
         __result = mydom.getWinners(self.p_GAME[0])

      finally:
         if self.__collectCov:
            self.__cov.stop()
            self.__updateCov()
      __result_REF = otherdom.getWinners(self.p_GAME_REF[0])

      assert __result == __result_REF, " (%s) == (%s) " % (__result, __result_REF)