--===============0672400372== Content-Type: multipart/alternative; boundary="===============8070958620961721250==" --===============8070958620961721250== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable > On 2010-10-23 15:40:47, Wolfgang Rohdewald wrote: > > For testing you can simply make sure that any two tiles match. Then any= game is alway winnable. > > Here comes the patch (untested): > > = > > --- x.cpp 2010-10-23 17:33:00.586617000 +0200 > > +++ GameData.cpp 2010-10-23 17:33:16.656617001 +0200 > > @@ -678,13 +678,7 @@ > > // don't compare 'equal' positions > > if( memcmp( &Pos1, &Pos2, sizeof(POSITION) ) ) > > { > > - UCHAR FA =3D Pos1.f; > > - UCHAR FB =3D Pos2.f; > > - > > - if( (FA =3D=3D FB) > > - || ( isFlower( FA ) && isFlower( FB ) ) > > - || ( isSeason( FA ) && isSeason( FB ) ) ) > > - return( true ); > > + return( true ); > > } > > return( false ); > > } > > The patch looks correct. It would be nice however if you could win a game t= o verify it :) I am sending an easy.layout to the kdegames list, so you cou= ld win quickly and test it. Then, ship it. - Mauricio ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://svn.reviewboard.kde.org/r/5682/#review8322 ----------------------------------------------------------- On 2010-10-23 12:50:22, Antonis Tsiapaliokas wrote: > = > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > http://svn.reviewboard.kde.org/r/5682/ > ----------------------------------------------------------- > = > (Updated 2010-10-23 12:50:22) > = > = > Review request for KDE Games. > = > = > Summary > ------- > = > Hello > = > This is my first effort to help the kdegames,so i am sorry if i have done= something wrong...This bug regards the kmahjongg game.This patch is fixing= the bug 215352.All the information that you will need, are located into th= e bug report... With a few words, after someone wins, the undo button is st= ill enable and full functional... > = > = > This addresses bug 215352. > https://bugs.kde.org/show_bug.cgi?id=3D215352 > = > = > Diffs > ----- > = > trunk/KDE/kdegames/kmahjongg/kmahjongg.cpp 1188798 = > = > Diff: http://svn.reviewboard.kde.org/r/5682/diff > = > = > Testing > ------- > = > The kmahjongg game compiles and runs fine.But there is a problem,which it= will sound to you very silly... I have create the patch but i cannot win t= he game so i cannot test my patch... But i have found another way to test m= y patch, and there works fine... If you look at the kmahjongg.cpp (it is lo= cated into the kdegames/kmahjongg) at the lines 174("undoAction =3D KStanda= rdGameAction::undo(this, SLOT(undo()), actionCollection());") and 119-120 (= connect( bw, SIGNAL( gameOver(unsigned short , unsigned short)), this,SLOT(= gameOver(unsigned short , unsigned short)));) those two functions are conn= ected with the bw object.So if i add the code from my patch into the KMahjo= ngg::undo() method and after i make 10 moves into the game, i will be able = to undo only the last one because when i hit the undo button then, the code= from my patch is called and the undo button is becoming dissable (from ena= ble). So instead of adding the code into the KMahjongg::undo(), if i add it= , into the KMahjongg::gameOver() then it should work fine... I know that th= is is very wrong, as regards the testing for my patch but i could not find = something better... > = > = > Thanks, > = > Antonis > = > --===============8070958620961721250== Content-Type: text/html; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable
This is an automatically generated e-mail. To reply, visit: http://svn.reviewb= oard.kde.org/r/5682/ |
On October 23rd, 2010, 3:40 p.m., Wolfgang = Rohdewald wrote:
For testi= ng you can simply make sure that any two tiles match. Then any game is alwa= y winnable. Here comes the patch (untested): --- x.cpp 2010-10-23 17:33:00.586617000 +0200 +++ GameData.cpp 2010-10-23 17:33:16.656617001 +0200 @@ -678,13 +678,7 @@ // don't compare 'equal' positions if( memcmp( &Pos1, &Pos2, sizeof(POSITION) ) ) { - UCHAR FA =3D Pos1.f; - UCHAR FB =3D Pos2.f; - - if( (FA =3D=3D FB) - || ( isFlower( FA ) && isFlower( FB ) ) - || ( isSeason( FA ) && isSeason( FB ) ) ) - return( true ); + return( true ); } return( false ); }
The patch l= ooks correct. It would be nice however if you could win a game to verify it= :) I am sending an easy.layout to the kdegames list, so you could win quic= kly and test it. Then, ship it.
- Mauricio
On October 23rd, 2010, 12:50 p.m., Antonis Tsiapaliokas wrote:
Review request for KDE Games.
By Antonis Tsiapaliokas.
Updated 2010-10-23 12:50:22 Descripti= on
Testing <= /h1>
Bugs:
215352
Diffs=
|