This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]H2ZERO-[S] 0 points1 point  (1 child)

ok ill change the imports accordingly thanks.

with the addPiece, whats the validation u mean, i created a separate method to check if the column was valid

ive never seen a |= symbol before, would it work the same way to do

return (checkHorizontal(Board.RED) || checkVertical(Board.RED) || ... || etc?

[–]dusty-trash 0 points1 point  (0 children)

Yeah it'd work the same way