diff options
author | Walter 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) |
commit | f53d93ac915b8117aa6cd9c1ebc0946a974a776f (patch) | |
tree | 732e40f849b98ffbef44ff41adc37bde4517e115 | |
parent | c58691d0d1ae4ee7b897d8091c42863d435cb697 (diff) |
add i586 support
-rw-r--r-- | chess.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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): |