Skip to content

Board appears same irrespective of the difficulty #8

@vector1505

Description

@vector1505

🐛 Bug Report: Board appears same irrespective of the difficulty

Description

No matter whether a player chooses Easy, Medium, or Hard mode, the Sudoku board looks the same and has the same number of empty cells. This makes the difficulty selection ineffective and misleading.

Problem

  • Easy, Medium, and Hard modes currently generate boards with no visible difference in difficulty.
  • The number of empty cells (or pre-filled cells) does not change based on the difficulty setting.
  • Players do not experience actual variation in challenge level when switching difficulties.

Expected Behavior

  • Each difficulty level should generate a board with a different number of empty cells or altered puzzle complexity:
    • Easy → More pre-filled cells, fewer empty ones.
    • Medium → Balanced number of pre-filled vs. empty cells.
    • Hard → Fewer pre-filled cells, more empty ones.

Steps to Reproduce

  1. Select Easy mode and start a game.
  2. Select Medium mode and start another game.
  3. Select Hard mode and start another game.
  4. Observe that the board layout and number of empty cells remain the same across all modes.

Possible Fix

  • Review the board generation logic to ensure difficulty is factored into puzzle creation.
  • Adjust the puzzle generator to use different parameters (e.g., number of givens/empty cells) for each difficulty level.
  • Confirm difficulty settings are properly passed into the board creation function.

Additional Context

  • This might be caused by the difficulty parameter not being passed down correctly from the mode selection to the board generator.
  • Double-check the board generation function and how it receives difficulty settings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions