Description
views.py currently mixes API handling with game logic, making it hard to maintain.
Tasks
Move game logic (create/join/rejoin/quick match) to a new game_services.py
Keep views limited to request/response handling only
Follow a simple layered structure
Goal
Cleaner code and easier testing/maintenance
Note: Also, write tests(child of unittest.testcase) for all the changes you make.
This is a good first issue because the logic has already been implemented, it's only about relocating where the code sits.
Description
views.py currently mixes API handling with game logic, making it hard to maintain.
Tasks
Move game logic (create/join/rejoin/quick match) to a new game_services.py
Keep views limited to request/response handling only
Follow a simple layered structure
Goal
Cleaner code and easier testing/maintenance
Note: Also, write tests(child of unittest.testcase) for all the changes you make.
This is a good first issue because the logic has already been implemented, it's only about relocating where the code sits.