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

Variant pages #112

Open benjaminpjones opened 1 year ago

benjaminpjones commented 1 year ago

Currently, the only option is to link to an ongoing game.

For example, govariants.com/variants/baduk

Each page could have a blurb on the rules, screenshots, and a create game form. Maybe instead of screenshots, an analysis board (see #13) and/or example game.

merowin commented 6 months ago

I would like to work on this in future, and have some ideas on how this could be structured. What do you think of the following?

New page available from nav-bar called "Tutorial" or maybe "Rules"

Users can select a variant that they want to learn about. Then the page contains rules explanations and demo boards where users can try it out by playing moves.

The rules explanations could be divided into modules that are potentially reusable by multiple variants (and have their own components). For example a module about parallel moves could be included in both pages for Parallel and for Fractional.

Nice-to-have: cross-reference links between module sections

We'll need to keep these updated though, whenever we change the rules of a variant.

JonKo314 commented 6 months ago

Sounds like a lot of work, but also very nice!

benjaminpjones commented 6 months ago

Awesome! I think that plan sounds good to me :)

When I wrote this issue, all I had in mind was a page with:

I didn't think much about how it should be linked from the main page, but menu item, as you suggested, sounds nice. Or potentially a link near the game creation form on the home page after you've selected the variant.


I should say, I dont feel strongly about any details of these pages. The main use case I envisioned was to be able to share new variants:

I just added Quantum Go to the website! Check it out! https://govariants.com/variants/quantum

merowin commented 6 months ago

Ah, so each variant should get their own page then. I was thinking of one page where users can select a variant, but that wouldn't be easily linked.

benjaminpjones commented 6 months ago

That's what I had in mind at least, but if it's preferable to have all this on one page, maybe we can support linking with query params?

https://govariants.com/rules?variant=quantum

And that would automatically set the selector to "quantum".

merowin commented 6 months ago

I'm not sure if its preferable, but I think it should be one page that's linked from the navbar. We could use a similar structure as this site: https://gamerules.com/browse-all-rules/