final changes1

This commit is contained in:
Madhu
2025-01-14 22:34:48 +05:30
parent d47f8d479d
commit da9fd37d35

View File

@@ -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"):