The honeycomb game

Report a typo

Lee is working on a Go program that represents the famous Korean "honeycomb game". In his program, he wants the user to pick and input into the program one of the following shapes, based on emojis: ⭕ (Circle), 🔺 (Triangle), ⭐ (Star) and ☂️ (Umbrella).

Lee has almost finished his code, but he has many syntax errors within his switch statement. Can you help him fix the errors?

Sample Input 1:

Sample Output 1:

You have picked the circle. Not the easiest shape!
Write a program in Go
package main

import "fmt"

func main() {
var emoji = "❓"
fmt.Scanf("%s", &emoji)

// Please do not delete the emojis after the case statement, just fix the code errors.
// Also please do not delete or change the text within the fmt.Println functions!
switch emoji {
case "⭕":
fmt.Println("You have picked the circle. Not the easiest shape!")
if "🔺":
fmt.Println("You have picked the triangle. The easiest shape!")
else if "⭐":
fmt.Println("You have picked the star. Easier than circle, harder than triangle.")
case 4 "☂️":
fmt.Println("You have picked the umbrella. This is the hardest shape! GOOD LUCK.")
else "🔺":
fmt.Println("You have picked the triangle. The easiest shape!")
def:
fmt.Println("You have picked an invalid emoji. Please try again or be eliminated from the game.")
}
}
___

Create a free account to access the full topic