mirror of
https://github.com/ovosimpatico/SongQuiz.git
synced 2026-01-15 16:32:55 -03:00
make all game sessions have 10 questions
This commit is contained in:
@@ -24,11 +24,6 @@ class GameService:
|
|||||||
|
|
||||||
async def create_game(self, settings: GameSettings) -> GameSession:
|
async def create_game(self, settings: GameSettings) -> GameSession:
|
||||||
"""Create a new game session with the specified settings."""
|
"""Create a new game session with the specified settings."""
|
||||||
# Override settings to ensure exactly 4 questions
|
|
||||||
settings.num_songs = 4
|
|
||||||
settings.num_choices = 4
|
|
||||||
|
|
||||||
|
|
||||||
# Process playlist if specified
|
# Process playlist if specified
|
||||||
genres = settings.genres
|
genres = settings.genres
|
||||||
start_year = settings.start_year
|
start_year = settings.start_year
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ interface WelcomeScreenProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const WelcomeScreen: React.FC<WelcomeScreenProps> = ({ onStart }) => {
|
const WelcomeScreen: React.FC<WelcomeScreenProps> = ({ onStart }) => {
|
||||||
// Always 4 songs per game
|
// Always 10 songs per game
|
||||||
const NUM_SONGS = 4;
|
const NUM_SONGS = 10;
|
||||||
const NUM_CHOICES = 4;
|
const NUM_CHOICES = 4;
|
||||||
|
|
||||||
const [selectedGenres, setSelectedGenres] = useState<string[]>([]);
|
const [selectedGenres, setSelectedGenres] = useState<string[]>([]);
|
||||||
|
|||||||
Reference in New Issue
Block a user