Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/chess.py
diff options
context:
space:
mode:
Diffstat (limited to 'chess.py')
-rw-r--r--chess.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/chess.py b/chess.py
index 3033a83..a2c29a9 100644
--- a/chess.py
+++ b/chess.py
@@ -55,6 +55,8 @@ WK = 10
BK = 11
FILES = 'abcdefgh'
RANKS = '12345678'
+BIN = {'i686': 'i686', 'i586': 'i686', 'armv7l': 'armv7l'}
+
class Gnuchess():
@@ -117,7 +119,7 @@ class Gnuchess():
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
- self._bin_path = 'bin/%s' % (p.communicate()[0].replace('\n', ''))
+ self._bin_path = 'bin/%s' % (BIN[p.communicate()[0].replace('\n', '')])
self._all_clear()
def move(self, my_move):