Restructuring the folders
Closed this issue · 2 comments
To clean up the structure of the project we could have:
- imports/core
- imports/experiment
- experiment/game
- game/client
- game/server
- server/index.js
- server/constants.js
- game/bot
- experiment/intro
- experiment/outro
- experiment/game
- public/experiment
- public/core
Where intro and outro will be only client side.
I wanted to make this change but I am not sure I agree with this new structure. intro and outro might not be part of the game per se, but they are client only. bots on the other hand are server only. I do need to a valid a loading order, basically I need my index.js at each root of client and server code. Could we be more fancy, yes, but I'm not sure the added value. I do like the clear separation between server and client, I think it's a nice and simple indicator for the developer where things will run. Maybe something like:
- imports
- experiment
- client
- index.js
- game/
- intro/
- outro/
- server
- index.js
- game/
- bots/
- client
- experiment
Sure. I don't mind this separation as long as we know that intro/outro will not have server-side .. and bots will have no client side in the future :) hopefully!