package de.movope.domain;

public class Player {

    private boolean gameOver = false;
    private boolean isComputer = false;

    private Player() {
    }

    public static Player computer() {
        Player player = new Player();
        player.isComputer = true;
        return  player;
    }

    public static Player newPlayer() {
        return  new Player();
    }


    public boolean isGameOver() {
        return gameOver;
    }

    public void gameOver() {
        gameOver = true;
    }

    public boolean isControlledByComputer() {
        return isComputer;
    }
}

@@ -85,32 +85,38 @@
 se;%0A    private 
+final 
 boolean isComput
@@ -117,24 +117,16 @@
 Computer
- = false
 ;%0A%0A    p
@@ -135,27 +135,83 @@
 vate Player(
-) %7B
+boolean isComputer) %7B%0A        this.isComputer = isComputer;
 %0A    %7D%0A%0A    
@@ -283,43 +283,13 @@
 yer(
-);%0A        player.isComputer = 
 true
+)
 ;%0A  
@@ -383,16 +383,21 @@
  Player(
+false
 );%0A    %7D
@@ -398,17 +398,16 @@
 %0A    %7D%0A%0A
-%0A
     publ

make field final