Class RandomBotBreaker


  • public class RandomBotBreaker
    extends CodeBreaker
    Estensione di CodeBreaker mirata ad una gestione del comportamento del giocatore in maniera casuale.
    Author:
    Francesco Pio Stelluti, Francesco Coppola
    • Constructor Summary

      Constructors 
      Constructor Description
      RandomBotBreaker​(int seqLength)  
    • Method Summary

      Modifier and Type Method Description
      java.util.List<ColorPegs> getAttempt()
      Potrebbe capitare che la generazione casuale delle sequenze porti ad una sequenza di ColorPegs già inserita precedentemente.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RandomBotBreaker

        public RandomBotBreaker​(int seqLength)
    • Method Detail

      • getAttempt

        public java.util.List<ColorPegs> getAttempt()
        Potrebbe capitare che la generazione casuale delle sequenze porti ad una sequenza di ColorPegs già inserita precedentemente. In tal caso verrà ripetuta l'azione di definizione di una nuova sequenza.
        Specified by:
        getAttempt in class CodeBreaker
        Returns:
        List contenente i ColorPegs validi come sequenza tentativo.