I want to "shuffle" in some way a Tuple<bool,int[]>[]
but i dont need exactly shuffling i want to switch the place of the first one with the second one than switch the place of the first one with the third one i.e the first one should switch place with all the other tuples than the second one should do that. I will try to explain it with some simple number like in the lottery :
We have 1,2,3 let's assume that those are my 3 tuples now :
- First we switch 1 with 2 and we get 2,1,3;
- Second we switch 1 with 3 and we get 2,3,1;
- Again we switch 1 with 2 and we get 1,3,2;
- Again we switch 1 with 3 and we get 3,1,2;
- Lastly we switch 1 with 2 and we get 3,2,1;
That's what i want to achieve with my tuple :
Tuple<bool, int[]>[] hodove =
{
new Tuple<bool, int[]>(Nadqsno(red, 1) && Napred(kolona, 2), new[]
{
count++,
novMinatRed = red + 1,
novaMinataKolona = kolona + 2
}),
new Tuple<bool, int[]>(Nadqsno(red, 2) && Napred(kolona, 1), new[]
{
count++,
novMinatRed = red + 2,
novaMinataKolona = kolona + 1
}),
new Tuple<bool, int[]>(Nalqvo(red, 1) && Napred(kolona, 2), new[]
{
count++,
novMinatRed = red - 1,
novaMinataKolona = kolona + 2
}),
new Tuple<bool, int[]>(Nalqvo(red, 2) && Napred(kolona, 1), new[]
{
count++,
novMinatRed = red - 2,
novaMinataKolona = kolona + 1
}),
new Tuple<bool, int[]>(Nadqsno(red, 2) && Nazad(kolona, 1), new[]
{
count++,
novMinatRed = red + 2,
novaMinataKolona = kolona - 1
}),
new Tuple<bool, int[]>(Nalqvo(red, 2) && Nazad(kolona, 1), new[]
{
count++,
novMinatRed = red - 2,
novaMinataKolona = kolona - 1
}),
new Tuple<bool, int[]>(Nadqsno(red, 1) && Nazad(kolona, 2), new[]
{
count++,
novMinatRed = red + 1,
novaMinataKolona = kolona - 2
}),
new Tuple<bool, int[]>(Nalqvo(red, 1) && Nazad(kolona, 2), new[]
{
count++,
novMinatRed = red - 1,
novaMinataKolona = kolona - 2
}),
};