Being a noob, such a simple question i answered as soon as i posted :| - delete thread please.

Recommended Answers

All 2 Replies

You could write a boolean method that loops through your array, since for every card you're checking the same condition. Then your if statement becomes just a call to that method.

You could write a boolean method that loops through your array, since for every card you're checking the same condition. Then your if statement becomes just a call to that method.

Thanks reading my first post, i solved it pretty quick, just had a moment of panic i think :|

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.