debug response byte

This commit is contained in:
jeffcheasey88 2023-09-24 21:37:39 +02:00
parent ac8df18e99
commit 2fc73af4f2

View file

@ -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.)));