new tool for reviewing LG hex games (alternative to trmph) Hex, Havannah

43 replies. Last post: 2020-11-13

Reply to this topic Return to forum

new tool for reviewing LG hex games (alternative to trmph)
  • Tom Ace ★ at 2020-09-01

    I have set up a web page for reviewing and analyzing Hex games played on LG.  It lets you play variations and maintains a tree like jhex does.  It’s roughly the same code I presented a demo of a while back, but this time with the ability to grab games by number from LG.

    https://minortriad.com/ahex.html


  • lazyplayer at 2020-09-01

    Tom, great tool, the analysis is lost when we close the browser?

  • Tom Ace ★ at 2020-09-01

    It’s a work in progress.  I am still working on code to save analysis but for now it’s lost when you close the browser.

  • lazyplayer at 2020-09-02

    Yes maybe saving it in a cookie or something? This way it would remain purely client-side. I’ve asked Richard to change the link from trmph to your page because as it is now it’s already better than trmph!

  • lazyplayer at 2020-09-02

    If possible then you should consider donating to littlegolem.net, perhaps in exchange of a lifetime membership... :)

  • Richard Malaschitz ★ at 2020-09-02

    It is now implemented on click. Thanks !!

  • lazyplayer at 2020-09-02

    Richard, thank you, please don’t forget hex19.

  • lazyplayer at 2020-09-02

    Tom, I’m using it for a game right now and it’s extremely pleasant to use! Simple and effective!

  • HappyHippo at 2020-09-02

    Excellent work Tom!

  • Arek Kulczycki at 2020-09-02

    Thank you Tom and Richard! :)

  • gi0cam at 2020-09-02

    Thanks!

  • Tom Ace ★ at 2020-09-02

    Thanks to all for the kind words, and thanks very much to Richard for setting up the link.  I’ll let you know when I have more features ready (e.g., saving analysis).

  • brzy at 2020-09-02

    Thank you Tom Ace.

    Are you planning to develop the feature of analyzing and reviewing Havannah games?

  • Bill LeBoeuf ★ at 2020-09-07

    Thanks Tom, you’re the best !


  • Boguslaw at 2020-09-08

    Thank you.

  • apetresc ★ at 2020-09-09

    Wonderful tool – thank you! :)

    Now any chance you can also implement trmph’s Havannah support too? 😁

  • Tom Ace ★ at 2020-09-11

    The next version will support load/store and a few other additional features.  I’m still working on it and I’ll release it as soon as it’s ready and tested.

    Yes I plan to support Havannah at some point but other improvements will come first.

    Thanks to all for the kind words of support!


  • Arek Kulczycki at 2020-09-12

    @Tom, your tool is awesome and it’s so awesome that I’m worried it will solve 13x13 for good when we start sharing all the analysis... I don’t know if it’s good or a bad thing, but I’m getting sentimental :)

  • add3993 ★ at 2020-09-13

    Building on Arek’s comment, ambitious feature request: ability to use it with engines, i.e. to send moves to an external, offline bot software and receive moves for display, along with comments.  If you provide a suitable interface, we may get easily-usable superhuman bots more quickly.  Which would be stupendous.

  • lguser at 2020-09-14

    yes, add’s suggestion is something that will revolutionize hex gameplay like nothing else can

  • HappyHippo at 2020-09-15

    While that would be a nice feature for a hex viewer, I don’t believe it should be integrated into the “official” linked analysis viewer. LG having the analysis link right by the game implies that it’s ok to use that software when selecting your move. We wouldn’t want to imply that it’s acceptable to use computer analysis in deciding your move.

  • Bill LeBoeuf ★ at 2020-09-18

    Tom, when do you think that load/store feature will be available?  I would really like to be able to preserve my analysis.

    Thanks again for an awesome tool!


  • Tom Ace ★ at 2020-09-19

    Load/store will be available within a week.  I wanted to deliver it sooner but I ended up reworking the code a bit in getting it to support transposition, and in providing a means to merge trees.

  • Bill LeBoeuf ★ at 2020-09-20

    Great!

    Yes, the program the program seems to have a problem when it tries to handle  a transposition.


  • Tom Ace ★ at 2020-09-24

    A new version is available, accessible from the links on Hex games here on LG (thanks again, Richard!) or directly at https://minortriad.com/ahex.html

    Today’s release has bug fixes, it handles transposition, and it reads/writes files.  For details, please read the documentation available via the help button in the drop-down menu.

    Thanks to everyone.  I appreciate all the feedback I’ve gotten.  I plan to add more features with time, including support for more board sizes.  If a suggestion you made isn’t in this release, be assured that I do still have it in mind.  I’m trying to make the most urgent changes first.

    I’m happy to answer questions.  If bugs show up, I definitely want to fix them.  Please let me know if you see any problems. 

  • HappyHippo at 2020-09-25

    Hi Tom,

    Great work! Handling the transpositions is a cool feature.

    Is there a link to start with a blank board? https://minortriad.com/hexa.html seems to be the “old” site.

  • Tom Ace ★ at 2020-09-25

    Thanks HappyHippo.  Yeah I moved filenames around but from now on they should be stable.  For a blank board, https://minortriad.com/ahex.html

  • Boguslaw at 2020-09-25

    Thank you, Tom, it is really great and very helpful !

  • Arek Kulczycki at 2020-09-25

    Oh, you can remove the last stone by clicking on it again, I love it :)

  • Bill LeBoeuf ★ at 2020-09-25

    Tom, fabulous work!

    Tom, on Write could you set an option for Replace file vs. Duplicate file...

    Great program!


  • Tom Ace ★ at 2020-09-26

    Bill, I don’t know of a way to replace files on write. A  JavaScript program running in a browser doesn’t have direct access to the computer’s file system.   The only way I know of for the program to write a file is to pass it to the browser as a download and at that point it’s out of my hands.  Browsers typically don’t overwrite files but instead save with a version number appended to the filename and I don’t know of a way to change that behavior.

    If any JavaScript programmers here are aware of another option, please let me know.

  • HappyHippo at 2020-09-26

    Nah, that’s basically it AFAIK. Letting a website have access to the user’s files would be a security issue, to put it mildly.

  • HappyHippo at 2020-09-26

    The only other thing to do would be to turn your code into an Electron app, but I prefer the convenience of a website.

  • Tom Ace ★ at 2020-10-08

    A new version is available with Havannah support and a few new features.

    Bill LeBoeuf asked if overwrite was possible on saving files.  I still don’t know of a way to do that when writing to your computer’s filesystem but I can offer the next best thing:  the option of writing to browser local storage.  See the help file for details, but briefly:  local storage is browser-specific (it can’t be shared across several computers or browsers) but it makes saving graphs simpler (with overwrite).

    I also added bookmarks.  When a graph has lots of branches it can be tedious to navigate to the line(s) where the latest action is.  Now you can mark one or more positions and return to them.  The --> and -->br buttons are no longer grayed out when there are multiple ways forward and they choose a branch that leads to a marked position if there is one.  The help file has full details.

    If you’re not seeing the new version, hold shift down while clicking reload.  Some browsers don’t download the file on a plain reload.

    Havannah pages don’t have links (yet) but you can always enter a game number on the page at https://minortriad.com/ahexlg.html

    Large boards take up a lot of space on a screen.  I plan to support multiple cell sizes but that’s not ready yet.  Until then, use browser zoom as needed.

    I’m happy to answer questions.  If there are bugs, I definitely want to fix them.  Please let me know if you see any problems.

    Thanks to Richard Malaschitz for maintaining LG and thanks to everyone playing here.

  • eobllor ★ at 2020-10-09

    Really nice features, thanks for this!

    How do your engine know the game (Hex or Havannah) from the id? As far as I know, the game is not indicated in the SGFs found in LG.

    As regards saving files, wouldn’t it be adequate to have a button display a text version of the game tree and leave to the user the task of saving it as a file? Then the text obtained that way could be later pasted on your page and parsed to recreate the game it represents; if it goes as GET variable in the url of the resulting page, the game could even be shared with others.

  • gi0cam at 2020-10-09

    Thank you for the bookmark feature, I think it is extremely useful!

  • Christian K at 2020-10-09

    This is great! Thanks. If you are looking for suggestions, I would absolutely love to see Dots and Boxes there. This was my main use of trmph.com

  • David J Bush ★ at 2020-10-09

    Thanks for adding Havannah!

  • Tom Ace ★ at 2020-10-09

    eobllor:  It recognizes Havannah games by whether there are digits in the moves.  LG formats Havannah moves as A1, B14, ... and Hex moves as aa, bn, ... .

    I’m not seeing what advantage cut/paste would have over the existing ability to read/write files.  It’s easier to make errors cutting and pasting.

    Christian K:  I hope trmph comes back at some point.  For now, I’m not planning to add more games.   Adding Havannah wasn’t hard because of how much it has in common with Hex.

    David:  you’re welcome :)

  • Bill LeBoeuf ★ at 2020-10-10

    Tom, thanks for the new version, the old version was already great.

    Your work is absolutely phenomenal!

    Thank you.

  • gi0cam at 2020-10-11

    I have a suggestion for a little improvement: it would be nice, when opening a board via the LG link, that it automatically marks the last move too. After all, that is the starting point of the analysis, and one should be able to quickly go back to it.
    In any case, I think that this really is a great tool.
    Thanks again!

  • Tom Ace ★ at 2020-11-11

    I installed a new release today.  It offers two zoom levels (selectable in the drop-down menu) and supports all Hex board sizes from 10×10 through 19×19.  Please let me know if you encounter any problems.

  • add3993 ★ at 2020-11-13

    Enjoying the tool!  It would be great if when you open the game from its LG page, and start exploring a line of play, the current position were marked as such so that when you click “<- br” it takes you back to the current move (as one tends to hope/expect) rather than the beginning of the game.

    I also would prefer that the LG link to minortriad open in a new tab in the browser, though I guess this is up to Richard.

Return to forum

Reply to this topic




Include game board: [game;id:123456] or [game;id:123456;move:20] or [game;id:123456;move:20;title:some text]