Starting chapter 4

This commit is contained in:
Grant Sanderson
2016-07-27 13:10:45 -07:00
parent 983f895f11
commit ef8461bc73
7 changed files with 475 additions and 31 deletions

View File

@ -137,9 +137,9 @@ COLOR_MAP = {
"GREEN_SCREEN": "#00FF00",
}
PALETTE = COLOR_MAP.values()
globals().update(COLOR_MAP)
locals().update(COLOR_MAP)
for name in filter(lambda s : s.endswith("_C"), COLOR_MAP.keys()):
globals()[name.replace("_C", "")] = globals()[name]
locals()[name.replace("_C", "")] = locals()[name]