Mo-Official / DHBW_python

Repo für die Python Vorlesung des 4. Semester
0 stars 0 forks source link

Make adding maps easier #3

Closed Mo-Official closed 3 years ago

Mo-Official commented 3 years ago

Write a function that takes the following as an input:

00000000
00022000
00011000
00000000
22200222
11100111

and outputs the following into a map.txt:

[
["0","0","0","0","0","0","0","0",]
["0","0","0","2","2","0","0","0",]
["0","0","0","1","1","0","0","0",]
["0","0","0","0","0","0","0","0",]
["2","2","2","0","0","2","2","2",]
["1","1","1","0","0","1","1","1",]
]