Rock Paper Scissors Micro:Bit!

This Micro:Bit, depending on what the user does, displays a rock, paper, scissors, or a special icon on the screen! 

The Code!

input.onButtonPressed(Button.AB, function () {

})

basic.showString("Shoot!")

basic.pause(1000)

if (input.buttonIsPressed(Button.AB)) {

basic.showLeds(`

# # . . #

# # . # .

. . # . .

# # . # .

# # . . #

`)

} else if (input.buttonIsPressed(Button.B)) {

basic.showLeds(`

# # # # #

# . . . #

# . . . #

# . . . #

# # # # #

`)

} else if (input.buttonIsPressed(Button.A)) {

basic.showLeds(`

. . . . .

. # # # .

. # . # .

. # # # .

. . . . .

`)

} else {

basic.showLeds(`

. . . . .

# # # # #

# # # . .

. # . . .

. # . . .

`)

}