imckechn / Surakarta

0 stars 0 forks source link

Implement Player Class #3

Open imckechn opened 1 year ago

pvpatel23 commented 1 year ago

Created the player class but it is not complete.

Its unclear what the constructor should be doing. Things like name, number of pieces, turn and boardState I am unsure as to how they should be initialized. I assume the constructor will take some args but the Class List does not detail what these args should be.

The checkRestart method is also unclear. Where is it being called from and should it not have a 'restart' variable of some sort that can be checked after the restart prompt. There is also a discrepancy in the doc. In the Application Class Diagram, there is only 1 method: promptRestart(), but this is not consistent with the Application Class List which has 2 different methods: checkRestart(), setRestart(). setRestart also says it sets the the restart variable in the player model but I do not see another reference to this restart variable in the doc so I am unsure which variable they are referring to. Was it just missed and needs to be added?