Skip to content

Commit

Permalink
compare all five bits of alphachar in bggame_match
Browse files Browse the repository at this point in the history
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 edf16e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bggame.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ int bggame_next_column(game_t game, int c) {


// determine if a, b, and c are the same piece // determine if a, b, and c are the same piece
int bggame_match(char a, char b, char c) { 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) // mark all sets on the board (as capital letters)
Expand Down

0 comments on commit edf16e4

Please sign in to comment.