Add room range

This commit is contained in:
Leonardo Segala 2025-08-02 01:14:58 +02:00
parent 4a3c75cd51
commit 0d659beffb
2 changed files with 8 additions and 1 deletions

View file

@ -34,6 +34,7 @@ class Room:
name: str
pin: int | None
tags: set[str]
range_size: int # in meters ??
songs: dict[str, UserScoredSong] # all songs + user score (the playlist)
history: list[Song] # all songs previously played
@ -125,6 +126,7 @@ def test_algo():
"test",
None,
set(["rock", "rap"]),
100,
{
"paulham": (songs[0], 7),
"cisco": (songs[1], 5),