I wrote a code for event-driven collisions for N disks in a 1 by 1 box in the xy-plane. It\'s working just fine, generating an animation in the end via FuncAnimation
FuncAnimation