Bug 321842 - false error indicated in incomplete row/column
Summary: false error indicated in incomplete row/column
Status: RESOLVED FIXED
Alias: None
Product: picmi
Classification: Applications
Component: general (show other bugs)
Version: 2.0.0
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Jakob Gruber
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-01 22:22 UTC by dmatt
Modified: 2013-08-13 21:42 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 4.12


Attachments
example of column evaluated as all wrong (735.23 KB, image/png)
2013-07-02 21:38 UTC, dmatt
Details
bug manifestation example (174.05 KB, application/pdf)
2013-07-02 22:15 UTC, dmatt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dmatt 2013-07-01 22:22:46 UTC
logic checking individual streaks marks whole row/column as incorrectly filled in, even though only individual streak has was not completely checked

Reproducible: Always

Steps to Reproduce:
1.completely correctly fill in any row/column with at least streak longer than 2
2. uncheck any cell inside of long streak (split it into two segments)
3.
Actual Results:  
all numbers for given row/column turn bold indicating it was filled incorrectly

Expected Results:  
only streak/segment which has unchecked cell should be bold
Comment 1 Jakob Gruber 2013-07-02 07:57:59 UTC
In some cases, marking all numbers invalid if one cell is unmarked is intended to avoid leaking information or giving a false impression of actually having completed a line. To be honest, it's been a while since I wrote this logic and I don't remember exactly though.
It would be helpful if you could post or attach some specific examples.
Comment 2 dmatt 2013-07-02 21:38:44 UTC
Created attachment 80904 [details]
example of  column evaluated as all wrong
Comment 3 dmatt 2013-07-02 22:15:23 UTC
Created attachment 80905 [details]
bug manifestation example

Picture (1): 2 cells are not marked, indication correct
Picture (2): (one more cell was correctly marked), indication incorrect (all streaks show as wrong)
Picture (1): (remaining cell was correctly marked), indication again correct

If just one streak is incomplete and empty cell(s) are not on the edge of streak, , indication is wrong.

Not very common during gameplay, but pretty confusing when it happens
Comment 4 Jakob Gruber 2013-07-03 08:01:23 UTC
Right, thanks. I've been thinking about adding a couple of unit tests for the streak algorithm, so I'll probably start off with that and look at this particular problem afterwards.
As always, patches welcome!
Comment 5 Jakob Gruber 2013-08-13 21:42:42 UTC
Hi there,

the patch series culminating in commit 0c16031178 should fix this particular issue.
Please let me know if any further issues pop up.