Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from sense_hat import SenseHat
- import time
- class Instructions:
- def __init__(self):
- self.intro = "First to 30 wins!"
- self.intro_p1 = "P1"
- self.intro_p2 = "P2"
- def start(self):
- SenseHat().show_message(self.intro)
- def p1_turn(self):
- SenseHat().show_message(self.intro_p1)
- def p2_turn(self):
- SenseHat().show_message(self.intro_p2)
- d1 = Instructions()
- d1.p1_turn()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement