100+ AI Agents, Agent Skills and RAG Apps - Free and Open Source.
final changes1
Madhuda9fd37d35e2
diff --git a/ai_agent_tutorials/ai_chess_game/ai_chess_agents.py b/ai_agent_tutorials/ai_chess_game/ai_chess_agents.pyindex b27f964f..cb59e409 100644--- a/ai_agent_tutorials/ai_chess_game/ai_chess_agents.py+++ b/ai_agent_tutorials/ai_chess_game/ai_chess_agents.py@@ -220,9 +220,16 @@ The game is managed by a **Game Master** that:)st.markdown(chat_result.summary)+ # Display the move history (boards for each move)st.subheader("Move History")for i, move_svg in enumerate(st.session_state.move_history):- st.write(f"Move {i + 1}")+ # Determine which agent made the move+ if i % 2 == 0:+ move_by = "Agent White" # Even-indexed moves are by White+ else:+ move_by = "Agent Black" # Odd-indexed moves are by Black++ st.write(f"Move {i + 1} by {move_by}")st.image(move_svg)if st.button("Reset Game"):