Denis 72e6cb10ed Backend - Add match logic (#38)
* add method to update server state

* add draft test match unit test class

* add join response message class

* add lobby state message class

* add spectator raw type

* add start match json schema

* add start match message class

* add test client manager class

* change client to return server responses as python classes

* add start match test method

* adapt old unit tests to use python message classes

* shortcut two players join and ready protocol

* fix wrong imports

* add message to assertion

* make broadcast function send message provided as argument

* add match state message class

* add match state json schema

* add match utility class

* add match state message class

* extend test function with match state check

* remove print statement

* add missing match schemas to frontend and add id properties

* make state keys unique

* fix MockSocket

* add basic match history funtionality

* use Prettier formatter

* fix typehint error
2026-05-04 20:00:44 +02:00
2026-05-04 20:00:44 +02:00
2026-04-13 19:11:07 +02:00

A beer pong auto battler with stupid people.

Development

To run both frontend and backend run npm run dev in the root folder.

Frontend

To run the front-end, go into src/frontend and run: npm install && npm run dev.

Backend

To setup the Python environment go into src/backend and run: python -m venv .venv && source .venv/bin/activate && pip install -r requirements.txt

To start the server run python run_server.py. To execute the unit tests run python -m unittest.

S
Description
A beer pong auto battler with stupid people.
Readme
3.8 MiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 60%
Python 37.9%
JavaScript 1.8%
HTML 0.2%