assuming i have everything else working, other than the logic to figure out if 3 in a row have been made or not

also assuming i am working with indexes for each of the boxes (0-8) and not using a 2d matrix

other than checking for every combo there is to win (i.e 0,1,2 or 0,4,8) is there a way to check to see if 3 in a row have been made?

i mean, i CAN check for every single combo, but i dont think thats good programming nor really efficiant