Exemple #1
0
from plot.iterator import PlotIterator
import chess.game
#import skins.RomeoAndJuliet as skin
import skins.Zombie as skin
#import skins.WarStory as skin

game = chess.game.randomGame()
iterator = PlotIterator(skin.plot, game)
print iterator.generatePlot()
from plot.iterator import PlotIterator
import chess.game

# import skins.RomeoAndJuliet as skin
import skins.Zombie as skin

# import skins.WarStory as skin

game = chess.game.randomGame()
iterator = PlotIterator(skin.plot, game)
print iterator.generatePlot()
Exemple #3
0
  
  print "--------- BEGINNING OF PGN %02d ---------\n" % (s)
  choice = random.randint(0, len(game)-1)
  f.write(str(s) + ' ' + str(choice) + '\n')
  
  pgn = game[choice].makePGN()
  if pgn.endswith('1/2'):
    pgn = pgn[:-3]

  print pgn

  print "\n----------- END OF PGN %02d -------------\n" % (s)
  
  i = 1
  for g in game:
    iterator = PlotIterator(skins.Zombie.plot, g, separator="\n\n")
    print '============ BEGINNGING OF STORY %d ================' % (i)
    print iterator.generateStory()
    print '=============== END OF STORY %d ====================' % (i)
    i = i + 1
   
  
  
  print "|||||||||||||||||||||||||||||||||||||||||||||||||||"
  print "|||||||||| E N D  O F  S U R V E Y %02d |||||||||||||" % (s)
  print "|||||||||||||||||||||||||||||||||||||||||||||||||||\n"

  reload(skins.Zombie)
  
f.close()
Exemple #4
0
from plot.iterator import PlotIterator
import chess.game
#import skins.RomeoAndJuliet as skin
import skins.Zombie as skin
#import skins.WarStory as skin

game = chess.game.randomGame()
iterator = PlotIterator(skin.plot, game, separator="\n\n")
print iterator.generateStory()