Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32
- Type "copyright", "credits" or "license()" for more information.
- >>> ================================ RESTART ================================
- >>>
- x touching
- x touching
- x touching
- Traceback (most recent call last):
- File "J:\connect_four.py", line 29, in <module>
- check_aroundx(x, y)
- File "J:\connect_four.py", line 18, in check_aroundx
- if board[x - 3][y - 3] == "x" or board[x - 2][y - 3] == "x" or board[x - 1][y - 3] == "x" or board[x][y - 3]== "x" or board[x + 1][y - 3]== "x" or board[x + 2][y - 3]== "x" or board[x + 3][y - 3]== "x" or board[x - 3][y - 2]== "x" or board[x - 2][y - 2]== "x" or board[x - 1][y - 2]== "x" or board[x][y - 2]== "x" or board[x + 1][y - 2]== "x" or board[x + 2][y - 2]== "x" or board[x + 3][y - 2]== "x" or board[x - 3][y - 1]== "x" or board[x - 2][y - 1]== "x" or board[x - 1][y - 1]== "x" or board[x][y - 1]== "x" or board[x + 1][y - 1]== "x" or board[x + 2][y - 1]== "x" or board[x + 3][y - 1]== "x" or board[x - 3][y]== "x" or board[x - 2][y]== "x" or board[x - 1][y]== "x" or board[x][y]== "x" or board[x + 1][y]== "x" or board[x + 2][y]== "x" or board[x + 3][y]== "x" or board[x - 3][y + 1]== "x" or board[x - 2][y + 1]== "x" or board[x - 1][y + 1]== "x" or board[x][y + 1]== "x" or board[x + 1][y + 1]== "x" or board[x + 2][y + 1]== "x" or board[x + 3][y + 1]== "x" or board[x - 3][y + 2]== "x" or board[x - 2][y + 2]== "x" or board[x - 1][y + 2]== "x" or board[x][y + 2]== "x" or board[x + 1][y + 2]== "x" or board[x + 2][y + 2]== "x" or board[x + 3][y + 2]== "x" or board[x - 3][y + 3]== "x" or board[x - 2][y + 3]== "x" or board[x - 1][y + 3]== "x" or board[x][y + 3]== "x" or board[x + 1][y + 3]== "x" or board[x + 2][y + 3]== "x" or board[x + 3][y + 3]== "x":
- IndexError: list index out of range
- >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement