Created
May 16, 2012 08:38
-
-
Save Drvanon/2708750 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The real part | |
Map = [ | |
[None, None, None], | |
[None, None, None], | |
[None, None, None], | |
] | |
coordinates = [ | |
Map[0][0], | |
Map[0][1], | |
Map[0][2], | |
Map[1][0], | |
Map[1][1], | |
Map[1][2], | |
Map[2][0], | |
Map[2][1], | |
Map[2][2], | |
] | |
def updateMap(hk, upgrades): | |
for i in upgrades: | |
if upgrades[i].ID+1: | |
coordinates[upgrades[i].ID] = 2 | |
print Map[i] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Warning, it is kinda ugly | |
https://github.com/Drvanon/b4buy/blob/master/base.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The code | |
Bar = 10 | |
list = [Bar] | |
dict = {'Foo': list[0]} | |
dict['Foo'] = 11 | |
print list[0] | |
# The output | |
10 | |
# The desired output | |
11 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment