本文整理汇总了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)
示例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
示例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
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)