from nemo import EnigmaEscape from levels import levels import streamlit as st st.set_page_config(page_title="Enigma Escape", page_icon="🔐") st.title("Enigma Escape") st.subheader("Embark on a linguistic adventure.") st.write( "The game where you guide Bot to say specific phrases with your own cleverly tweaked instructions." "Keep it short and smart - change up the words just enough to pass the test and hit the target phrase." "Ready, set, twist!" ) @st.cache_resource def get_ee(): return EnigmaEscape(levels) with get_ee() as bot: with st.expander("Choose Level >"): bot.set_level(st.radio("Level", options=range(len(levels)), format_func=lambda x: f"{levels[x].name}: {levels[x].points} points")) st.markdown(f"""