Skip to content

Move game logic from views to game_services.py #40

@dhature

Description

@dhature

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions