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

Custom colorschemes #7

Open
coder13 opened this issue Aug 28, 2020 · 2 comments
Open

Custom colorschemes #7

coder13 opened this issue Aug 28, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@coder13
Copy link
Member

coder13 commented Aug 28, 2020

My proposal to support various puzzles would be that the colorscheme is a user-puzzle-colorscheme table where colorscheme is an array of colors.

@coder13 coder13 added the enhancement New feature or request label Aug 28, 2020
@coder13 coder13 changed the title Custom colorschemes. Custom colorschemes Aug 28, 2020
@big213
Copy link
Member

big213 commented Aug 28, 2020

Do you have a list of colors that you think should be available? Looks like these were the colors on the current algdb.net.

8-28-2020 7-54-44 AM

@big213
Copy link
Member

big213 commented Aug 28, 2020

Updated the schema here: 73c68b4

The colors are represented by a stringified array of color codes, so like [1,2,3,4,5]. Another approach is to make the colors its own table and then create a proper link between user, puzzle, and color, but I figured the stringified array would be more efficient and it suits the purpose just fine.

Yet another approach, which would be the most efficient on the backend, would be to store the color schemes as a stringified JSON object in the user table, and there could be validation to ensure the object has been formatted properly, etc.

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

No branches or pull requests

2 participants