Bug 150386 - Puzzle can be solved using less materials than given
Summary: Puzzle can be solved using less materials than given
Status: RESOLVED FIXED
Alias: None
Product: knetwalk
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified All
: NOR wishlist
Target Milestone: ---
Assignee: Fela Winkelmolen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-01 21:43 UTC by Yaakov M. Nemoy
Modified: 2008-04-01 16:53 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
First case the bug showed up (182.93 KB, image/png)
2007-10-01 21:44 UTC, Yaakov M. Nemoy
Details
second time this happened (217.52 KB, image/png)
2007-10-01 21:45 UTC, Yaakov M. Nemoy
Details
Also happens for simple puzzles (54.54 KB, image/jpeg)
2008-01-06 21:33 UTC, Stefan Majewsky
Details
broken level (53.44 KB, image/png)
2008-02-16 21:29 UTC, mw-u2
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yaakov M. Nemoy 2007-10-01 21:43:01 UTC
Version:           1.0 (using KDE 3.5.7, Debian Package 4:3.5.7.dfsg.1-7 (lenny/sid))
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.21-2-686

In two scenarios, I can solve the puzzle using less tubes than given, although the game won't register the puzzle as solved.  I have two snapshots of this.

(I don't see a field to attach them.)
Comment 1 Yaakov M. Nemoy 2007-10-01 21:44:38 UTC
Created attachment 21731 [details]
First case the bug showed up
Comment 2 Yaakov M. Nemoy 2007-10-01 21:45:34 UTC
Created attachment 21732 [details]
second time this happened
Comment 3 Fela Winkelmolen 2007-10-18 19:48:47 UTC
A game is won only if all Terminals _and_ all cables are connected to the server. But it would be better if such scenarios weren't generated.
Comment 4 Stefan Majewsky 2008-01-06 21:33:24 UTC
Created attachment 22875 [details]
Also happens for simple puzzles

I have also found such a puzzle on the easy level.
Comment 5 Steven R. 2008-02-04 02:17:13 UTC
Happened to me too on version 2 on the medium difficulty.   The game should be considered solved if all the computers are hooked up, not if all the pipes are in the correct orientation.
Comment 6 mw-u2 2008-02-16 21:29:37 UTC
Created attachment 23600 [details]
broken level
Comment 7 Fela Winkelmolen 2008-03-09 20:09:09 UTC
SVN commit 783843 by fela:

Do not generate games that allow you to connect all terminals to the server without using all cables. 
BUG:150386


 M  +45 -49    abstractgrid.cpp  
 M  +9 -8      abstractgrid.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=783843
Comment 8 Fela Winkelmolen 2008-03-10 21:41:35 UTC
oops... I was wrong, it was harder than I tought to identify all such games. Bug reopened
Comment 9 Fela Winkelmolen 2008-04-01 16:53:36 UTC
SVN commit 792546 by fela:

If all terminals are connected but not all cables, show a message box explaining to the user that to 
win the game all cables need to be connected too.
BUG:150386


 M  +8 -3      abstractgrid.cpp  
 M  +3 -1      abstractgrid.h  
 M  +0 -21     cell.cpp  
 M  +0 -3      cell.h  
 M  +19 -6     mainwindow.cpp  
 M  +2 -0      mainwindow.h  
 M  +2 -2      view.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=792546