CoolFace
Apppublic

reshinthadith/wordle-solver

sourceHugging Faceupdated 5y agoView on Hugging Face
0likes
app.py17 linesDownload Raw Back to root
1import streamlit as st2import pandas as pd3from src.game import Wordle4 5 6st.title("WORDLE")7 8 9with st.form("Wordle"):10    button = st.form_submit_button("Play")11    box = st.selectbox("Select the trial level :",["6","100"])12    if button:13        wordle = Wordle(int(box))14        chosen_word,game_diction = wordle.play()15        st.dataframe(pd.DataFrame.from_dict(game_diction))16        st.write(f"The actual word is : {wordle.wordle}")17        st.write(f"It took {len(game_diction['step_no'])} random search steps to find it")