Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2012-07-30 22:28:51 (GMT)
committer Walter Bender <walter.bender@gmail.com>2012-07-30 22:28:51 (GMT)
commitf53d93ac915b8117aa6cd9c1ebc0946a974a776f (patch)
tree732e40f849b98ffbef44ff41adc37bde4517e115
parentc58691d0d1ae4ee7b897d8091c42863d435cb697 (diff)
add i586 support
-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):