Posts

Showing posts from June, 2026

Robbie Hatley’s Solutions, in Perl, for The Weekly Challenge #376 (“Chessboard Squares” and “Doubled Words”)

Image
For those not familiar with "The Weekly Challenge", it is a weekly programming puzzle with two parts, with a new pair of tasks each Monday. You can find it here: The Weekly Challenge The Weekly Challenge for the week of 2026-06-01 through 2026-06-07 is #376. The tasks for challenge #376 are as follows: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Task 376-1: Chessboard Squares Submitted by: Mohammad Sajid Anwar Write a script to determine if two chess-board squares (specified by standard chess notation) have the same color. To solve this problem, I query whether the sum of the first coordinate pair and the sum of the second coordinate pair have the same modulo 2. Robbie Hatley's Perl Solution to The Weekly Challenge 376-1 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Task 376-2: Doubled Words Submitted by: Matt Martini You are given a string (which may contain embedded newlines) which is taken from a pag...