package controls; import resources.Algo; public class TurnPlayer extends AbstractGameState{ public TurnPlayer(Algo algo) { super(algo); } @Override public void attack(int guess, int attacker, int target) { if (isDeckLess()) { algo.inputSelectA(guess, attacker, target); isSucceedLatestAttack = algo.getSucceedSelectA().getKey(); } else { algo.inputDrawA(guess, target); isSucceedLatestAttack = algo.getSucceedDrawA().getKey(); } } }