当前位置: 首页>>代码示例>>Python>>正文


Python Board.__init__方法代码示例

本文整理汇总了Python中pychess.Utils.Board.Board.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Board.__init__方法的具体用法?Python Board.__init__怎么用?Python Board.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在pychess.Utils.Board.Board的用法示例。


在下文中一共展示了Board.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from pychess.Utils.Board import Board [as 别名]
# 或者: from pychess.Utils.Board.Board import __init__ [as 别名]
 def __init__(self, setup=False, lboard=None):
     if setup is True:
         Board.__init__(self,
                        setup=self.asymmetricrandom_start(),
                        lboard=lboard)
     else:
         Board.__init__(self, setup=setup, lboard=lboard)
开发者ID:bboutkov,项目名称:pychess,代码行数:9,代码来源:asymmetricrandom.py

示例2: __init__

# 需要导入模块: from pychess.Utils.Board import Board [as 别名]
# 或者: from pychess.Utils.Board.Board import __init__ [as 别名]
 def __init__(self, setup=True):
     fenstr = SETUPSTART if setup is True else setup
     # add all kind if piece to holdings
     parts = fenstr.split()
     parts[0] += "/prnsqkPRNSQK"
     fenstr = " ".join(parts)
     Board.__init__(self, setup=fenstr)
     self._ply = 0
开发者ID:bboutkov,项目名称:pychess,代码行数:10,代码来源:setupposition.py

示例3: __init__

# 需要导入模块: from pychess.Utils.Board import Board [as 别名]
# 或者: from pychess.Utils.Board.Board import __init__ [as 别名]
 def __init__(self, setup=True):
     fen = SETUPSTART if setup is True else setup
     # add all kind if piece to holdings (except king)
     parts = fen.split()
     parts[0] += "/prnsqPRNSQ"
     fen = " ".join(parts)
     Board.__init__(self, setup=fen)
     self._ply = 0
开发者ID:sally0813,项目名称:pychess,代码行数:10,代码来源:setupposition.py

示例4: __init__

# 需要导入模块: from pychess.Utils.Board import Board [as 别名]
# 或者: from pychess.Utils.Board.Board import __init__ [as 别名]
 def __init__ (self, setup=False):
     if setup is True:
         Board.__init__(self, setup=self.asymmetricrandom_start())
     else:
         Board.__init__(self, setup=setup)
开发者ID:jskurka,项目名称:PyChess-Learning-Module,代码行数:7,代码来源:asymmetricrandom.py

示例5: __init__

# 需要导入模块: from pychess.Utils.Board import Board [as 别名]
# 或者: from pychess.Utils.Board.Board import __init__ [as 别名]
 def __init__(self, setup=False, lboard=None):
     if setup is True:
         Board.__init__(self, setup=SUICIDESTART, lboard=lboard)
     else:
         Board.__init__(self, setup=setup, lboard=lboard)
开发者ID:bboutkov,项目名称:pychess,代码行数:7,代码来源:suicide.py

示例6: __init__

# 需要导入模块: from pychess.Utils.Board import Board [as 别名]
# 或者: from pychess.Utils.Board.Board import __init__ [as 别名]
 def __init__(self, setup=False, lboard=None):
     if setup == True:
         Board.__init__(self, setup=self.shuffle_start(), lboard=lboard)
     else:
         Board.__init__(self, setup=setup, lboard=lboard)
开发者ID:jcoffee,项目名称:pychess,代码行数:7,代码来源:fischerandom.py

示例7: __init__

# 需要导入模块: from pychess.Utils.Board import Board [as 别名]
# 或者: from pychess.Utils.Board.Board import __init__ [as 别名]
 def __init__ (self, setup=False, lboard=None):
     if setup is True:
         Board.__init__(self, setup=PAWNSPASSEDSTART, lboard=lboard)
     else:
         Board.__init__(self, setup=setup, lboard=lboard)
开发者ID:Alex-Linhares,项目名称:pychess,代码行数:7,代码来源:pawnspassed.py

