Permalink
Browse files

compare all five bits of alphachar in bggame_match

not just four bits, which makes a=q, b=r, c=s, etc.
  • Loading branch information...
beerriot committed Mar 2, 2011
1 parent ffaa2df commit edf16e4af7d913677b1fdf8c2c180ba7b054ee73
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/bggame.c
View
@@ -116,7 +116,7 @@ int bggame_next_column(game_t game, int c) {
// determine if a, b, and c are the same piece
int bggame_match(char a, char b, char c) {
- return ((0x0F & b) == (0x0F & a)) && ((0x0F & b) == (0x0F & c));
+ return ((0x1F & b) == (0x1F & a)) && ((0x1F & b) == (0x1F & c));
}
// mark all sets on the board (as capital letters)

0 comments on commit edf16e4

Please sign in to comment.