本文整理汇总了Python中View.View.tablePrint方法的典型用法代码示例。如果您正苦于以下问题:Python View.tablePrint方法的具体用法?Python View.tablePrint怎么用?Python View.tablePrint使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类View.View
的用法示例。
在下文中一共展示了View.tablePrint方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: run
# 需要导入模块: from View import View [as 别名]
# 或者: from View.View import tablePrint [as 别名]
def run(self):
self.rows,self.lines = View.GreatingMessage()
self.NamesOfPlayers,View.NumberOfPlayers = View.NamesOfPlayers() # intial Players from View
for name in self.NamesOfPlayers:
player = Controller.Player(name)
self.Players.append(player)
self.Turner = Controller.Turner(self.Players)
View.Symbols = View.GenerateSymbols(View.NumberOfPlayers)
View.tablePrint(self.rows,self.lines,[])
Win = False
while not Win:
CurentPlayer = self.Turner.getNext()
print "Hello ", CurentPlayer.getName()
x,y = View.InputMessage()
if not self.ValidCoordinate((x,y)):
print "continue"
self.Turner.CurentState = self.Turner.CurentState - 1
continue
self.Model.setCordinate(CurentPlayer,(x,y))
mapp = self.Model.getMappingNotLinear()
View.tablePrint(self.lines,self.rows,mapp)
Win = self.is_win(CurentPlayer,(x,y))
pass
View.WinMessage(Winner=self.Winner)