Skip to content

Generating "zero" as value for a solved grid #1

@ma-altaiir

Description

@ma-altaiir

Hello;
Solver may sometimes generate a "zero" value in cell , here are some Logs :
E/GENERATED: 273598146598146273146273598725389461389461725461725389932857614857614932614932857
E/GENERATED: 217586439586439217439217586125768394768394125394125768872651943651943872943872651
E/GENERATED: 491753286753286491286491753947135862135862947862947135514379628379628514628514370
E/GENERATED: 574296831296831574831574296752469318469318752318752469945627183627183945183945627
E/GENERATED: 725941836941836725836725941279514368514368279368279514457192683192683457683457192
E/GENERATED: 836294175294175836175836294382649751649751382751382649968423517423517968517968423
E/GENERATED: 738152964152964738964738152371825649825649371649371825587213496213496587496587213
E/GENERATED: 239741865741865239865239741327914658914658327658327914492173586173586492586492170

After many tests, i noticed that the zero generated in some grids is always in the last cell {8,8} , i did not encountered yet any zero generated in other positions.

I think the issue come from the fact that solver uses values from 1 to 9 including the EMPTY value wich is zero (solver.java line 52)

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