diff --git a/src/main/java/controls/StepScheduler.java b/src/main/java/controls/StepScheduler.java index eee1ccc..cef3b56 100644 --- a/src/main/java/controls/StepScheduler.java +++ b/src/main/java/controls/StepScheduler.java @@ -21,19 +21,19 @@ public void attack(int guess, int attacker, int target) { if (isATurn) { if (isDeckLess()) { - algo.inputSelectA(guess, attacker, target); - isSucceedLatestAttack = algo.getSucceedSelectA().getKey(); + algo.selectAndAttackA(attacker, target, guess); + isSucceedLatestAttack = algo.getResultBySelectingA().getKey(); } else { - algo.inputDrawA(guess, target); - isSucceedLatestAttack = algo.getSucceedDrawA().getKey(); + algo.drawAndAttackA(target, guess); + isSucceedLatestAttack = algo.getResultByDrawingA().getKey(); } } else { if (isDeckLess()) { - algo.inputSelectB(guess, attacker, target); - isSucceedLatestAttack = algo.getSucceedSelectB().getKey(); + algo.selectAndAttackB(attacker, target, guess); + isSucceedLatestAttack = algo.getResultBySelectingB().getKey(); } else { - algo.inputDrawB(guess, target); - isSucceedLatestAttack = algo.getSucceedDrawB().getKey(); + algo.drawAndAttackB(target, guess); + isSucceedLatestAttack = algo.getResultByDrawingB().getKey(); } } turnCount++;