<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>145953</bug_id>
          
          <creation_ts>2007-05-25 15:53:36 +0000</creation_ts>
          <short_desc>&quot;Allow unsolvable games&quot; check box or engine is broken</short_desc>
          <delta_ts>2010-10-03 16:50:38 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kshisen</product>
          <component>general</component>
          <version>1.5.1</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Rick Archibald">rick</reporter>
          <assigned_to name="Mauricio Piacentini">piacentini</assigned_to>
          <cc>plantasbaja</cc>
    
    <cc>purslow</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>528061</commentid>
    <comment_count>0</comment_count>
    <who name="Rick Archibald">rick</who>
    <bug_when>2007-05-25 15:53:36 +0000</bug_when>
    <thetext>Version:           1.5.1 (using KDE KDE 3.5.5)
Installed from:    Ubuntu Packages
OS:                Linux

When the &quot;Allow unsolvable games&quot; box (in the &quot;Configure - Shisen-Sho&quot; dialog) is not checked, which should disallow unsolvable games, unsolvable games do occur -- I have a screen shot of at least one.   It has a pattern of  mutual blocking like this:  
........
...XO...
...OX...
........
where &quot;X&quot; &amp; &quot;O&quot; are pairs (not members of n-tuples) and had no other matches at the beginning of the game (Tile Size: 14x6 ==&gt; 84 tile game, pairs &amp; quadruples only).  
  
On the other hand, after I checked the box I have yet to encounter an unsolvable game.  
  
So, either the engine that determines solveability is broken; or, more likely, the labelling on the box is logically reversed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>528077</commentid>
    <comment_count>1</comment_count>
    <who name="Rick Archibald">rick</who>
    <bug_when>2007-05-25 16:13:43 +0000</bug_when>
    <thetext>This is similar to, possibly related to; but not the same as:   
Bug 14175: unsolvable games are solvable  [CLOSED]  
  
BTW, the fact that the Handbook confirms the mis-labelling:   
&quot;If checked, only solvable games will be created when a new game is started. Note: You may still choose the wrong way and have to try again if you didn&apos;t solve the game, but if it&apos;s checked, the game will be solvable.&quot;
is no excuse for it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>570342</commentid>
    <comment_count>2</comment_count>
    <who name="Dmitry Suzdalev">dimsuz</who>
    <bug_when>2008-01-12 18:08:04 +0000</bug_when>
    <thetext>Reassigning to the current maintainer</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>570563</commentid>
    <comment_count>3</comment_count>
    <who name="Mauricio Piacentini">piacentini</who>
    <bug_when>2008-01-13 00:45:46 +0000</bug_when>
    <thetext>Appears to still be present in 4.0, under investigation</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>875994</commentid>
    <comment_count>4</comment_count>
    <who name="Philip Webb">purslow</who>
    <bug_when>2009-12-08 10:16:41 +0000</bug_when>
    <thetext>I&apos;ve been playing Kshisen 4.3.1 a lot recently &amp; my observation is that there are  2  things wrong: (1) &apos;allow unsolvable games&apos; has its values reversed, ie if you say &apos;yes&apos; there are no clearly unsolvable games, but if you say &apos;no&apos; you can run into games which reach a stalemate a few simple moves after the start:
this may be a simple error by the programmer, which could be solved by inspecting the code &amp; seeing which values actually do what; (2) the  3  settings for &apos;easy/medium/difficult&apos; have no noticeable effect: was this overlooked or left for later by the programmer ?  BTW I don&apos;t use gravity &amp; play 18 x 8 .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1026582</commentid>
    <comment_count>5</comment_count>
    <who name="Frederik Schwarzer">schwarzer</who>
    <bug_when>2010-10-01 22:02:36 +0000</bug_when>
    <thetext>*** Bug 252914 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1026591</commentid>
    <comment_count>6</comment_count>
    <who name="Frederik Schwarzer">schwarzer</who>
    <bug_when>2010-10-01 22:38:29 +0000</bug_when>
    <thetext>SVN commit 1181702 by schwarzer:

