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 diMakerFactoryimpiegata 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.StringgetDescription()CodeMakergetMaker(GameView view, int seqLength, int attempts)Ottenimento di un'istanza di un giocatoreCodeMaker.java.lang.StringgetName()
-
-
-
Method Detail
-
getMaker
public CodeMaker getMaker(GameView view, int seqLength, int attempts)
Description copied from interface:MakerFactoryOttenimento di un'istanza di un giocatoreCodeMaker.- Specified by:
getMakerin interfaceMakerFactory- Parameters:
view- vista per l'interazione con l'utente fisicoseqLength- lunghezza della sequenza diColorPegsda trattareattempts- numero di tentativi per vincere il gioco- Returns:
- CodeMaker istanza di un giocatore
CodeMaker
-
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
-
-