Valentin-Laurent / collaborative-2048

POC of a collaborative 2048 online game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction

POC of an online collaborative 2048 (original game available here), using Streamlit and Pandas for the graphical rendering, and pure Python for the game engine.

The result is available here on Streamlit Cloud. A GitHub workflow is supposed to ping the app every day to keep it up and running, but it doesn't work.

This package also contains the required config files to deploy the game on Heroku.

About the code

I used a hack for the Streamlit part, but I suspect that a much cleaner approach is now possible thanks to Streamlit Session State (app.py was implemented before its release). This Streamlit reference repo provides an example here of the use of Session State.

The Python game engine is a pretty naive implementation, and was not designed to be computationally efficient. I would now approach this in a quite different way.

About

POC of a collaborative 2048 online game


Languages

Language:Python 85.8%Language:Makefile 10.3%Language:Shell 3.2%Language:Procfile 0.6%