Spaces:
Running
Running
File size: 399 Bytes
d747bc4 507acad 581c2fc 0c74398 85779ec 0c74398 d747bc4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
import streamlit as st
from battlewords.ui import run_app, _init_session
def _new_game() -> None:
st.session_state.clear()
_init_session()
st.rerun()
def main(opened=False):
st.set_page_config(
page_title="Battlewords",
layout="wide",
initial_sidebar_state="expanded" if opened else "collapsed"
)
run_app()
if __name__ == "__main__":
main() |