Class RandomBotBreakerFactory
- java.lang.Object
-
- it.unicam.cs.pa.mastermind.factories.RandomBotBreakerFactory
-
- All Implemented Interfaces:
BreakerFactory,PlayerFactory
public class RandomBotBreakerFactory extends java.lang.Object implements BreakerFactory
Classe factory implementazione diBreakerFactoryimpiegata per ottenere istanze diRandomBotBreaker.- Author:
- Francesco Pio Stelluti, Francesco Coppola
-
-
Constructor Summary
Constructors Constructor Description RandomBotBreakerFactory()
-
Method Summary
Modifier and Type Method Description CodeBreakergetBreaker(GameView view, int seqLength, int attempts)Ottenimento di un'istanza di un giocatoreCodeBreaker.java.lang.StringgetDescription()java.lang.StringgetName()
-
-
-
Method Detail
-
getBreaker
public CodeBreaker getBreaker(GameView view, int seqLength, int attempts)
Description copied from interface:BreakerFactoryOttenimento di un'istanza di un giocatoreCodeBreaker.- Specified by:
getBreakerin interfaceBreakerFactory- Parameters:
view- vista per l'interazione con l'utente fisicoseqLength- lunghezza della sequenza diColorPegsda trattareattempts- numero di tentativi per vincere il gioco- Returns:
- CodeBreaker istanza di un giocatore
CodeBreaker
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfacePlayerFactory- Returns:
- String nome della particolare implementazione di un giocatore
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescriptionin interfacePlayerFactory- Returns:
- String descrizione della particolare implementazione di un giocatore
-
-