This repository has been archived on 2019-12-09. You can view files and clone it, but cannot push or open issues or pull requests.
pacman/livrables/1/test_load_picture.py

13 lines
318 B
Python
Raw Permalink Normal View History

#!/usr/bin/env python3
from pacmap import decode_map
import sys
if __name__ == '__main__':
if len(sys.argv) > 1:
matrix = decode_map(sys.argv[1])
else:
matrix = decode_map("../pacmap_maze1.png")
for row in matrix:
print()
for el in row:
print(el.value, end=' ')