Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- turn = 0
- zomPos = [[0]*8]*5
- zombies = [[0,4,28],[1,1,6],[2,0,10],[2,4,15],[3,2,16],[3,3,13]]
- for zombie in zombies:
- if zombie[0] == turn:
- zomPos[zombie[1]][7] = zombie[2]
- print(zomPos)
- [[0, 0, 0, 0, 0, 0, 0, 0],
- [0, 0, 0, 0, 0, 0, 0, 0],
- [0, 0, 0, 0, 0, 0, 0, 0],
- [0, 0, 0, 0, 0, 0, 0, 0],
- [0, 0, 0, 0, 0, 0, 0, 28]]
- [[0, 0, 0, 0, 0, 0, 0, 28],
- [0, 0, 0, 0, 0, 0, 0, 28],
- [0, 0, 0, 0, 0, 0, 0, 28],
- [0, 0, 0, 0, 0, 0, 0, 28],
- [0, 0, 0, 0, 0, 0, 0, 28]]
Add Comment
Please, Sign In to add comment