Advertisement
Guest User

Untitled

a guest
Apr 21st, 2014
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32
  2. Type "copyright", "credits" or "license()" for more information.
  3. >>> ================================ RESTART ================================
  4. >>>
  5.  
  6.  
  7.  
  8.  
  9. x touching
  10. x touching
  11.  
  12. x touching
  13.  
  14. Traceback (most recent call last):
  15. File "J:\connect_four.py", line 29, in <module>
  16. check_aroundx(x, y)
  17. File "J:\connect_four.py", line 18, in check_aroundx
  18. 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":
  19. IndexError: list index out of range
  20. >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement