Skip to content

Instantly share code, notes, and snippets.

@KaiSforza
Created November 7, 2012 07:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KaiSforza/4029952 to your computer and use it in GitHub Desktop.
Save KaiSforza/4029952 to your computer and use it in GitHub Desktop.
You chose: grass
Input coordinates: a0
Traceback (most recent call last):
File "triplehax.py", line 20, in getinput
if int(key) in pieces:
ValueError: invalid literal for int() with base 10: 'T'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "triplehax.py", line 20, in getinput
if int(key) in pieces:
ValueError: invalid literal for int() with base 10: 'tree'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "triplehax.py", line 20, in getinput
if int(key) in pieces:
ValueError: invalid literal for int() with base 10: 't'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "triplehax.py", line 20, in getinput
if int(key) in pieces:
ValueError: invalid literal for int() with base 10: 'b5'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "triplehax.py", line 20, in getinput
if int(key) in pieces:
ValueError: invalid literal for int() with base 10: 'B5'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "triplehax.py", line 99, in <module>
getinput()
File "triplehax.py", line 11, in getinput
getinput()
File "triplehax.py", line 31, in getinput
getinput()
File "triplehax.py", line 31, in getinput
getinput()
File "triplehax.py", line 31, in getinput
getinput()
File "triplehax.py", line 28, in getinput
getinput()
File "triplehax.py", line 31, in getinput
getinput()
File "triplehax.py", line 31, in getinput
getinput()
File "triplehax.py", line 28, in getinput
getinput()
File "triplehax.py", line 25, in getinput
placepiece(int(key),pos)
File "triplehax.py", line 49, in placepiece
if board[y][x] > 0:
TypeError: unorderable types: str() > int()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment