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

[Shared Library] Set up a shared library structure to use on both frontend and backend #23

Open
allenh opened this issue Aug 15, 2023 · 0 comments
Labels

Comments

@allenh
Copy link
Contributor

allenh commented Aug 15, 2023

Description

We need to have a shared library to be used on both server and frontend to compute legal piece moves.

Acceptance Criteria

  1. create a shared library folder structure in the repo on the top level called shared
  2. make sure server has access to /shared on local development
  3. make sure frontend has access to /shared on local development
  4. make sure the current build process can bundle the /shared tooling in both frontend and server images

Testing demo

  1. as a demo create a simple move validation for
    • eg: given current position (x, y, 1), the valid moves set is [(x+1, y, 1), (x-1,y,1)] assuming both x+1 and x-1 are within bounds
@allenh allenh added the feature label Aug 15, 2023
@allenh allenh changed the title [Shared Library] Piece Move Validation [Shared Library] Set up a shared library structure to use on both frontend and backend Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant