|
|
@ -4,7 +4,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
Deal a pack of `12` cards evenly between 4 players, `Player 1`, `Player 2`, `Player 3` and `Player 4`. |
|
|
|
Deal a pack of `12` cards evenly between 4 players, `Player 1`, `Player 2`, `Player 3` and `Player 4`. |
|
|
|
|
|
|
|
|
|
|
|
Write a function `DealAPackOfCards()` that takes an argument `deck` as an `int` and prints the desired output. |
|
|
|
Write a function `DealAPackOfCards()` that takes the argument, `deck`, as a slice of `int` and prints the desired output. |
|
|
|
|
|
|
|
|
|
|
|
- Each player must be printed in a different line. |
|
|
|
- Each player must be printed in a different line. |
|
|
|
|
|
|
|
|
|
|
@ -33,7 +33,7 @@ func main() { |
|
|
|
|
|
|
|
|
|
|
|
And its output: |
|
|
|
And its output: |
|
|
|
|
|
|
|
|
|
|
|
```go |
|
|
|
```console |
|
|
|
$ go run . | cat -e |
|
|
|
$ go run . | cat -e |
|
|
|
Player 1: 1, 2, 3$ |
|
|
|
Player 1: 1, 2, 3$ |
|
|
|
Player 2: 4, 5, 6$ |
|
|
|
Player 2: 4, 5, 6$ |
|
|
|