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 diBreakerFactory
impiegata per ottenere istanze diRandomBotBreaker
.- Author:
- Francesco Pio Stelluti, Francesco Coppola
-
-
Constructor Summary
Constructors Constructor Description RandomBotBreakerFactory()
-
Method Summary
Modifier and Type Method Description CodeBreaker
getBreaker(GameView view, int seqLength, int attempts)
Ottenimento di un'istanza di un giocatoreCodeBreaker
.java.lang.String
getDescription()
java.lang.String
getName()
-
-
-
Method Detail
-
getBreaker
public CodeBreaker getBreaker(GameView view, int seqLength, int attempts)
Description copied from interface:BreakerFactory
Ottenimento di un'istanza di un giocatoreCodeBreaker
.- Specified by:
getBreaker
in interfaceBreakerFactory
- Parameters:
view
- vista per l'interazione con l'utente fisicoseqLength
- lunghezza della sequenza diColorPegs
da trattareattempts
- numero di tentativi per vincere il gioco- Returns:
- CodeBreaker istanza di un giocatore
CodeBreaker
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfacePlayerFactory
- Returns:
- String nome della particolare implementazione di un giocatore
-
getDescription
public java.lang.String getDescription()
- Specified by:
getDescription
in interfacePlayerFactory
- Returns:
- String descrizione della particolare implementazione di un giocatore
-
-