Services

Resources

Company

🐷

A game of Pig

Exercise: Solve this problem in Go. Write code and test cases too.

🐷 A game of Pig exercise

Labels: Beginner

Time to complete: 1-2 days

What will you learn: math/rand, for loops, conditionals, accepting input from cli, declaring struct and its methods, fmt package, using flag or cobra for building CLIs

How to evaluate your solution:

How to evaluate your solution:

How to evaluate your solution:

How to evaluate your solution:

Actual Solution:

Actual Solution:

Actual Solution:

Actual Solution: