Ex 05 - The Card Layer

Asfaloth
Windoof-User
Windoof-User
Beiträge: 27
Registriert: 7. Nov 2012 10:36

Ex 05 - The Card Layer

Beitrag von Asfaloth »

Hi,

i have a few questions regarding part 1 of ex5.

- What is the purpose of cardOrdering? Should we override the compare method of the Ordering trait?
- Are we allowed to create additional traits, not one those on the exercise sheet?

Thanks!
Andreas

imaier
Mausschubser
Mausschubser
Beiträge: 61
Registriert: 21. Okt 2013 21:27

Re: Ex 05 - The Card Layer

Beitrag von imaier »

Of course you are allowed to create additional traits, but keep in mind that your design should be simple. In many card games, cards are ordered. I am not sure you need an ordering for the common rules of Mau Mau, but you could use it for one of your custom instances.

Cheers,
Ingo

Antworten

Zurück zu „Archiv“