Seems like the .patch ending is not allowed, trying .txt...
2010/12/13 Sven Rebhan <odinsho...@googlemail.com>:
> 2010/12/9 Sebastian Dransfeld <s...@tango.flipp.net>:
>> Bug in main.c: On new game you only clear 7 rows: main.c:70
>
> Thanks for reporting! "Mastermind-also-clear-row-8.patch" fixes this problem.
> Furthermore, the second patch fixes a problem with too many white tokens.
>
> Have fun and further reviews are welcome!
>
> Sven
>
Also clear the top-most row, as we have the indices 0..7.
--- Mastermind-old/src/bin/main.c 2010-12-07 09:02:50.000000000 +0100
+++ Mastermind/src/bin/main.c 2010-12-09 14:22:43.000000000 +0100
@@ -67,7 +67,7 @@
unsigned int i;
// Reset the board
- for(row = 0; row < 7; row++)
+ for(row = 0; row < 8; row++)
{
for(i = 0; i < 4; i++)
{
Too many white tokens are awarded when the master row contains
muliple tokens of the same color and the current row has one
of those. This patch fixes the problem.
--- Mastermind-old/src/bin/Mastermind.c 2010-12-07 09:00:30.000000000 +0100
+++ Mastermind/src/bin/Mastermind.c 2010-12-08 08:43:04.000000000 +0100
@@ -186,6 +186,7 @@
used_master[j] = 1;
used_row[i] = 1;
game->white[game->trial]++;
+ break;
}
}
}
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel