1
0
Fork 0

Update 'enigma_types.h'

master
NaiJi ✨ 2 years ago
parent 7f4aa0f9a9
commit 83ae194e72

@ -49,13 +49,12 @@ size_t key_shifts[WHEELS_AMOUNT] =
struct Mutation struct Mutation
{ {
size_t from = 0; int from;
size_t to = 0; int to;
}; };
const Mutation mutations[WHEELS_AMOUNT + 1][ALPHABET_SIZE] = const Mutation mutations1[ALPHABET_SIZE] =
{ {
{
{0, 15 }, {0, 15 },
{1, 4 }, {1, 4 },
{2, 25 }, {2, 25 },
@ -82,8 +81,10 @@ const Mutation mutations[WHEELS_AMOUNT + 1][ALPHABET_SIZE] =
{23, 24 }, {23, 24 },
{24, 3 }, {24, 3 },
{25, 10 } {25, 10 }
}, };
{
const Mutation mutations2[ALPHABET_SIZE] =
{
{0, 25 }, {0, 25 },
{1, 14 }, {1, 14 },
{2, 20 }, {2, 20 },
@ -110,8 +111,10 @@ const Mutation mutations[WHEELS_AMOUNT + 1][ALPHABET_SIZE] =
{23, 17 }, {23, 17 },
{24, 0 }, {24, 0 },
{25, 19 } {25, 19 }
}, };
{
const Mutation mutations3[ALPHABET_SIZE] =
{
{0, 4 }, {0, 4 },
{1, 7 }, {1, 7 },
{2, 17 }, {2, 17 },
@ -138,8 +141,10 @@ const Mutation mutations[WHEELS_AMOUNT + 1][ALPHABET_SIZE] =
{23, 3 }, {23, 3 },
{24, 9 }, {24, 9 },
{25, 2 } {25, 2 }
}, };
{
const Mutation mutations4[ALPHABET_SIZE] =
{
{0, 21}, {0, 21},
{1, 10}, {1, 10},
{2, 22}, {2, 22},
@ -166,5 +171,4 @@ const Mutation mutations[WHEELS_AMOUNT + 1][ALPHABET_SIZE] =
{23, 24}, {23, 24},
{24, 23}, {24, 23},
{25, 9} {25, 9}
}
}; };
Loading…
Cancel
Save