1) Project Info

  1. This is basic program which goes through basic concept of golang like

    • input/output
    • struct, methods
    • random num
    • if-else
    • for loop
    • packaging

2) Run code

$ go run main.go

Output

  1. Choose Option like Heal or Damage monster. Damage and Heal amount is random. We will get special weapon after 2 round

Alt text

  1. Game Over Alt text

GitHub

View Github