1
0
Fork 0

Update 'enigma_types.h'

This commit is contained in:
NaiJi ✨ 2022-03-23 21:16:58 +00:00
parent 7f4aa0f9a9
commit 83ae194e72
1 changed files with 119 additions and 115 deletions

View File

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