simon-git: puzzles (main): Ben Harris
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Thu Dec 8 13:59:20 GMT 2022
TL;DR:
1d91522 tracks: Allow a smaller or non-existent border at small tile sizes
Repository: https://git.tartarus.org/simon/puzzles.git
On the web: https://git.tartarus.org/?p=simon/puzzles.git
Branch updated: main
Committer: Ben Harris <bjh21 at bjh21.me.uk>
Date: 2022-12-08 13:59:20
commit 1d91522babe41fcf7cbfb06633ae6bc5606db367
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=1d91522babe41fcf7cbfb06633ae6bc5606db367;hp=0d36b471d831535e778016dd64ded00900ee6af2
Author: Ben Harris <bjh21 at bjh21.me.uk>
Date: Thu Dec 8 13:24:36 2022 +0000
tracks: Allow a smaller or non-existent border at small tile sizes
The basic tile size in Tracks is required to be a multiple of 6, which
means that for small tile sizes the steps are rather large. With the
standard border widths, this means that the default 8-by-8 puzzle can be
246 pixels wide (tilesize == 24) or 184 pixels wide (tilesize == 18).
This is particularly annoying if you happen to have a 240-pixel-wide
screen.
This commit allows the puzzle to reduce or remove the borders at small
tile sizes, on the grounds that a slightly narrower border is acceptable
if it avoids needing to use a smaller tile size. It encodes the border
width in (tilesize % 6), and is thus enabled when the default border
width is 5 or less. Above that size (which is a tilesize of 48), I
assume the steps in tile size aren't big enough to be a serious problem.
tracks.c | 22 +++++++++++++++++-----
1 file changed, 17 insertions(+), 5 deletions(-)
More information about the tartarus-commits
mailing list