simon-git: puzzles (master): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Sun Apr 12 14:42:56 BST 2020


TL;DR:
  2a0e91b grid.c: fix size miscalculation in Floret tiling.

Repository:     https://git.tartarus.org/simon/puzzles.git
On the web:     https://git.tartarus.org/?p=simon/puzzles.git
Branch updated: master
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2020-04-12 14:42:56

commit 2a0e91bc76738e36e89abd4dcae5f13bc063d210
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=2a0e91bc76738e36e89abd4dcae5f13bc063d210;hp=97a0dc0fee0b9e7d1cd488309e03a19e942d1a57
Author: Simon Tatham <anakin at pobox.com>
Date:   Sun Apr 12 14:37:47 2020 +0100

    grid.c: fix size miscalculation in Floret tiling.
    
    A Floret grid of height h usually alternates columns of h hexagonal
    florets with columns of h-1. An exception is when h=1, in which case
    alternating columns of 1 and 0 florets would leave the grid
    disconnected. So in that situation all columns have 1 floret in them,
    and the starting y-coordinate oscillates to make the grid tile
    sensibly.
    
    However, that special case wasn't taken account of when calculating
    the grid height. As a result the anomalous extra florets in the
    height-1 tiling fell off the bottom of the puzzle window.

 grid.c | 2 ++
 1 file changed, 2 insertions(+)



More information about the tartarus-commits mailing list