Skip to content

Commit f26693c

Browse files
committed
changed memory game
1 parent 2ea15a5 commit f26693c

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

examples/memory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def next_level():
102102
current_pattern = [] #clear it before refilling
103103
player_pattern =[]
104104

105-
sense.show_message("LEVEL " + str(level), scroll_speed=.05)
105+
sense.show_message( str(level), scroll_speed=.2)
106106

107107
#build the new pattern with random choices from the arrows list
108108
for i in range(level+2):

memory_starter.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,13 @@
5959
arrows = [up, down, left, right]
6060

6161

62-
#variable to hold score
63-
score = 0
62+
#variable to hold level
63+
level = 0
6464

6565

6666
while True:
6767

68-
time.sleep(.8)
69-
sense.set_pixels(up)
68+
time.sleep(.3)
69+
sense.set_pixels(up)
70+
time.sleep(.4)
71+
sense.set_pixels(down)

0 commit comments

Comments
 (0)