chrisboyle / sgtpuzzles

Android port of Simon Tatham's Puzzles
https://chris.boyle.name/puzzles
Other
592 stars 167 forks source link

Filling: drag out existing numbers like Map #500

Open omgitsraven opened 3 years ago

omgitsraven commented 3 years ago

It just occurred to me that since the game Filling mostly consists of extending existing groups of numbers, a much more convenient control method would be if the user could start a drag from a filled cell on the board, then release that drag in an empty cell, to duplicate the filled number into the empty cell (exactly like the game 'Map' currently works). Obviously because some Filling puzzles require adding new numbers to the board, the keyboard numbers would need to remain available; this would just be a shortcut to allow for more efficient input in the majority of cases where it suffices.

JohnGlassmyer commented 2 years ago

one thing i like about Filling, in contrast to Rectangles or Loopy or Palisade, is that modification of state requires more positive action than just dragging across the board, which makes less likely to inadvertently screw up one's state by brushing dirt off the screen or inadvertently touching the screen. so i don't think a normal drag across the screen should place numbers. but a long-press-and-drag (as used in Rectangles to clear lines) might be a natural fit for this.

and then there's also the question of whether this would fit into the upstream version of the game https://www.chiark.greenend.org.uk/~sgtatham/puzzles/js/filling.html

JohnGlassmyer commented 2 years ago

in Filling i don't think it can be as simple as spreading numbers from filled to unfilled cells of any selection, for at least two reasons: a) you might select a region containing cells already filled with multiple different numbers b) i sometimes drag across a fixed/given cell in dragging to select empty cells on either side of it, to fill with a number different from the number in the given cell