]> git.cworth.org Git - kub/commit
Fix tile_group_is_set
authorKevin Worth <kworth@kworth-laptop.(none)>
Thu, 7 May 2009 19:15:43 +0000 (15:15 -0400)
committerKevin Worth <kworth@kworth-laptop.(none)>
Thu, 7 May 2009 19:15:43 +0000 (15:15 -0400)
commit128be2d8da52865131653f197c05dd5f6830958a
tree739e0b074f32f771f7da8c1ec2ddfeaace58a304
parent5e61d8a5fc190e3064a225fec01505b7acf4d6b4
Fix tile_group_is_set

Previous version was validating sets with repeat colors.
The error appeared to be an incomplete check through the array;
when num_tiles was 3, it was checking index 0 and 1. Thus, if
index 0 and 2 had the same color, it wasn't being caught.

New version now steps through entire array.
kub.c