govariantsteam / govariants

A place to play Go variants
https://www.govariants.com
GNU Affero General Public License v3.0
5 stars 1 forks source link

Board preview #187

Open merowin opened 5 months ago

merowin commented 5 months ago

Not sure if we want to add this, but I just had this idea and wanted to write it down.

In the game creation form, we could display a preview of the board that will be used. This idea is mainly for variants with a new board pattern, so users can play with the parameters and find out what board it would be, without creating the game yet. It could be exclusive for certain variants (at the moment BadukWithAbstractBoard is ~the only variant with new board patterns~ and Fractional, and we could add this e.g. in their creation forms only)

Maybe a feature for the far future, as there are definitely more important things to work on.

benjaminpjones commented 5 months ago

I think that would be great. And probably pretty easy - might extract some code from GameListItem and just skip the "for each move" logic

Another (heavier) approach - we might at some point want to have a graphical graph editor so that people can create boards without submitting code or editing JSON. This could also serve as a way to visualize the board (even if the user is not editing)

benjaminpjones commented 2 months ago

Not exactly this, but #249 does give a way to live update a board based on config changes. Same approach could be used for the game creation form.