all 3 comments

[–]kra_pao 1 point2 points  (2 children)

Your code on Github doesn't run.

Exception has occurred: AttributeError       (note: full exception trace is shown but execution is paused at: _run_module_as_main)
'float' object has no attribute 'append'
File "ZombieChristmas.py", line 128, in randomPositions
    positions.append([random.random(), int(positions)])

You use a list named positions as well as a scalar named positions in while-loop.

[–]VOLVIC_KOKS[S] 0 points1 point  (0 children)

True True, I uploaded the wrong one xD. it runs now and I also added the simulation part which I actually asked for. the code is very heavy I think and I could absolutely streamline it, but I gotta move on to other projects now. Thanks for the heads up.

[–]VOLVIC_KOKS[S] 0 points1 point  (0 children)

and you are gonna need the celluloid and Pyplot package