14#define ENIGMA_FLAG_DICTIONARY_MATCH 1
19#define ENIGMA_FLAG_FREQUENCY 2
24#define ENIGMA_FLAG_KNOWN_PLAINTEXT 4
int enigma_score_set_score(EnigmaScore *, float)
Set the score field in the given EnigmaScore.
Definition: score.c:126
int enigma_score_set_enigma(EnigmaScore *, Enigma *)
Set the enigma field in the given EnigmaScore.
Definition: score.c:110
int enigma_score_list_set_max_scores(EnigmaScoreList *, int)
Set the maximum number of scores in the given EnigmaScoreList.
Definition: score.c:251
int enigma_score_print(const EnigmaScoreList *)
Print the scores in an EnigmaScoreList.
Definition: score.c:22
int enigma_score_list_sort(EnigmaScoreList *)
Sort an array of EnigmaScore by score in descending order.
Definition: score.c:52
EnigmaScore * enigma_score_list_get_scores(EnigmaScoreList *)
Get the scores array from the given EnigmaScoreList.
Definition: score.c:157
int enigma_score_list_get_score_count(EnigmaScoreList *)
Get the score count from the given EnigmaScoreList.
Definition: score.c:188
int enigma_score_list_set_score_count(EnigmaScoreList *, int)
Set the score count in the given EnigmaScoreList.
Definition: score.c:235
int enigma_score_list_get_max_scores(EnigmaScoreList *)
Get the maximum number of scores from the given EnigmaScoreList.
Definition: score.c:202
int enigma_score_set_flags(EnigmaScore *, int)
Set the flags field in the given EnigmaScore.
Definition: score.c:142
Enigma * enigma_score_get_enigma(EnigmaScore *)
Get the enigma field in the given EnigmaScore.
Definition: score.c:67
EnigmaScore * enigma_score_list_get_score(EnigmaScoreList *, int)
Get the score at the given index from the given EnigmaScoreList.
Definition: score.c:173
float enigma_score_get_score(EnigmaScore *)
Get the score field in the given EnigmaScore.
Definition: score.c:81
int enigma_score_list_set_score(EnigmaScoreList *, int, EnigmaScore *)
Set the score at the given index in the given EnigmaScoreList.
Definition: score.c:219
int enigma_score_get_flags(EnigmaScore *)
Get the flags field in the given EnigmaScore.
Definition: score.c:95
A structure representing a list of scored Enigma configurations.
Definition: score.h:40
EnigmaScore * scores
An array of EnigmaScore structs.
Definition: score.h:41
int score_count
The number of scores in the array.
Definition: score.h:42
int max_scores
The maximum number of scores that can be stored in the array.
Definition: score.h:43
A structure representing a scored Enigma configuration.
Definition: score.h:30
Enigma enigma
The Enigma configuration.
Definition: score.h:31
float score
The score of the configuration.
Definition: score.h:32
int flags
Flags indicating special conditions the configuration met.
Definition: score.h:33
Represents the state and configuration of an Enigma machine.
Definition: enigma.h:34