Question 1:
Write a program that asks the user to enter his/her name, age, favorite color, and favorite food. Have the program save all four items to a text file called myinfo.txt, each one on a separate line.
Question 2:
Write a program that asks the user to enter...
Question:
How to restart the game if you press the space.
...
Question:
Continue to program the code we made in the class at the bottom of this page. Try to use for loop to create buttons from 1-9, so the tkinter window would display as below:
Hint:
You can use “for i in range(1, 10):” or “for i in ‘123456789’:” to build these 9 buttons,...
Question:
Thinking how to add space stations as background when score reaches 200 as level 2?
...
Question:
Continue modify the program we made in the class:
use spritecollide to let the fighter collect energy crystals, if the energy crystal is collected, the score will increase
...
Question 1:
Draw the following picture in the pygame window: (could be different color)
Hint: using pygame.draw.circle
Question 2:
Draw below image using pygame. (could using different color)
...