lmchoi / connect-four-clone-android

0 stars 1 forks source link

getNumOfTokensInColumn returns incorrect value for player RED #7

Closed lmchoi closed 8 years ago

lmchoi commented 8 years ago

Given: EMPTY = 0 YELLOW = 1 RED = 2

-> sum() on the column will not given the number of tokens in the column if there is a red token Since it is an array, count() won't be much use.

lmchoi commented 8 years ago

Would be nice to fix it with lambda stuff.. but java 8 is currently not compatible with Android SDK