import streamlit as st import random st.set_page_config(page_title="Dice Roller", page_icon="🎲") st.title("🎲 Dice Roller Game") st.write("Click the button to roll the dice!") if st.button("Roll Dice"): dice_value = random.randint(1, 6) st.success(f"You rolled a {dice_value}!") dice_faces = { 1: "⚀", 2: "⚁", 3: "⚂", 4: "⚃", 5: "⚄", 6: "⚅" } st.markdown(f"

{dice_faces[dice_value]}

", unsafe_allow_html=True)