fix logical error

Checking this option ensures that the created games are solvable.
The option label was wrong. I could have kept the lebel and
adjusted the code accordingly but I decided to keept the code and
switch the meaning of the label, since it makes more sense
this way.

Thanks to all the reporters for analysing this. :)

BUG: 145953


 M  +2 -2      settings.ui  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1181702</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1026617</commentid>
    <comment_count>7</comment_count>
    <who name="">plantasbaja</who>
    <bug_when>2010-10-01 23:43:49 +0000</bug_when>
    <thetext>i&apos;m 2 for 2 and it seems ok now, thanks.

--- On Fri, 10/1/10, Frederik Schwarzer &lt;schwarzerf@gmail.com&gt; wrote:

From: Frederik Schwarzer &lt;schwarzerf@gmail.com&gt;
Subject: [Bug 145953] &quot;Allow unsolvable games&quot; check box or engine is broken
To: plantasbaja@yahoo.com
Date: Friday, October 1, 2010, 1:38 PM

https://bugs.kde.org/show_bug.cgi?id=145953


Frederik Schwarzer &lt;schwarzerf@gmail.com&gt; changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED




--- Comment #6 from Frederik Schwarzer &lt;schwarzerf gmail com&gt;  2010-10-01 22:38:29 ---
SVN commit 1181702 by schwarzer:

fix logical error

Checking this option ensures that the created games are solvable.
The option label was wrong. I could have kept the lebel and
adjusted the code accordingly but I decided to keept the code and
switch the meaning of the label, since it makes more sense
this way.

Thanks to all the reporters for analysing this. :)

BUG: 145953


 M  +2 -2      settings.ui  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1181702</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1027139</commentid>
    <comment_count>8</comment_count>
    <who name="Frederik Schwarzer">schwarzer</who>
    <bug_when>2010-10-03 13:48:50 +0000</bug_when>
    <thetext>SVN commit 1182109 by schwarzer:

fix logical error

Checking this option ensures that the created games are solvable.
The option label was wrong. I could have kept the label and
adjusted the code accordingly but I decided to keep the code and
switch the meaning of the label, since it makes more sense
this way.

backport of r1181702, r1181704, r1181709, r1181811 and r1181819

CCBUG: 145953

 M  +0 -3      app.cpp  
 M  +2 -2      board.cpp  
 M  +4 -4      board.h  
 M  +1 -1      kshisen.kcfg  
 M  +2 -2      settings.ui  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1182109</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1027190</commentid>
    <comment_count>9</comment_count>
    <who name="">plantasbaja</who>
    <bug_when>2010-10-03 16:50:38 +0000</bug_when>
    <thetext>thank you frederik

--- On Sun, 10/3/10, Frederik Schwarzer &lt;schwarzerf@gmail.com&gt; wrote:

From: Frederik Schwarzer &lt;schwarzerf@gmail.com&gt;
Subject: [Bug 145953] &quot;Allow unsolvable games&quot; check box or engine is broken
To: plantasbaja@yahoo.com
Date: Sunday, October 3, 2010, 4:49 AM

https://bugs.kde.org/show_bug.cgi?id=145953





--- Comment #8 from Frederik Schwarzer &lt;schwarzerf gmail com&gt;  2010-10-03 13:48:50 ---
SVN commit 1182109 by schwarzer:

fix logical error

Checking this option ensures that the created games are solvable.
The option label was wrong. I could have kept the label and
adjusted the code accordingly but I decided to keep the code and
switch the meaning of the label, since it makes more sense
this way.

backport of r1181702, r1181704, r1181709, r1181811 and r1181819

CCBUG: 145953

 M  +0 -3      app.cpp  
 M  +2 -2      board.cpp  
 M  +4 -4      board.h  
 M  +1 -1      kshisen.kcfg  
 M  +2 -2      settings.ui  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1182109</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>