TypeError: test.run_game() missing 1 required positional argument: ‘self’
I am attempting to refactor a pygame moduel “test.py” into a class. I expect it to crate the a (500,500) pygame screen and exit properly. Before refactoring it works perfectly. There is a function called ‘run_game()’ that contains the while loop and the exit procedure.
TypeError: Pygame invalid rect assignment
I am attempting to create a car game to practice AI training utilising N.E.A.T. The following is the draw function from inside the Car class: