haive.games.mancala.engines¶
Engines for the Mancala game.
This module defines the engines for the Mancala game, including the move and analysis prompts.
Functions¶
|
Generate a prompt for analyzing a Mancala position. |
|
Generate a prompt for making a move in Mancala. |
Module Contents¶
- haive.games.mancala.engines.generate_analysis_prompt(player)[source]¶
Generate a prompt for analyzing a Mancala position.
This function constructs a prompt template for the analysis engine, which analyzes the current game state from the perspective of the specified player.
- Parameters:
player (str)
- Return type:
langchain_core.prompts.ChatPromptTemplate
- haive.games.mancala.engines.generate_move_prompt(player)[source]¶
Generate a prompt for making a move in Mancala.
This function constructs a prompt template for the move engine, which generates a move for the Mancala game.
- Parameters:
player (str)
- Return type:
langchain_core.prompts.ChatPromptTemplate