Hi all, this is my first post here and I am new to programming, so please bear with me. Also let me know if I am posting this in the wrong section.
I'm making a Texas Holdem program, and in it I have a Texas Holdem class and a Hand class. Each Hand object has a boolean variable called win. In the Texas Holdem class I am comparing more than two hands with each other and it is spitting out a winner. My question is, is there any way that, if there is a tie, I can make each respective win variable equal to each other so that if i set one to false, the other Hand one is also set to false? I am checking with up to ten hands, so I need to be able to, if a Hand beats another hand at the game, the one it beats is set to false, which immediately sets all the equal ones to false.
Is there any way to do this in Java?
Thanks for your considerations, sorry if my explanation is bad, and apologies if I'm posting in the wrong section.