I am writing a program for connect four I have all the code written and all works fine i was wondering however if anyone could offer any advice on a function to determine if a player has 4 or more in a row cause i just cant seem to think of a good way if all else fails i will write out every combonation ....which is a lot and i would rather not do that when i know there has to be a better way maybe like some kind of searching algorithm but im not sure any advice anyone?
Ryan61343 0 Newbie Poster
daviddoria 334 Posting Virtuoso Featured Poster
Ryan61343 0 Newbie Poster
iamthwee
Ryan61343 0 Newbie Poster
Ryan61343 0 Newbie Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
Ryan61343 0 Newbie Poster
Ryan61343 0 Newbie Poster
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.