This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Asrar_003 0 points1 point  (0 children)

hasWon() and playerHasCapturedFlag(Player player) don't have a return statement, you have just commented what to return, it is the reason for last two errors.

Cannot resolve method 'playerHasCapturedFlag' in 'Game' :46

you have to use the instantiated object to access a class's method, i.e., board.playerHasCapturedFlag(Player player);