mardi 22 septembre 2020

snake game with randomly generated prime and squared numbers pyhton

I need help creating a simple snake game with a main menu that has three options, prime, square numbers and instructions. Once the prime option has been picked two random numbers will be generated (one normal and one prime) if the snake eats the normal number a display screen of game over will be shown, if not then the score will increase by 10 points. The square number option is the same however square numbers are displayed randomly with normal numbers instead of primes.




Aucun commentaire:

Enregistrer un commentaire