Commit ce01644c authored by Chris's avatar Chris
Browse files

fixed bug with small straight not awarding points in valid small straight scenarios

parent f0d4f59f
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -321,11 +321,11 @@ unsigned int n_of_a_kind(struct die_st *dice, unsigned int num_dice, unsigned in

unsigned int n_in_a_row(struct die_st *dice, unsigned int num_dice, unsigned int n) {
    // testing only: large straight (note: this scores 0 despite being valid!) BUT this does register as a small straight.
    dice[0].value = 6;
    dice[1].value = 2;
    dice[2].value = 5;
    dice[3].value = 4;
    dice[4].value = 3;
//    dice[0].value = 6;
//    dice[1].value = 2;
//    dice[2].value = 5;
//    dice[3].value = 4;
//    dice[4].value = 3;

// testing only: small straight
//    dice[0].value = 2;