Author | Message |
---|---|
RandomAccess
Posts: 101
|
Posted 04:12 Sep 30, 2018 |
I was just wondering if we literally have to create a "player" class, or if that's just a shorthand for the identity of the player in the pseudocode provided. I'd really appreciate if this was confirmed. |
jhurley
Posts: 207
|
Posted 08:14 Sep 30, 2018 |
Player is an enum that already exists in the code. It's in the Game class. |
dtang9
Posts: 52
|
Posted 15:01 Sep 30, 2018 |
Does this mean that Move is a generic interface for Player? |
jhurley
Posts: 207
|
Posted 15:11 Sep 30, 2018 |
Move represents a move, but there is a player associated with a move. |
RandomAccess
Posts: 101
|
Posted 22:57 Sep 30, 2018 |
You mean oPlayer? |
RandomAccess
Posts: 101
|
Posted 23:33 Sep 30, 2018 |
And if player is an enum, why does it look like a class in the interface you provided? |
jhurley
Posts: 207
|
Posted 06:42 Oct 01, 2018 |
YOu can return an enum in just the same way as a class. The capitalization conventions for the *name* of an enum are the same as for a class. |