瀏覽代碼

CellMap can now print out an array of its values for use elsewhere, rather than just a visual representation of the map

master
Noëlle Anthony 7 年之前
父節點
當前提交
712840bfec
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6
    0
      CellMap.py

+ 6
- 0
CellMap.py 查看文件

@@ -234,6 +234,12 @@ class CellMap:
img.save('maps/{}.png'.format(fn))
print("Saved maps/{}.png".format(fn))

def printArray(self):
print("[",end="\n")
for line in self.genmap:
print("\t{},".format(line))
print("]")


def filename():
hexes = ["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"]

Loading…
取消
儲存