debug response byte
This commit is contained in:
parent
ac8df18e99
commit
2fc73af4f2
1 changed files with 4 additions and 0 deletions
|
@ -65,6 +65,10 @@ public class Completion{
|
|||
public void addTry(Puzzle currentPuzzle, byte[] response){
|
||||
if (score <= 0){
|
||||
tries++;
|
||||
|
||||
System.out.println("Compare");
|
||||
System.out.println(Arrays.toString(currentPuzzle.getSoluce()));
|
||||
System.out.println(Arrays.toString(response));
|
||||
if (response != null && Arrays.equals(currentPuzzle.getSoluce(), response)){
|
||||
if (tries > 1) { // Loose 5% each try with a minimum of 1 for score
|
||||
// score = (int) Math.ceil(currentPuzzle.getScoreMax() * (1 - ((tries - 1) / 20.)));
|
||||
|
|
Loading…
Add table
Reference in a new issue