Hi I've written all kinds of programs for gambling like roulette blackjack and now I'm doing Poker
I'm doing 5 card draw and trying to determine if my hand is a straight before the draw
I'm a simple programmer and I've had no schooling. Right now I'm trying to determine a straight by finding the highest and lowest card and seeing if cards match
if the highest card is = the lowest card + 5 and there are no reapeating numbers in the hand shouldn't this accurately find a straight?
My code is very basic and long so I won't post it here I do everything brute force method to find the highest/lowest and matching cards
I think this is the simpliest way I've found but it may be too simple