games.mastermind.engines¶
Engines for the Mastermind game.
This module contains the engines for the Mastermind game, including the codemaker engine, guess engines, and analyzer engines.
Functions¶
|
Generate a prompt for analyzing a Mastermind position. |
Generate a prompt for creating a secret code in Mastermind. |
|
|
Generate a prompt for making a guess in Mastermind. |
Module Contents¶
- games.mastermind.engines.generate_analysis_prompt(player)¶
Generate a prompt for analyzing a Mastermind position.
This function constructs a prompt template for the analyzer engine, which analyzes the current game state from the perspective of the specified player.
- Parameters:
player (str)
- Return type:
langchain_core.prompts.ChatPromptTemplate
- games.mastermind.engines.generate_codemaker_prompt()¶
Generate a prompt for creating a secret code in Mastermind.
This function constructs a prompt template for the codemaker engine, which generates a secret code for the Mastermind game.
- Return type:
langchain_core.prompts.ChatPromptTemplate
- games.mastermind.engines.generate_guess_prompt(player)¶
Generate a prompt for making a guess in Mastermind.
This function constructs a prompt template for the guess engine, which generates a guess for the Mastermind game.
- Parameters:
player (str)
- Return type:
langchain_core.prompts.ChatPromptTemplate