[Solved] c# best way to match yahtzee
[ad_1] You’ll need a little loop: public bool Yahtzee() { // check if all dobbelstenen[int] are the same for(int i = 1; i < 5; i++) // start with second dobbelstenen { if(dobbelstenen[i] != dobbelstenen[0]) return false; } return true; } It simply compares second, third, … against the first. 1 [ad_2] solved c# best … Read more