add missing onGameEnd statement
This commit is contained in:
@@ -17,6 +17,7 @@ public class SurrenderCommand extends Command {
|
||||
public CommandResult execute(Game game, GameListener outputSystem) {
|
||||
outputSystem.onSurrender(player);
|
||||
outputSystem.onWin(Color.getEnemy(player));
|
||||
outputSystem.onGameEnd();
|
||||
return CommandResult.NotMoved;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user