From 725ee0dcaab5fa41ceee17c35de7bc422d2fbb2d Mon Sep 17 00:00:00 2001 From: Joe R Date: Sat, 6 Jan 2024 21:55:47 -0500 Subject: [PATCH] Added hexagonal pegged layout. --- pysollib/gamedb.py | 2 +- pysollib/games/special/pegged.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pysollib/gamedb.py b/pysollib/gamedb.py index 8ad0a29a..fc165e5d 100644 --- a/pysollib/gamedb.py +++ b/pysollib/gamedb.py @@ -593,7 +593,7 @@ class GI: ('fc-2.20', tuple(range(855, 897))), ('fc-2.21', tuple(range(897, 900)) + tuple(range(11014, 11017)) + tuple(range(13160, 13163)) + (16682,)), - ('dev', tuple(range(906, 945)) + tuple(range(11017, 11020)) + + ('dev', tuple(range(906, 946)) + tuple(range(11017, 11020)) + tuple(range(5600, 5624)) + tuple(range(18000, 18005)) + tuple(range(22303, 22311)) + tuple(range(22353, 22361))), ) diff --git a/pysollib/games/special/pegged.py b/pysollib/games/special/pegged.py index 481e2098..39bc7065 100644 --- a/pysollib/games/special/pegged.py +++ b/pysollib/games/special/pegged.py @@ -290,6 +290,11 @@ class PeggedStar(PeggedTriangle1): ROWS = (1, 4, 3, 4, 1) +class PeggedHexagon(PeggedTriangle1): + EMPTY_STACK_ID = 30 + ROWS = (5, 6, 7, 8, 9, 8, 7, 6, 5) + + # ************************************************************************ # * register the games # ************************************************************************ @@ -317,4 +322,5 @@ r(210, PeggedTriangle1, "Pegged Triangle 1") r(211, PeggedTriangle2, "Pegged Triangle 2") r(839, PeggedDiamond, "Pegged Diamond") r(840, PeggedStar, "Pegged Star") +r(945, PeggedHexagon, "Pegged Hexagon") del r