Put decisions in pure functions. Let the shell (DOM, canvas, HTTP, database) only call them. Pass randomness and time as parameters.
Put decisions in pure functions. Let the shell (DOM, canvas, HTTP, database) only call them. Pass randomness and time as parameters.