How do you determine if a series of ordered numbers is in sequential order?

BalvamarBalvamar Member, PRO Posts: 117

I have a table that I have bubble sorted, and now I want to determine if the are in sequential order. The project is a poker game, and I want to determine if the player has made a straight. Any help much appreciated. Cheers

Comments

  • ArmellineArmelline Member, PRO Posts: 5,415
    edited June 2015

    What I did in my poker template was pretty simple. If number1=number2+1 and number2=number3+1 and number 3=number4+1 and number4=number5+1.

    This was before all the string functions, though.

Sign In or Register to comment.