Spurning hvort sumar tilviksbreyturnar eiga að vera Final eða ekki. Stundum stinga sumir IDE uppá því, en munið að þetta er ákvörðun sem þið takið í kóðanum. Þið stjórnið IDE, ekki öfugt. Bara ábending, enginn frádráttur.
UML
BlackJack
Final breyturnar í BlackJack ekki teknar fram í UML. Ekki er sérstaklega tekið fram að það sé sleppt breytum fyrir lesanleika.
startGame er public, en sagt vera private í UML.
main aðferðin ekki í UML-inu.
PlayerInterface
Klasinn heitir PlayerInterface í kóðanum, en bara Player í UML-inu.
Það vantar getCards():List<Card> í UML.
Card
SUIT og VALUE í hástöfum í UML en ekki í kóða. Gott væri að hafa það í hástöfum báðum megin fyrst þetta eru fastar.
Vantar toString() fallið í UML.
Örvar
Ekki rétt ör á milli BlackJack klasa og Observer interface-inu. Notið samt rétta ör frá Player klasanum í Player interface.
Almennar athugasemdir
UML
BlackJack
BlackJack
ekki teknar fram í UML. Ekki er sérstaklega tekið fram að það sé sleppt breytum fyrir lesanleika.startGame
er public, en sagt vera private í UML.PlayerInterface
PlayerInterface
í kóðanum, en baraPlayer
í UML-inu.getCards():List<Card>
í UML.Card
SUIT
ogVALUE
í hástöfum í UML en ekki í kóða. Gott væri að hafa það í hástöfum báðum megin fyrst þetta eru fastar.toString()
fallið í UML.Örvar
Ekki rétt ör á milli
BlackJack
klasa ogObserver
interface-inu. Notið samt rétta ör fráPlayer
klasanum íPlayer
interface.