From 0d489922cf4bddaebdc6d773993ca3e3c3bff4e4 Mon Sep 17 00:00:00 2001 From: Alexander Munch-Hansen Date: Thu, 8 Feb 2018 00:00:18 +0100 Subject: [PATCH] Added position-numbers to the board --- board.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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]