Class RandomBotMakerFactory
- java.lang.Object
-
- it.unicam.cs.pa.mastermind.factories.RandomBotMakerFactory
-
- All Implemented Interfaces:
MakerFactory
,PlayerFactory
public class RandomBotMakerFactory extends java.lang.Object implements MakerFactory
Classe factory implementazione diMakerFactory
impiegata per ottenere istanze diRandomBotMaker
.- Author:
- Francesco Pio Stelluti, Francesco Coppola
-
-
Constructor Summary
Constructors Constructor Description RandomBotMakerFactory()
-
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 giocatoreCodeMaker
.java.lang.String
getName()
-
-
-
Method Detail
-
getMaker
public CodeMaker getMaker(GameView view, int seqLength, int attempts)
Description copied from interface:MakerFactory
Ottenimento di un'istanza di un giocatoreCodeMaker
.- Specified by:
getMaker
in interfaceMakerFactory
- Parameters:
view
- vista per l'interazione con l'utente fisicoseqLength
- lunghezza della sequenza diColorPegs
da trattareattempts
- numero di tentativi per vincere il gioco- Returns:
- CodeMaker istanza di un giocatore
CodeMaker
-
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
-
-