]> git.cworth.org Git - kub/commit
Implement card_group_is_run with one loop instead of two.
authorCarl Worth <cworth@cworth.org>
Mon, 29 Jan 2007 15:19:33 +0000 (07:19 -0800)
committerCarl Worth <cworth@cworth.org>
Mon, 29 Jan 2007 15:19:33 +0000 (07:19 -0800)
commitde58f6c53ee85cf0db3bbed62101901f651db108
tree24b63cac4d423da8c42b8ea3723e3d7b20c0d6e2
parent84b0ed8b8cbbfbee04853a590f89eb7d55008f74
Implement card_group_is_run with one loop instead of two.

It's simpler to just implement a single check for color in the same
loop that's examining the color of every card. We don't need to
check every pair of cards for matching color as we were in the old
loop.
kub.c