Skip to content

crwdns342183:0crwdne342183:0

crwdns355236:0crwdne355236:0

crwdns338145:0crwdne338145:0 | MakeCode, Python | crwdns255566:0crwdne255566:0, crwdns255570:0crwdne255570:0, crwdns274472:0crwdne274472:0 | crwdns258516:0crwdne258516:0, crwdns258562:0crwdne258562:0, crwdns258584:0crwdne258584:0, crwdns258616:0crwdne258616:0

crwdns355172:0crwdne355172:0

crwdns355174:0crwdne355174:0

crwdns355176:0crwdne355176:0 crwdns355178:0crwdne355178:0

crwdns355184:0crwdne355184:0

crwdns355186:0crwdne355186:0 crwdns355188:0crwdne355188:0 crwdns355190:0crwdne355190:0

crwdns355192:0crwdne355192:0

crwdns355194:0crwdne355194:0

crwdns355196:0crwdne355196:0

crwdns355198:0crwdne355198:0

crwdns355200:0crwdne355200:0 crwdns355238:0crwdne355238:0

crwdns355204:0crwdne355204:0

crwdns355206:0crwdne355206:0

  • crwdns355208:0crwdne355208:0
  • crwdns355210:0crwdne355210:0
  • crwdns355212:0crwdne355212:0

crwdns355214:0crwdne355214:0

1from microbit import *
2import music, random
3
4while True:
5    if button_a.is_pressed():
6        timer = random.randint(5, 15)
7        display.show(Image.CHESSBOARD)
8        while timer > 0:
9            timer -= 1
10            sleep(1000)
11        display.show(Image.NO)
12        music.play(music.WAWAWAWAA, wait=False)
13        audio.play(Sound.SAD)
14        

crwdns355216:0crwdne355216:0

  • crwdns355218:0crwdne355218:0
  • crwdns355220:0crwdne355220:0
  • crwdns355222:0crwdne355222:0
  • crwdns355224:0crwdne355224:0