Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

frontend packaging: discussing the details. #17

Open
PBJI opened this issue Oct 7, 2023 · 7 comments
Open

frontend packaging: discussing the details. #17

PBJI opened this issue Oct 7, 2023 · 7 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@PBJI
Copy link
Owner

PBJI commented Oct 7, 2023


We divide the front-end into two variety.

  1. User mode: Only keeps the current state of the game and general options.
  2. Research mode: Have full access and special panel to run simulations on back-end. This UI will be more dynamic in nature.


Specification for user frontend:

  1. It will not contain the game logic but will only reflect the game state.
  2. It cannot directly update the game state. but rather have controlled user inputs which will trigger API requests to update the game state in the backend.

That is it.

Game state:

  • currentPlayer,
  • currentMove,
  • movesArray, etc.

Controlled user inputs:

  • clickable cells,
  • non-clickable cells,
  • start game,
  • undo, etc.

API request:

  • send move for currentPlayer,
  • read reply,
  • undo move, etc.


ROUTINE for frontend development:

  1. Specify the general options for user on game setup changes in backend.
  2. Track bot experimental features and update the special panel for researchers to interact with these newly designed features.


UI DESIGNs for frontend:
Figma file for user and researcher interface design



TODOs (based on routines defined):

  1. Setup boards and cells that can be clicked. (Game setup)
  2. Setup api requests that sends user inputs like cell location and other metadata (player, name, etc.)
  3. When receiving an update, accordingly change user interface.

@PBJI PBJI added enhancement New feature or request help wanted Extra attention is needed labels Oct 7, 2023
@NitkarshChourasia
Copy link
Contributor

I want to make it for, all levels.
Should I be assigned for packaging of this product?
For, Android, Webapp, and Pc builds?

@PBJI
Copy link
Owner Author

PBJI commented Oct 7, 2023

@NitkarshChourasia You are free to do that, as this is an open-source project, although it would be grateful if you do give due credits to the author in some way. Thank you.

@PBJI PBJI changed the title frontend: discussing the details. frontend packaging: discussing the details. Oct 7, 2023
@PBJI
Copy link
Owner Author

PBJI commented Oct 7, 2023

But one thing is, make sure the packaging part do take into account the dynamic nature of the backend. Backend will surely be developed with NodeJS and express. And it will be an API based application so you can be assured that no game logic will run on client side, so if you feel you can create frontend for various platforms then surely this would be great addition to the original scope of the project.

@NitkarshChourasia
Copy link
Contributor

NitkarshChourasia commented Oct 7, 2023

@NitkarshChourasia You are free to do that, as this is an open-source project, although it would be grateful if you do give due credits to the author in some way. Thank you.

I will just create and not publish it.
The author if want should take care of this.

PBJI added a commit that referenced this issue Oct 7, 2023
@NitkarshChourasia
Copy link
Contributor

But one thing is, make sure the packaging part do take into account the dynamic nature of the backend. Backend will surely be developed with NodeJS and express. And it will be an API based application so you can be assured that no game logic will run on client side, so if you feel you can create frontend for various platforms then surely this would be great addition to the original scope of the project.

I will start after the project here is like logically okay.

@PBJI
Copy link
Owner Author

PBJI commented Oct 7, 2023

Sure

But one thing is, make sure the packaging part do take into account the dynamic nature of the backend. Backend will surely be developed with NodeJS and express. And it will be an API based application so you can be assured that no game logic will run on client side, so if you feel you can create frontend for various platforms then surely this would be great addition to the original scope of the project.

I will start after the project here is like logically okay.

@NitkarshChourasia
Copy link
Contributor

NitkarshChourasia commented Oct 7, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants