add board config input form components #259
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds components for input forms for the various board configs. I tried to streamline these components by having one dedicated component for each board pattern.
With this it will be possible to create and play games with the new board patterns for variants baduk, phantom, capture, tetris, thue-morse, and one-color.
For variants freeze and quantum it should not be too much work to also enable this, but since these have their own board component, I'd like to do this in a separate PR.
It's worth noting that there's a couple of possible improvements that I've ignored for now.
1.) The graph board component doesn't use the annotations yet.
2.) At the moment, the newly added config input forms don't use the default config as defined by the variant itself, but their own default config.