Finally, keep your code DRY. This mean Don't Repeat Yourself. Some guidelines:
- Try to not abuse of copy paste. If you need to do changes later, you need to change multiple parts of your code.
- Encapsulate things that look similar on def. For example, the button validation was long, so I change it for a function that check if the pointer is inside a rectangle.
1そうだね プレイ済み