1st game always has the same solution. The following patch fixes the problem (attributed to Debian, 06_srand.diff). --- einstein-2.0.orig/puzgen.cpp +++ einstein-2.0/puzgen.cpp @@ -313,6 +313,8 @@ void genPuzzle(SolvedPuzzle &puzzle, Rules &rules) { + srand(time(NULL)); + for (int i = 0; i < PUZZLE_SIZE; i++) { for (int j = 0; j < PUZZLE_SIZE; j++) puzzle[i][j] = j + 1; Also since the ebuild does not call epatch_user, it is a little trickier to get Portage to apply a user patch. Please add this patch to the others for this program. Thank you.
Thank you for the patch. Please describe why you think this patch is needed and send this patch also upstream. Do you get the same puzzles after start? You can paste the link to your upstream report here, if you like.
In my attempt to report the bug upstream, I discovered that Gentoo has an invalid home page for the project. Einstein Puzzle Game appears to have a new maintainer and home page. Alex Karabanov (lksj) https://github.com/lksj/einstein-puzzle The latest release 2.1.1 (now over a year old) Appears to have the patch I requested along with several others not in einstein-2.0. https://github.com/lksj/einstein-puzzle/releases If you upgrade to the latest version, you can mark this bug as fixed.
[master 8782d52a12f4] games-puzzle/einstein: Version bump 3 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 games-puzzle/einstein/einstein-2.1.1.ebuild