Light Mode
Dark Mode
Curious: Why a set?

I'm having trouble on this problem because the enemy rook pieces are represented as a set. Since a set is an unordered collection when I try to match my rook against the enemy rooks to see if they share a rank or file the order keeps changing. I have changed the set to a list and things are going smoother. Am I missing something here?

Thanks

Created: Nov. 13, 2014, 10:23 p.m.
Updated: Nov. 14, 2014, 11:57 a.m.
0
5
User avatar
MattMoyer