
from sense_hat import SenseHat
import time

sense = SenseHat()
sense.clear()

time.sleep(0.5)

r = (255, 0, 0 )
b = (0,0,0)

maze = [[r,r,r,r,r,r,r,r],
        [r,b,b,b,b,b,b,r],
        [r,r,r,b,r,b,b,r],
        [r,b,r,b,r,r,r,r],
        [r,b,b,b,b,b,b,r],
        [r,b,r,r,r,r,b,r],
        [r,b,b,r,b,b,b,r],
        [r,r,r,r,r,r,r,r]]

sense.set_pixels(sum(maze,[]))


from sense_hat import SenseHat
import time

sense = SenseHat()
sense.clear()

time.sleep(0.5)

r = (255, 0, 0 )
b = (0,0,0)
w = (255, 255, 255 )

x = 1
y = 1

maze = [[r,r,r,r,r,r,r,r],
        [r,b,b,b,b,b,b,r],
        [r,r,r,b,r,b,b,r],
        [r,b,r,b,r,r,r,r],
        [r,b,b,b,b,b,b,r],
        [r,b,r,r,r,r,b,r],
        [r,b,b,r,b,b,b,r],
        [r,r,r,r,r,r,r,r]]

sense.set_pixels(sum(maze,[]))

game_over = False

while not game_over:
    maze[y][x] = w
    sense.set_pixels(sum(maze,[]))

Add static white marble to sense hat maze
Add static white marble to sense hat maze

  
  from sense_hat import SenseHat
  import time
  
  sense = SenseHat()
  sense.clear()
  
  time.sleep(0.5)
  
  r = (255, 0, 0 )
  b = (0,0,0)
+ w = (255, 255, 255 )
+ 
+ x = 1
+ y = 1
  
  maze = [[r,r,r,r,r,r,r,r],
          [r,b,b,b,b,b,b,r],
          [r,r,r,b,r,b,b,r],
          [r,b,r,b,r,r,r,r],
          [r,b,b,b,b,b,b,r],
          [r,b,r,r,r,r,b,r],
          [r,b,b,r,b,b,b,r],
          [r,r,r,r,r,r,r,r]]
  
  sense.set_pixels(sum(maze,[]))
  
+ game_over = False
+ 
+ while not game_over:
+     maze[y][x] = w
+     sense.set_pixels(sum(maze,[]))
+ 
Add static white marble to sense hat maze
## Code Before:

from sense_hat import SenseHat
import time

sense = SenseHat()
sense.clear()

time.sleep(0.5)

r = (255, 0, 0 )
b = (0,0,0)

maze = [[r,r,r,r,r,r,r,r],
        [r,b,b,b,b,b,b,r],
        [r,r,r,b,r,b,b,r],
        [r,b,r,b,r,r,r,r],
        [r,b,b,b,b,b,b,r],
        [r,b,r,r,r,r,b,r],
        [r,b,b,r,b,b,b,r],
        [r,r,r,r,r,r,r,r]]

sense.set_pixels(sum(maze,[]))

## Instruction:
Add static white marble to sense hat maze
## Code After:

from sense_hat import SenseHat
import time

sense = SenseHat()
sense.clear()

time.sleep(0.5)

r = (255, 0, 0 )
b = (0,0,0)
w = (255, 255, 255 )

x = 1
y = 1

maze = [[r,r,r,r,r,r,r,r],
        [r,b,b,b,b,b,b,r],
        [r,r,r,b,r,b,b,r],
        [r,b,r,b,r,r,r,r],
        [r,b,b,b,b,b,b,r],
        [r,b,r,r,r,r,b,r],
        [r,b,b,r,b,b,b,r],
        [r,r,r,r,r,r,r,r]]

sense.set_pixels(sum(maze,[]))

game_over = False

while not game_over:
    maze[y][x] = w
    sense.set_pixels(sum(maze,[]))
