Arduino-Master / app.py
duatanzeel's picture
Update app.py
e30c530 verified
raw
history blame contribute delete
557 Bytes
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"<h1 style='font-size:100px; text-align: center;'>{dice_faces[dice_value]}</h1>", unsafe_allow_html=True)