diff --git a/board.py b/board.py index 1664e4d..7b8d077 100644 --- a/board.py +++ b/board.py @@ -100,12 +100,14 @@ class Board: temp.append("{}".format(x)) return """ -+--------------------------------------------------------------+ -|{13}|{14}|{15}|{16}|{17}|{18}| bar -1: {27} |{19}|{20}|{21}|{22}|{23}|{24}| home 1: {25} | -|--|--|--|--|--|--|------------|--|--|--|--|--|--| | -|{12}|{11}|{10}|{9}|{8}|{7}| bar 1: {26} |{6}|{5}|{4}|{3}|{2}|{1}| home -1: {0} | -+--------------------------------------------------------------+""".format(*temp) - + 13 14 15 16 17 18 19 20 21 22 23 24 +-------------------------------------------------------------------------- +| {12}| {11}| {10}| {9}| {8}| {7}| bar 1: {26} | {6}| {5}| {4}| {3}| {2}| {1}| end -1: {0}| +|---|---|---|---|---|---|-----------|---|---|---|---|---|---| +| {13}| {14}| {15}| {16}| {17}| {18}| bar -1: {27} | {19}| {20}| {21}| {22}| {23}| {24}| end 1: {25}| +-------------------------------------------------------------------------- + 12 11 10 9 8 7 6 5 4 3 2 1 + """.format(*temp) def move_to_bar(self, to_idx): # Find the owner of the hit checker player = self.state[to_idx]