gcivil-nyu-org / INET-Monday-Fall2023-Team-5

3 stars 5 forks source link

Refactor Moon Phase Message Handling #315

Closed aya0221 closed 10 months ago

aya0221 commented 10 months ago

This commit improves the handling of moon phase messages in the game's WebSocket consumer. It corrects the data structure received by the moon_phase method to align with the frontend's expected format, ensuring proper synchronization of moon phase data between the server and client.

Key Changes:

Also, Updated game session query to directly use 'game_id' for better clarity and consistency. Implemented user authentication checks in WebSocket consumer for secure action validation. Improved moon phase messaging logic to correctly update player word pools and handle moon phase interpretations, ensuring accurate game state transitions and data integrity.