Skip to content
  • Hjem
  • Seneste
  • Etiketter
  • Populære
  • Verden
  • Bruger
  • Grupper
Temaer
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Kollaps
FARVEL BIG TECH
  1. Forside
  2. Ikke-kategoriseret
  3. A couple of weeks ago I showed a preview of a new mode for Mines, in my puzzle collection.

A couple of weeks ago I showed a preview of a new mode for Mines, in my puzzle collection.

Planlagt Fastgjort Låst Flyttet Ikke-kategoriseret
52 Indlæg 34 Posters 1 Visninger
  • Ældste til nyeste
  • Nyeste til ældste
  • Most Votes
Svar
  • Svar som emne
Login for at svare
Denne tråd er blevet slettet. Kun brugere med emne behandlings privilegier kan se den.
  • simontatham@hachyderm.ioS simontatham@hachyderm.io

    A couple of weeks ago I showed a preview of a new mode for Mines, in my puzzle collection. I'm pleased to say that the new Mines is now completed and live! You can now play Minesweeper on a wide range of tilings in your browser
    https://www.chiark.greenend.org.uk/~sgtatham/puzzles/js/mines.html
    or download a desktop version from the parent page which supports the same set of grids.

    As well as the support for lots of grid types, there's also a new user preference (off by default) to make it easier to play on them. When you click on a clue square to potentially clear around it, the existing flags adjacent to the square light up, to make it easier to count them and work out how many more mines you're still expecting. Particularly useful in the hat tiling, where it's easy to mistake exactly what is adjacent to what!

    I expect different people will prefer different grids. Personally I think the triangular grid is particularly tricky and puzzly; the hexagonal honeycomb makes a gentle introduction; the Cairo, Floret and Kites tilings are a nice set in between those extremes; and of course the aperiodic tilings are there to keep you on your toes and ready for anything.

    Many thanks to Anders Höglund for this excellent piece of work.

    kgjenkins@mapstodon.spaceK This user is from outside of this forum
    kgjenkins@mapstodon.spaceK This user is from outside of this forum
    kgjenkins@mapstodon.space
    wrote sidst redigeret af
    #23

    @simontatham How about US congressional districts? 😜

    simontatham@hachyderm.ioS 1 Reply Last reply
    0
    • leeloo@c.imL leeloo@c.im

      @simontatham
      Is GTK-2 still meant to be supported? I get a build error complaining that gtk_widget_set_focus_on_click doesn't exist.

      lp0_on_fire@cupoftea.socialL This user is from outside of this forum
      lp0_on_fire@cupoftea.socialL This user is from outside of this forum
      lp0_on_fire@cupoftea.social
      wrote sidst redigeret af
      #24

      @leeloo @simontatham, same here. Both times that it's used, it needs to be replaced with

      gtk_button_set_focus_on_click(GTK_BUTTON(button), false);

      (preferably wrapped in an appropriate #if so as to use gtk_widget_set_focus_on_click when building against GTK+3).

      With that fixed, it seems fine with GTK+2 (tested with 2.24.33).

      1 Reply Last reply
      0
      • simontatham@hachyderm.ioS simontatham@hachyderm.io

        A couple of weeks ago I showed a preview of a new mode for Mines, in my puzzle collection. I'm pleased to say that the new Mines is now completed and live! You can now play Minesweeper on a wide range of tilings in your browser
        https://www.chiark.greenend.org.uk/~sgtatham/puzzles/js/mines.html
        or download a desktop version from the parent page which supports the same set of grids.

        As well as the support for lots of grid types, there's also a new user preference (off by default) to make it easier to play on them. When you click on a clue square to potentially clear around it, the existing flags adjacent to the square light up, to make it easier to count them and work out how many more mines you're still expecting. Particularly useful in the hat tiling, where it's easy to mistake exactly what is adjacent to what!

        I expect different people will prefer different grids. Personally I think the triangular grid is particularly tricky and puzzly; the hexagonal honeycomb makes a gentle introduction; the Cairo, Floret and Kites tilings are a nice set in between those extremes; and of course the aperiodic tilings are there to keep you on your toes and ready for anything.

        Many thanks to Anders Höglund for this excellent piece of work.

        phl@mastodon.socialP This user is from outside of this forum
        phl@mastodon.socialP This user is from outside of this forum
        phl@mastodon.social
        wrote sidst redigeret af
        #25

        @simontatham Insane stuff, love it 😄 The triangle mode really requires a very different way of thinking compared to square or hex lattice.

        1 Reply Last reply
        0
        • simontatham@hachyderm.ioS simontatham@hachyderm.io

          A couple of weeks ago I showed a preview of a new mode for Mines, in my puzzle collection. I'm pleased to say that the new Mines is now completed and live! You can now play Minesweeper on a wide range of tilings in your browser
          https://www.chiark.greenend.org.uk/~sgtatham/puzzles/js/mines.html
          or download a desktop version from the parent page which supports the same set of grids.

          As well as the support for lots of grid types, there's also a new user preference (off by default) to make it easier to play on them. When you click on a clue square to potentially clear around it, the existing flags adjacent to the square light up, to make it easier to count them and work out how many more mines you're still expecting. Particularly useful in the hat tiling, where it's easy to mistake exactly what is adjacent to what!

          I expect different people will prefer different grids. Personally I think the triangular grid is particularly tricky and puzzly; the hexagonal honeycomb makes a gentle introduction; the Cairo, Floret and Kites tilings are a nice set in between those extremes; and of course the aperiodic tilings are there to keep you on your toes and ready for anything.

          Many thanks to Anders Höglund for this excellent piece of work.

          eevee@slime.globalE This user is from outside of this forum
          eevee@slime.globalE This user is from outside of this forum
          eevee@slime.global
          wrote sidst redigeret af
          #26

          @simontatham ahahaha oh my god, the hat grid is absolutely awful. love this

          1 Reply Last reply
          0
          • simontatham@hachyderm.ioS simontatham@hachyderm.io

            A couple of weeks ago I showed a preview of a new mode for Mines, in my puzzle collection. I'm pleased to say that the new Mines is now completed and live! You can now play Minesweeper on a wide range of tilings in your browser
            https://www.chiark.greenend.org.uk/~sgtatham/puzzles/js/mines.html
            or download a desktop version from the parent page which supports the same set of grids.

            As well as the support for lots of grid types, there's also a new user preference (off by default) to make it easier to play on them. When you click on a clue square to potentially clear around it, the existing flags adjacent to the square light up, to make it easier to count them and work out how many more mines you're still expecting. Particularly useful in the hat tiling, where it's easy to mistake exactly what is adjacent to what!

            I expect different people will prefer different grids. Personally I think the triangular grid is particularly tricky and puzzly; the hexagonal honeycomb makes a gentle introduction; the Cairo, Floret and Kites tilings are a nice set in between those extremes; and of course the aperiodic tilings are there to keep you on your toes and ready for anything.

            Many thanks to Anders Höglund for this excellent piece of work.

            ezra@problemeowtic.netE This user is from outside of this forum
            ezra@problemeowtic.netE This user is from outside of this forum
            ezra@problemeowtic.net
            wrote sidst redigeret af
            #27

            @simontatham@hachyderm.io

            reminds me of globesweeper

            1 Reply Last reply
            0
            • simontatham@hachyderm.ioS simontatham@hachyderm.io

              A couple of weeks ago I showed a preview of a new mode for Mines, in my puzzle collection. I'm pleased to say that the new Mines is now completed and live! You can now play Minesweeper on a wide range of tilings in your browser
              https://www.chiark.greenend.org.uk/~sgtatham/puzzles/js/mines.html
              or download a desktop version from the parent page which supports the same set of grids.

              As well as the support for lots of grid types, there's also a new user preference (off by default) to make it easier to play on them. When you click on a clue square to potentially clear around it, the existing flags adjacent to the square light up, to make it easier to count them and work out how many more mines you're still expecting. Particularly useful in the hat tiling, where it's easy to mistake exactly what is adjacent to what!

              I expect different people will prefer different grids. Personally I think the triangular grid is particularly tricky and puzzly; the hexagonal honeycomb makes a gentle introduction; the Cairo, Floret and Kites tilings are a nice set in between those extremes; and of course the aperiodic tilings are there to keep you on your toes and ready for anything.

              Many thanks to Anders Höglund for this excellent piece of work.

              garthy@social.linux.pizzaG This user is from outside of this forum
              garthy@social.linux.pizzaG This user is from outside of this forum
              garthy@social.linux.pizza
              wrote sidst redigeret af
              #28

              @simontatham this is great but i came accross this? But I’m maybe misunsderstanding? https://www.chiark.greenend.org.uk/~sgtatham/puzzles/js/mines.html#8x8t3:36,64,mea3060b49e103519

              simontatham@hachyderm.ioS 1 Reply Last reply
              0
              • garthy@social.linux.pizzaG garthy@social.linux.pizza

                @simontatham this is great but i came accross this? But I’m maybe misunsderstanding? https://www.chiark.greenend.org.uk/~sgtatham/puzzles/js/mines.html#8x8t3:36,64,mea3060b49e103519

                simontatham@hachyderm.ioS This user is from outside of this forum
                simontatham@hachyderm.ioS This user is from outside of this forum
                simontatham@hachyderm.io
                wrote sidst redigeret af
                #29

                @garthy those settings specify a "cyclic" mode, in which the top of the grid is considered to wrap round to the bottom. So that 2 clue is not just adjacent to the single closed cell shown in your picture, but also to some cells at the bottom of the grid.

                If you click on the 2 cell as if you were going to clear around it, it will show all the cell's closed neighbours temporarily.

                jernej__s@infosec.exchangeJ 1 Reply Last reply
                0
                • simontatham@hachyderm.ioS simontatham@hachyderm.io

                  A couple of weeks ago I showed a preview of a new mode for Mines, in my puzzle collection. I'm pleased to say that the new Mines is now completed and live! You can now play Minesweeper on a wide range of tilings in your browser
                  https://www.chiark.greenend.org.uk/~sgtatham/puzzles/js/mines.html
                  or download a desktop version from the parent page which supports the same set of grids.

                  As well as the support for lots of grid types, there's also a new user preference (off by default) to make it easier to play on them. When you click on a clue square to potentially clear around it, the existing flags adjacent to the square light up, to make it easier to count them and work out how many more mines you're still expecting. Particularly useful in the hat tiling, where it's easy to mistake exactly what is adjacent to what!

                  I expect different people will prefer different grids. Personally I think the triangular grid is particularly tricky and puzzly; the hexagonal honeycomb makes a gentle introduction; the Cairo, Floret and Kites tilings are a nice set in between those extremes; and of course the aperiodic tilings are there to keep you on your toes and ready for anything.

                  Many thanks to Anders Höglund for this excellent piece of work.

                  liseandreasen@mastodon.worldL This user is from outside of this forum
                  liseandreasen@mastodon.worldL This user is from outside of this forum
                  liseandreasen@mastodon.world
                  wrote sidst redigeret af
                  #30

                  @simontatham
                  Oh wow!
                  This will appear in the app too?

                  simontatham@hachyderm.ioS 1 Reply Last reply
                  0
                  • liseandreasen@mastodon.worldL liseandreasen@mastodon.world

                    @simontatham
                    Oh wow!
                    This will appear in the app too?

                    simontatham@hachyderm.ioS This user is from outside of this forum
                    simontatham@hachyderm.ioS This user is from outside of this forum
                    simontatham@hachyderm.io
                    wrote sidst redigeret af
                    #31

                    @LiseAndreasen that's up to the downstream maintainer of whichever phone app you have in mind. I don't maintain any of the phone ports personally.

                    liseandreasen@mastodon.worldL 1 Reply Last reply
                    0
                    • simontatham@hachyderm.ioS simontatham@hachyderm.io

                      @LiseAndreasen that's up to the downstream maintainer of whichever phone app you have in mind. I don't maintain any of the phone ports personally.

                      liseandreasen@mastodon.worldL This user is from outside of this forum
                      liseandreasen@mastodon.worldL This user is from outside of this forum
                      liseandreasen@mastodon.world
                      wrote sidst redigeret af
                      #32

                      @simontatham
                      Oh, okay. Yeah, there's an extra name, you're right.

                      1 Reply Last reply
                      0
                      • yojimbo@masto.hackers.townY yojimbo@masto.hackers.town

                        @simontatham I got confused by the hat adjacency test, because it turns out that points as well as edges count - so the new "Highlight adjacent" preference is essential 🙂 but isn't it highlighting unselected tiles, rather than flags?
                        I think that the rest of the name "... when clicking on a clue" is technically accurate but perhaps a touch distracting, and it might be nice if it highlighted even on an unselected tile, just to show the patterns better ...

                        lionsphil@plush.cityL This user is from outside of this forum
                        lionsphil@plush.cityL This user is from outside of this forum
                        lionsphil@plush.city
                        wrote sidst redigeret af
                        #33

                        @yojimbo @simontatham yeah, I noticed the 5 in the triangles screenshot and was confused until I considered that's true for the square grid counting diagonals too

                        simontatham@hachyderm.ioS 1 Reply Last reply
                        0
                        • lionsphil@plush.cityL lionsphil@plush.city

                          @yojimbo @simontatham yeah, I noticed the 5 in the triangles screenshot and was confused until I considered that's true for the square grid counting diagonals too

                          simontatham@hachyderm.ioS This user is from outside of this forum
                          simontatham@hachyderm.ioS This user is from outside of this forum
                          simontatham@hachyderm.io
                          wrote sidst redigeret af
                          #34

                          @LionsPhil @yojimbo the contributor of this patch mentioned that he did _try_ adding a mode in which only adjacency along tile edges counted, and vertex-only adjacency was ignored. But he judged that the gameplay became too boring, and didn't even bother sending me the code.

                          The Honeycomb grid has this property already, because there _are_ no pairs of tiles that only touch at a vertex – tiles share an edge or don't touch at all. And indeed I think that is the most boring of the new modes. So I believe him!

                          1 Reply Last reply
                          0
                          • ra@mathstodon.xyzR ra@mathstodon.xyz

                            @simontatham
                            Thanks! So much fun!

                            I got this very peculiar distribution..
                            Does it have something to do with it trying to generate a unique solution?

                            simontatham@hachyderm.ioS This user is from outside of this forum
                            simontatham@hachyderm.ioS This user is from outside of this forum
                            simontatham@hachyderm.io
                            wrote sidst redigeret af
                            #35

                            @ra yes, that's an occasional failure mode of the grid generator at high mine densities. It's _technically_ still a uniquely soluble grid with the right number of mines, but also, not exactly what you wanted! You'd have seen the same phenomenon before this patch if you'd turned up the mine density in an ordinary square grid.

                            I've never managed to figure out exactly how to change the generation strategy to avoid this happening, although I keep thinking it _ought_ to be possible.

                            1 Reply Last reply
                            0
                            • kgjenkins@mapstodon.spaceK kgjenkins@mapstodon.space

                              @simontatham How about US congressional districts? 😜

                              simontatham@hachyderm.ioS This user is from outside of this forum
                              simontatham@hachyderm.ioS This user is from outside of this forum
                              simontatham@hachyderm.io
                              wrote sidst redigeret af
                              #36

                              @kgjenkins worse still, how about the map of Liechtenstein, many of whose administrative divisions have exclaves separate from the main part, so that the adjacency graph isn't even planar!

                              1 Reply Last reply
                              0
                              • simontatham@hachyderm.ioS simontatham@hachyderm.io

                                @garthy those settings specify a "cyclic" mode, in which the top of the grid is considered to wrap round to the bottom. So that 2 clue is not just adjacent to the single closed cell shown in your picture, but also to some cells at the bottom of the grid.

                                If you click on the 2 cell as if you were going to clear around it, it will show all the cell's closed neighbours temporarily.

                                jernej__s@infosec.exchangeJ This user is from outside of this forum
                                jernej__s@infosec.exchangeJ This user is from outside of this forum
                                jernej__s@infosec.exchange
                                wrote sidst redigeret af
                                #37

                                @simontatham @garthy Would it make sense to draw half tiles mirroring the opposite tile in cyclic mode, to make it more obvious?

                                simontatham@hachyderm.ioS 1 Reply Last reply
                                0
                                • simontatham@hachyderm.ioS simontatham@hachyderm.io

                                  A couple of weeks ago I showed a preview of a new mode for Mines, in my puzzle collection. I'm pleased to say that the new Mines is now completed and live! You can now play Minesweeper on a wide range of tilings in your browser
                                  https://www.chiark.greenend.org.uk/~sgtatham/puzzles/js/mines.html
                                  or download a desktop version from the parent page which supports the same set of grids.

                                  As well as the support for lots of grid types, there's also a new user preference (off by default) to make it easier to play on them. When you click on a clue square to potentially clear around it, the existing flags adjacent to the square light up, to make it easier to count them and work out how many more mines you're still expecting. Particularly useful in the hat tiling, where it's easy to mistake exactly what is adjacent to what!

                                  I expect different people will prefer different grids. Personally I think the triangular grid is particularly tricky and puzzly; the hexagonal honeycomb makes a gentle introduction; the Cairo, Floret and Kites tilings are a nice set in between those extremes; and of course the aperiodic tilings are there to keep you on your toes and ready for anything.

                                  Many thanks to Anders Höglund for this excellent piece of work.

                                  hugobdesigner@mastodon.artH This user is from outside of this forum
                                  hugobdesigner@mastodon.artH This user is from outside of this forum
                                  hugobdesigner@mastodon.art
                                  wrote sidst redigeret af
                                  #38

                                  @simontatham Saw this on my timeline, thought "this is cool, imagine this on Simon Tatham's app", then saw who posted 😂

                                  1 Reply Last reply
                                  0
                                  • jernej__s@infosec.exchangeJ jernej__s@infosec.exchange

                                    @simontatham @garthy Would it make sense to draw half tiles mirroring the opposite tile in cyclic mode, to make it more obvious?

                                    simontatham@hachyderm.ioS This user is from outside of this forum
                                    simontatham@hachyderm.ioS This user is from outside of this forum
                                    simontatham@hachyderm.io
                                    wrote sidst redigeret af
                                    #39

                                    @jernej__s @garthy that's an interesting UI thought. It might be more difficult in the other two cyclic modes, though, because the triangular cyclic grid has straight edges at top and bottom, and the square cyclic grid has straight edges everywhere!

                                    But I agree it would be nice to have _some_ visual indication that you're playing a cyclic grid, if only for people who have forgotten which option they selected from the menu. (Alas, real work sometimes temporarily distracts people from the important business of playing puzzle games.)

                                    jernej__s@infosec.exchangeJ 1 Reply Last reply
                                    0
                                    • simontatham@hachyderm.ioS simontatham@hachyderm.io

                                      @jernej__s @garthy that's an interesting UI thought. It might be more difficult in the other two cyclic modes, though, because the triangular cyclic grid has straight edges at top and bottom, and the square cyclic grid has straight edges everywhere!

                                      But I agree it would be nice to have _some_ visual indication that you're playing a cyclic grid, if only for people who have forgotten which option they selected from the menu. (Alas, real work sometimes temporarily distracts people from the important business of playing puzzle games.)

                                      jernej__s@infosec.exchangeJ This user is from outside of this forum
                                      jernej__s@infosec.exchangeJ This user is from outside of this forum
                                      jernej__s@infosec.exchange
                                      wrote sidst redigeret af
                                      #40

                                      @simontatham @garthy I chose honeycomb because it's IMHO the hardest to show in this way – I'd say square is much simpler:

                                      jernej__s@infosec.exchangeJ 1 Reply Last reply
                                      0
                                      • jernej__s@infosec.exchangeJ jernej__s@infosec.exchange

                                        @simontatham @garthy I chose honeycomb because it's IMHO the hardest to show in this way – I'd say square is much simpler:

                                        jernej__s@infosec.exchangeJ This user is from outside of this forum
                                        jernej__s@infosec.exchangeJ This user is from outside of this forum
                                        jernej__s@infosec.exchange
                                        wrote sidst redigeret af
                                        #41

                                        @simontatham @garthy Oh, and speaking of UI, might be a good idea to pop up a "Generating" message when setting up larger grids, otherwise the browser looks like it froze for a few seconds.

                                        1 Reply Last reply
                                        0
                                        • simontatham@hachyderm.ioS This user is from outside of this forum
                                          simontatham@hachyderm.ioS This user is from outside of this forum
                                          simontatham@hachyderm.io
                                          wrote sidst redigeret af
                                          #42

                                          @jay @yojimbo there's a new preference option for that, mentioned in the initial post.

                                          1 Reply Last reply
                                          0
                                          Svar
                                          • Svar som emne
                                          Login for at svare
                                          • Ældste til nyeste
                                          • Nyeste til ældste
                                          • Most Votes


                                          • Log ind

                                          • Har du ikke en konto? Tilmeld

                                          • Login or register to search.
                                          Powered by NodeBB Contributors
                                          Graciously hosted by data.coop
                                          • First post
                                            Last post
                                          0
                                          • Hjem
                                          • Seneste
                                          • Etiketter
                                          • Populære
                                          • Verden
                                          • Bruger
                                          • Grupper