Class RandomBotMakerFactory

  • All Implemented Interfaces:
    MakerFactory, PlayerFactory

    public class RandomBotMakerFactory
    extends java.lang.Object
    implements MakerFactory
    Classe factory implementazione di MakerFactory impiegata per ottenere istanze di RandomBotMaker.
    Author:
    Francesco Pio Stelluti, Francesco Coppola
    • Method Summary

      Modifier and Type Method Description
      java.lang.String getDescription()  
      CodeMaker getMaker​(GameView view, int seqLength, int attempts)
      Ottenimento di un'istanza di un giocatore CodeMaker.
      java.lang.String getName()  
      • Methods inherited from class java.lang.Object

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

      • RandomBotMakerFactory

        public RandomBotMakerFactory()
    • Method Detail

      • getMaker

        public CodeMaker getMaker​(GameView view,
                                  int seqLength,
                                  int attempts)
        Description copied from interface: MakerFactory
        Ottenimento di un'istanza di un giocatore CodeMaker.
        Specified by:
        getMaker in interface MakerFactory
        Parameters:
        view - vista per l'interazione con l'utente fisico
        seqLength - lunghezza della sequenza di ColorPegs da trattare
        attempts - numero di tentativi per vincere il gioco
        Returns:
        CodeMaker istanza di un giocatore CodeMaker
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface PlayerFactory
        Returns:
        String nome della particolare implementazione di un giocatore
      • getDescription

        public java.lang.String getDescription()
        Specified by:
        getDescription in interface PlayerFactory
        Returns:
        String descrizione della particolare implementazione di un giocatore