Business Logic Layer (Service Layer)
This layer contains the game logic, such as calculating scores and validating moves, separated from the controller and database logic. It interacts with the data layer (repository) to retrieve or update information.
Example services/gameService.js
Business Logic Layer (Service Layer)
This layer contains the game logic, such as calculating scores and validating moves, separated from the controller and database logic. It interacts with the data layer (repository) to retrieve or update information.
Example services/gameService.js