示例8: __init__

# 需要导入模块: from pychess.Utils.Board import Board [as 别名]
# 或者: from pychess.Utils.Board.Board import __init__ [as 别名]
 def __init__(self, setup=False, lboard=None):
     if setup is True:
         Board.__init__(self, setup=UPSIDEDOWNSTART, lboard=lboard)
     else:
         Board.__init__(self, setup=setup, lboard=lboard)
开发者ID:jcoffee,项目名称:pychess,代码行数:7,代码来源:upsidedown.py

示例9: __init__

# 需要导入模块: from pychess.Utils.Board import Board [as 别名]
# 或者: from pychess.Utils.Board.Board import __init__ [as 别名]
 def __init__ (self, setup=False):
     if setup is True:
         Board.__init__(self, setup=UPSIDEDOWNSTART)
     else:
         Board.__init__(self, setup=setup)
开发者ID:jskurka,项目名称:PyChess-Learning-Module,代码行数:7,代码来源:upsidedown.py

示例10: __init__

# 需要导入模块: from pychess.Utils.Board import Board [as 别名]
# 或者: from pychess.Utils.Board.Board import __init__ [as 别名]
 def __init__ (self, setup=False):
     if setup is True:
         Board.__init__(self, setup=self.shuffle_start())
     else:
         Board.__init__(self, setup=setup)
开发者ID:jskurka,项目名称:PyChess-Learning-Module,代码行数:7,代码来源:shuffle.py

示例11: __init__

# 需要导入模块: from pychess.Utils.Board import Board [as 别名]
# 或者: from pychess.Utils.Board.Board import __init__ [as 别名]
 def __init__(self, setup=False, lboard=None):
     if setup is True:
         Board.__init__(self, setup=PLACEMENTSTART, lboard=lboard)
     else:
         Board.__init__(self, setup=setup, lboard=lboard)
开发者ID:leogregianin,项目名称:pychess,代码行数:7,代码来源:placement.py

示例12: __init__

# 需要导入模块: from pychess.Utils.Board import Board [as 别名]
# 或者: from pychess.Utils.Board.Board import __init__ [as 别名]
 def __init__ (self, setup=False):
     if setup is True:
         Board.__init__(self, setup=PAWNSPASSEDSTART)
     else:
         Board.__init__(self, setup=setup)
开发者ID:jskurka,项目名称:PyChess-Learning-Module,代码行数:7,代码来源:pawnspassed.py

示例13: __init__

# 需要导入模块: from pychess.Utils.Board import Board [as 别名]
# 或者: from pychess.Utils.Board.Board import __init__ [as 别名]
 def __init__(self, setup=False, lboard=None):
     if setup is True:
         Board.__init__(self, setup=WILDCASTLESTART, lboard=lboard)
     else:
         Board.__init__(self, setup=setup, lboard=lboard)
开发者ID:CarbonFixer,项目名称:pychess,代码行数:7,代码来源:wildcastle.py

示例14: __init__

# 需要导入模块: from pychess.Utils.Board import Board [as 别名]
# 或者: from pychess.Utils.Board.Board import __init__ [as 别名]
 def __init__ (self, setup=False, lboard=None):
     if setup is True:
         Board.__init__(self, setup=EUROSHOGISTART, lboard=lboard)
     else:
         Board.__init__(self, setup=setup, lboard=lboard)
开发者ID:Alex-Linhares,项目名称:pychess,代码行数:7,代码来源:euroshogi.py

示例15: __init__

# 需要导入模块: from pychess.Utils.Board import Board [as 别名]
# 或者: from pychess.Utils.Board.Board import __init__ [as 别名]
 def __init__ (self, setup=False, lboard=None):
     if setup is True:
         Board.__init__(self, setup=KNIGHTODDSSTART, lboard=lboard)
     else:
         Board.__init__(self, setup=setup, lboard=lboard)
开发者ID:btrent,项目名称:knave,代码行数:7,代码来源:knightodds.py


注:本文中的pychess.Utils.Board.Board.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。