Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. def main():
  2.     jugA= Jugador()
  3.     jugB= Jugador()
  4.     listajugadores=[jugA,jugB]
  5.     print ""
  6.     print "-------------------------------"
  7.     print "-        Tonero de domino     -"
  8.     print "-------------------------------"
  9.     print "1- A 2 partidas"
  10.     print "2- A 4 partidas"
  11.     print "3- Al primero que llegue a 100 puntos"
  12.     respuesta=int(raw_input("Elige tipo de torneo:"))
  13.     #elijo tipo de jugadores Humano o Cpu (y su inteligencia)
  14.     jugA,jugB = elegirJugadores()
  15.     if respuesta==1:
  16.         for f in range(2):
  17.             jugA,jugB = partida( jugA,jugB)
  18.             jugA.MarcadorGeneral += jugA.marcador
  19.             jugB.MarcadorGeneral +=jugB.marcador
  20.         print "Final:"
  21.         print jugA.marcador,jugB.marcador
  22.     elif respuesta==2:
  23.         for f in range(4):
  24.             jugA,jugB = partida( jugA,jugB)
  25.             jugA.MarcadorGeneral += jugA.marcador
  26.             jugB.MarcadorGeneral +=jugB.marcador
  27.         print "Final:"
  28.         print jugA.marcador,jugB.marcador
  29.     elif respuesta==3:
  30.         punto=0
  31.         while (punto<100):
  32.             jugA,jugB=partida( jugA,jugB)
  33.             jugA.MarcadorGeneral += jugA.marcador
  34.             jugB.MarcadorGeneral +=jugB.marcador
  35.             if jugA.marcador>100 or jugB.marcador>100:
  36.                 print "Final puntuacion:"
  37.                 print "Jugador A: ",jugA.marcador,"Jugador B:",jugB.marcador
  38.                 punto=120
  39.  
  40.  
  41.  
  42.     pass
  43.  
  44.  
  45. if __name__ == '__main__':
  46.     main()