Jacobacon215

janky maze bullshit

Oct 21st, 2020 (edited)
725
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. posX = 1
  2. posY = 30
  3.  
  4. posXY = [posX, posY]
  5.  
  6. northSet = [[1, 30], [1, 29], [1, 28], [1, 27], [1, 26], [1, 25], [1, 24], [1, 23], [1, 22], [1, 21], [1, 20], [1, 19], [1, 18], [1, 15], [1, 14], [1, 13], [1, 10], [1, 9], [1, 8], [1, 7], [1, 6], [1, 3], [1, 2], [2, 12], [2, 11], [3, 27], [3, 26], [3, 23], [3, 22], [3, 19], [3, 18], [3, 8], [3, 5], [3, 4], [4, 17], [4, 16], [4, 15], [4, 10], [4, 9], [4, 2], [5, 13], [6, 29], [6, 28], [6, 27], [6, 26], [6, 21], [6, 20], [6, 19], [6, 18], [6, 17], [6, 16], [6, 11], [6, 10], [6, 9], [6, 8], [6, 7], [6, 6], [6, 5], [6, 2], [7, 15], [7, 14], [7, 4], [8, 29], [8, 28], [8, 27], [8, 26], [8, 25], [8, 24], [8, 21], [8, 20], [8, 19], [8, 18], [8, 17], [8, 16], [9, 13], [9, 10], [9, 7], [9, 6], [9, 5], [9, 4], [10, 29], [10, 28], [10, 25], [10, 24], [10, 21], [10, 20], [10, 19], [10, 18], [10, 17], [10, 16], [10, 2], [11, 10], [11, 7], [11, 6], [11, 5], [12, 23], [12, 22], [12, 21], [12, 20], [12, 19], [12, 18], [12, 17], [12, 16], [12, 15], [13, 2], [14, 27], [14, 26], [14, 23], [14, 22], [14, 21], [14, 20], [14, 19], [14, 18], [14, 17], [14, 16], [14, 15], [16, 25], [16, 24], [16, 23], [16, 22], [16, 21], [16, 20], [16, 19], [16, 18], [16, 10], [16, 9], [16, 2], [17, 15], [17, 14], [17, 13], [18, 29], [18, 28], [18, 27], [18, 26], [18, 23], [18, 22], [18, 21], [18, 20], [18, 19], [18, 18], [18, 17], [18, 16], [18, 12], [19, 15], [19, 9], [20, 25], [20, 24], [20, 23], [20, 22], [20, 21], [20, 18], [20, 17], [20, 14], [22, 25], [22, 24], [22, 23], [22, 14], [22, 6], [22, 5], [23, 8], [23, 7], [23, 2], [24, 29], [24, 28], [24, 23], [24, 22], [24, 21], [24, 18], [24, 17], [24, 16], [24, 15], [24, 12], [24, 11], [24, 5], [24, 4], [24, 3], [25, 27], [25, 26], [25, 25], [25, 24], [25, 13], [25, 8], [25, 7], [25, 6], [26, 23], [26, 22], [26, 21], [26, 20], [26, 19], [26, 18], [26, 17], [26, 16], [26, 15], [26, 14], [27, 12], [27, 8], [27, 7], [27, 6], [27, 5], [27, 1], [28, 29], [28, 28], [28, 27], [28, 26], [28, 25], [28, 24], [28, 23], [28, 22], [28, 21], [28, 20], [28, 19], [28, 18], [28, 17], [28, 16], [28, 15], [28, 14], [28, 11], [28, 10], [28, 9], [29, 13], [29, 12], [29, 6], [29, 5], [29, 4], [29, 3], [29, 2]]
  7. eastSet = [[1, 29], [1, 17], [1, 15], [1, 12], [1, 10], [1, 5], [1, 3], [2, 29], [2, 17], [2, 12], [2, 5], [2, 3], [2, 1], [3, 29], [3, 27], [3, 25], [3, 23], [3, 21], [3, 19], [3, 17], [3, 14], [3, 12], [3, 8], [3, 4], [3, 1], [4, 29], [4, 25], [4, 23], [4, 21], [4, 12], [4, 10], [4, 8], [4, 2], [5, 29], [5, 25], [5, 23], [5, 21], [5, 13], [5, 10], [5, 6], [5, 4], [5, 2], [6, 29], [6, 23], [6, 15], [6, 13], [6, 11], [6, 9], [6, 4], [6, 1], [7, 29], [7, 23], [7, 15], [7, 13], [7, 9], [7, 3], [7, 1], [8, 21], [8, 13], [8, 9], [8, 6], [8, 3], [8, 1], [9, 21], [9, 12], [9, 7], [9, 1], [10, 29], [10, 27], [10, 25], [10, 23], [10, 15], [10, 7], [10, 2], [11, 29], [11, 27], [11, 25], [11, 23], [11, 15], [11, 10], [11, 4], [12, 29], [12, 27], [12, 25], [12, 14], [12, 12], [12, 10], [12, 4], [12, 1], [13, 29], [13, 27], [13, 25], [13, 14], [13, 12], [13, 10], [13, 8], [13, 6], [13, 4], [13, 2], [14, 29], [14, 27], [14, 25], [14, 12], [14, 10], [14, 8], [14, 6], [14, 4], [14, 2], [15, 29], [15, 27], [15, 25], [15, 12], [15, 10], [15, 8], [15, 6], [15, 4], [15, 2], [16, 29], [16, 23], [16, 12], [16, 8], [16, 6], [16, 4], [16, 1], [17, 29], [17, 23], [17, 15], [17, 12], [17, 8], [17, 6], [17, 4], [17, 1], [18, 15], [18, 11], [18, 8], [18, 6], [18, 4], [18, 1], [19, 14], [19, 11], [19, 8], [19, 6], [19, 4], [19, 1], [20, 27], [20, 25], [20, 20], [20, 18], [20, 16], [20, 13], [20, 11], [20, 8], [20, 6], [20, 4], [20, 1], [21, 29], [21, 27], [21, 25], [21, 20], [21, 18], [21, 13], [21, 11], [21, 8], [21, 6], [21, 4], [21, 1], [22, 29], [22, 27], [22, 20], [22, 18], [22, 14], [22, 11], [22, 8], [22, 6], [22, 1], [23, 29], [23, 27], [23, 20], [23, 18], [23, 14], [23, 11], [23, 7], [23, 2], [24, 29], [24, 27], [24, 23], [24, 12], [24, 10], [24, 7], [24, 5], [24, 2], [25, 29], [25, 26], [25, 23], [25, 13], [25, 10], [25, 2], [26, 29], [27, 29], [27, 11], [27, 8], [27, 6], [27, 1], [28, 13], [28, 11], [28, 6], [28, 1]]
  8. westSet = [[2, 29], [2, 17], [2, 15], [2, 12], [2, 10], [2, 5], [2, 3], [2, 1], [3, 29], [3, 17], [3, 12], [3, 5], [3, 3], [3, 1], [4, 29], [4, 27], [4, 25], [4, 23], [4, 21], [4, 19], [4, 17], [4, 14], [4, 12], [4, 8], [4, 4], [4, 1], [5, 29], [5, 25], [5, 23], [5, 21], [5, 12], [5, 10], [5, 4], [5, 2], [6, 29], [6, 25], [6, 23], [6, 21], [6, 13], [6, 10], [6, 6], [6, 4], [6, 2], [7, 29], [7, 23], [7, 15], [7, 13], [7, 11], [7, 9], [7, 4], [7, 1], [8, 29], [8, 23], [8, 15], [8, 13], [8, 9], [8, 3], [8, 1], [9, 21], [9, 13], [9, 9], [9, 6], [9, 3], [9, 1], [10, 21], [10, 12], [10, 7], [10, 1], [11, 29], [11, 27], [11, 25], [11, 23], [11, 15], [11, 7], [11, 2], [12, 29], [12, 27], [12, 25], [12, 23], [12, 15], [12, 10], [12, 4], [13, 29], [13, 27], [13, 25], [13, 14], [13, 12], [13, 10], [13, 4], [13, 1], [14, 29], [14, 27], [14, 25], [14, 14], [14, 12], [14, 10], [14, 8], [14, 6], [14, 4], [14, 2], [15, 29], [15, 27], [15, 25], [15, 12], [15, 10], [15, 8], [15, 6], [15, 4], [15, 2], [16, 29], [16, 27], [16, 25], [16, 12], [16, 10], [16, 8], [16, 6], [16, 4], [16, 2], [17, 29], [17, 23], [17, 12], [17, 8], [17, 6], [17, 4], [17, 1], [18, 29], [18, 23], [18, 15], [18, 12], [18, 8], [18, 6], [18, 4], [18, 1], [19, 15], [19, 11], [19, 8], [19, 6], [19, 4], [19, 1], [20, 14], [20, 11], [20, 8], [20, 6], [20, 4], [20, 1], [21, 27], [21, 25], [21, 20], [21, 18], [21, 16], [21, 13], [21, 11], [21, 8], [21, 6], [21, 4], [21, 1], [22, 29], [22, 27], [22, 25], [22, 20], [22, 18], [22, 13], [22, 11], [22, 8], [22, 6], [22, 4], [22, 1], [23, 29], [23, 27], [23, 20], [23, 18], [23, 14], [23, 11], [23, 8], [23, 6], [23, 1], [24, 29], [24, 27], [24, 20], [24, 18], [24, 14], [24, 11], [24, 7], [24, 2], [25, 29], [25, 27], [25, 23], [25, 12], [25, 10], [25, 7], [25, 5], [25, 2], [26, 29], [26, 26], [26, 23], [26, 13], [26, 10], [26, 2], [27, 29], [28, 29], [28, 11], [28, 8], [28, 6], [28, 1], [29, 13], [29, 11], [29, 6], [29, 1]]
  9. southSet = [[1, 29], [1, 28], [1, 28], [1, 27], [1, 26], [1, 25], [1, 24], [1, 23], [1, 22], [1, 21], [1, 20], [1, 19], [1, 18], [1, 14], [1, 13], [1, 9], [1, 8], [1, 7], [1, 6], [1, 2], [1, 1], [2, 11], [2, 10], [3, 26], [3, 25], [3, 22], [3, 21], [3, 18], [3, 17], [3, 7], [3, 4], [3, 3], [4, 16], [4, 15], [4, 14], [4, 9], [4, 8], [4, 1], [5, 12], [6, 28], [6, 27], [6, 26], [6, 25], [6, 20], [6, 19], [6, 18], [6, 17], [6, 16], [6, 15], [6, 10], [6, 9], [6, 8], [6, 7], [6, 6], [6, 5], [6, 4], [6, 1], [7, 14], [7, 13], [7, 3], [8, 28], [8, 27], [8, 26], [8, 25], [8, 24], [8, 23], [8, 20], [8, 19], [8, 18], [8, 17], [8, 16], [8, 15], [9, 12], [9, 9], [9, 6], [9, 5], [9, 3], [10, 28], [10, 27], [10, 24], [10, 23], [10, 20], [10, 19], [10, 18], [10, 17], [10, 16], [10, 15], [10, 1], [11, 9], [11, 6], [11, 5], [11, 4], [12, 22], [12, 21], [12, 20], [12, 19], [12, 18], [12, 17], [12, 16], [12, 15], [12, 14], [13, 1], [14, 26], [14, 25], [14, 22], [14, 21], [14, 20], [14, 19], [14, 18], [14, 17], [14, 16], [14, 15], [14, 14], [16, 24], [16, 23], [16, 22], [16, 21], [16, 20], [16, 19], [16, 18], [16, 17], [16, 9], [16, 8], [16, 1], [17, 14], [17, 13], [17, 12], [18, 28], [18, 27], [18, 26], [18, 25], [18, 22], [18, 21], [18, 20], [18, 19], [18, 18], [18, 17], [18, 16], [18, 15], [18, 11], [19, 14], [19, 8], [20, 24], [20, 23], [20, 22], [20, 21], [20, 20], [20, 17], [20, 16], [20, 13], [22, 24], [22, 23], [22, 22], [22, 13], [22, 5], [22, 4], [23, 7], [23, 6], [23, 1], [24, 28], [24, 27], [24, 22], [24, 21], [24, 20], [24, 17], [24, 16], [24, 15], [24, 14], [24, 11], [24, 10], [24, 4], [24, 3], [24, 2], [25, 26], [25, 25], [25, 24], [25, 23], [25, 12], [25, 7], [25, 6], [25, 5], [26, 22], [26, 21], [26, 20], [26, 19], [26, 18], [26, 17], [26, 16], [26, 15], [26, 14], [26, 13], [27, 11], [27, 7], [27, 6], [27, 5], [27, 4], [28, 28], [28, 27], [28, 26], [28, 25], [28, 24], [28, 23], [28, 22], [28, 21], [28, 20], [28, 19], [28, 18], [28, 17], [28, 16], [28, 15], [28, 14], [28, 13], [28, 10], [28, 9], [28, 8], [29, 12], [29, 11], [29, 5], [29, 4], [29, 3], [29, 2], [29, 1]]
  10.  
  11. directionList = ""
  12.  
  13. while posXY is not [27, 0]:
  14.     print('''
  15.    
  16.    Coordinates: ''' + str(posXY)[1:6])
  17.  
  18.     wentNorth = False
  19.     wentEast = False
  20.     wentWest = False
  21.     wentSouth = False
  22.     canNorth = False
  23.     canEast = False
  24.     canWest = False
  25.     canSouth = False
  26.  
  27.     directionList = []
  28.     if posXY in northSet:
  29.         canNorth = True
  30.         directionList = directionList + ["North"]
  31.     else:
  32.         canNorth = False
  33.  
  34.     if posXY in eastSet:
  35.         canEast = True
  36.         directionList = directionList + ["East"]
  37.     else:
  38.         canEast = False
  39.  
  40.     if posXY in westSet:
  41.         canWest = True
  42.         directionList = directionList + ["West"]
  43.     else:
  44.         canWest = False
  45.    
  46.     if posXY in southSet:
  47.         canSouth = True
  48.         directionList = directionList + ["South"]
  49.     else:
  50.         canSouth = False
  51.    
  52.     print(str(directionList).replace('[','').replace(']','').replace("'",''))
  53.     playerDir = input("Direction: ")
  54.  
  55.     if playerDir == "North" or playerDir == "n" or playerDir == "N" or playerDir == "north":
  56.         wentNorth = True
  57.  
  58.     elif playerDir == "East" or playerDir == "e" or playerDir == "E" or playerDir == "east":
  59.         wentEast = True
  60.  
  61.     elif playerDir == "West" or playerDir == "w" or playerDir == "W" or playerDir == "west":
  62.         wentWest = True
  63.  
  64.     elif playerDir == "South" or playerDir == "s" or playerDir == "S" or playerDir == "south":
  65.         wentSouth = True
  66.  
  67.  
  68.     if wentNorth == True and canNorth == True:
  69.         posY = posY - 1
  70.  
  71.     elif wentEast == True and canEast == True:
  72.         posX = posX + 1
  73.    
  74.     elif wentWest == True and canWest == True:
  75.         posX = posX - 1
  76.    
  77.     elif wentSouth == True and canSouth == True:
  78.         posY = posY + 1
  79.    
  80.     else:
  81.         input("Invalid direction")
  82.  
  83.     posXY = [posX, posY]
  84.  
  85.  
  86. input("poggers")
RAW Paste Data