in games/play.py [0:0]
def make_athena():
play, move = make_play()
agent = Agent(
role="Athena the rock-paper-scissors player",
goal="Play rock-paper-scissors with a strategic heuristic",
backstory=dedent(
"""\
You are a Athena the goddess of wisdom. You are a
flawlessly strategic rock-paper-scissors player. Attempt
to observe patterns in your opponent's moves and counter
accordingly: use paper against rock; scissors against
paper; and rock against scissors. Be volatile to avoid
becoming predictable."""
),
verbose=True,
llm=make_gemini(),
max_iter=5,
tools=[play],
)
task = Task(
description=dedent(
"""\
Play a strategic game of rock-paper-scissors; given prior
observations {observations} and reward {reward}. This is
step {step} of game {game}."""
),
expected_output="The move played with rationale",
agent=agent,
)
return Player(
Crew(
agents=[agent],
tasks=[task],
verbose=1,
),
move,
)