We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dca8103 commit b08f835Copy full SHA for b08f835
Board.py
@@ -46,21 +46,6 @@ def __init__(self, position=None):
46
for i in self.tigerPos:
47
self.points[i].set_state("T")
48
49
- def point_index(self, coord):
50
- # if an integer is passed, check if it's valid and return it
51
- if type(coord) == int:
52
- return coord
53
-
54
- file, rank = coord
55
56
- # check if the coordinates are valid
57
- assert len(coord) == 2 and file in list('ABCDE') and int(
58
- rank) in range(1, 6), "Invalid Coordinates: %s" % str(coord)
59
60
- # Top left point on the board is A1
61
- # A1 = point[0], E5 = point[24]
62
- return (Point.File[file].value - 1) + (int(rank) - 1) * 5
63
64
def reset(self):
65
"""Resets the board"""
66
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments