Giter Site home page Giter Site logo

Comments (6)

SameerDalal avatar SameerDalal commented on June 20, 2024 2

Looking into the save feature, I think we would need to create our own SGF file generator and interpreter.

While the moves on both boards may be the same, if a quantum piece is captured, the changes on both boards are likely to be at different coordinates. A typical SGF viewer like Sabaki may not be able to handle this since it can’t manage two boards simultaneously. Please correct me if I am wrong.

We should also add a variation parameter. Eg: VA[quantum] in the SGF file so that this feature could be used for other variations.

from govariants.

merowin avatar merowin commented on June 20, 2024 1

Some thoughts:

  1. Save games

Downloading the game moves is certainly possible. Some of our variants (including Quantum Go) save the moves in Smart Game Format (SGF). So I believe the produced files could then be opened by SGF Editors like Sabaki. But the games would not be display in the same way as on the website (e.g. for Quantum Go, a normal SGF reader would not display two boards).

  1. Undo Request

This would be nice to have for all variants. It would be desirable if we could implement this without adding complexity to the variants (i.e., without handling "take-back" moves in all variants, if possible).

  1. Making Quantum Go to be an Incomplete Information Game

Should this be the default rule for all games of Quantum Go, or should it be configurable whether this rule is used or not?

from govariants.

zcbwh avatar zcbwh commented on June 20, 2024

Thanks for your prompt response! I agree that saving may need a different format, but perhaps we could start with the regular SGF? That is there will be two .SGF one for each board; Note that for the second board, it also would need to be Black, White, Black, White--the current way of displaying is not optimal because it shows White goes first on the second board, so could this be fixed? I agree with you on "Undo Request". Regarding 4, could we make one quantum variant where we count the average of both games as the result (complete information), and another quantum go variant where it is an Incomplete Information Game?

from govariants.

benjaminpjones avatar benjaminpjones commented on June 20, 2024

I agree that saving may need a different format, but perhaps we could start with the regular SGF? That is there will be two .SGF one for each board;

I think a single SGF file would be sufficient. SGF stores move coordinates, not board states, and the moves are the same on both boards.

the current way of displaying is not optimal because it shows White goes first on the second board, so could this be fixed?

I think I understand what you're saying, although the intent was not to say "this move was placed by white", but rather "this stone will function as a white stone throughout the game".

This would be a a small thing to change - I can share some code pointers if you or someone else is interested in making the change to just solid green on the first move.

Regarding 4, could we make one quantum variant where we count the average of both games as the result (complete information), and another quantum go variant where it is an Incomplete Information Game?

This is a little more in-depth change, but its possible, and again, I'd be happy to work with a willing implementer.

My main question is UX: how do users select the board? Would this get easier with #134?

from govariants.

benjaminpjones avatar benjaminpjones commented on June 20, 2024

That seems correct. I realize that if the goal is to view in a standard SGF editor, then it makes sense to output two files (representing quantum capture with the AE field?)

Generally, captures are not explicitly included in the SGF, which is why I commented that one file should be sufficient earlier.

from govariants.

SameerDalal avatar SameerDalal commented on June 20, 2024

Sounds good. Here are the two versions I could work on:

1). The software will create a modified SGF file to include all the game data in one file. This may break some format rules of the standard SGF file and would be unusable by other SGF editors except for ours. But regardless, most SGF editors won't be able to handle the quantum version anyways.

  1. The software will create two files that follow the SGF format. These files could be opened by SGF editors, but the downside is that the user would have to keep two files per game.

I'll start working on this feature and see what works best.

from govariants.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.