Skip to content

fix : add column numbering fix for wide puzzles in Spot-the-Difference #1872

Description

@tmdeveloper007

Summary of What Needs to be Done

Fix the column number display in games/Spot-the-Difference/Spot-the-Difference.py at line 55. The current expression (index % 10) or 0 produces 0 for column 10, column 20, etc., instead of showing 10, 20, etc. This makes puzzles wider than 9 characters display incorrect column numbers (e.g., "1 2 3 4 5 6 7 8 9 0 1 2" instead of "1 2 3 4 5 6 7 8 9 10 11 12").

Changes that Need to be Made

Replace the column numbering expression in the print_puzzle function with a correct formula that handles all column positions. The fix should produce sequential numbers starting from 1 that correctly display 10, 20, etc. without wrapping.

Impact that it would Provide

Players can correctly identify columns for puzzles with more than 9 characters, preventing confusion and incorrect guesses.

Note: Please assign this issue to the tmdeveloper007 account.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions