visualize module¶
-
visualize.
show_plot
(environment, rabbits, neighbourhood, num_of_iterations)¶ Shows animated plot of rabbits’ movements.
Parameters: - environment – A list of equal-length lists of integers representing quantities of grass in a field.
- rabbits – List of Rabbits.
- neighbourhood – Integer representing distance at which Rabbits will mate.
- num_of_iterations – Integer. Maximum repetitions of agent interactions.