Hello guys, I'm building a chess endpoint to a multiplayer chess.
So far I've created a project named chess-core (this is my core API with Pieces, moves, etc...)
also created a chess-rs (this is my endpoint using rs to play games making moves and etc...)
I want to implement a DB and a account system to store games and later on will upgrade the chess-rs to use some UCI engines.
my doubt is the following:
the core should contain all entities and logic to validate a chess move, board representation and so on...
the rs should contain points to create a game, make moves, resign and so on
I'm thinking in put a web project and use Spring to provide a user interface, and manage the DB...
this is the right design?
I mean the DB calls should be inside web project?
I'm going to call the rs inside from the JSP itself or should I use it inside my controller (business layer) on the web project?