🎮 Tris - First Multiplayer Game in Streamlit

Tris - First Multiplayer Game in Streamlit

Hey everyone! :wave:

I wanted to share my latest Streamlit experiment - a multiplayer Tic Tac Toe game called Tris!

:video_game: Play it here: playtris.streamlit.app

What makes it special:

  • Play with friends by sharing a unique match link or WhatsApp message
  • Clean, modern UI that works great on both desktop and mobile
  • Test the game playing with an AI player

Under the hood, it’s pure Streamlit magic:

  • Cache Resource and Session state for game management
  • Dialogs for smooth interactions
  • Custom CSS for that extra polish
  • Latest released feature “segmented control” for game mode selection

Want to check out the code?

The complete source code is available on GitHub - fabiogra/tris

Give it a try and let me know what you think! :game_die:

6 Likes

Loving all the games made in streamlit :slight_smile:

1 Like

Such a cool example of cache resource and session state!

1 Like

Nice Game!!