X-Git-Url: https://git.piment-noir.org/?p=Project_algorithmic_C.git;a=blobdiff_plain;f=lib%2Fui.c;h=4242ac079946b19404748af24f7540a24cd6c7e3;hp=80a188b79c0a56a00b1bcd79bba580b9fe8cd6e5;hb=b5e9ccd0c40a658ea3fc8245b3ada821b248daed;hpb=21b9239c8a14c5f9b5553d1f6a583307971b26e6 diff --git a/lib/ui.c b/lib/ui.c index 80a188b..4242ac0 100644 --- a/lib/ui.c +++ b/lib/ui.c @@ -3,7 +3,7 @@ * * Filename: ui.c * - * Description: Routines to handle the user interface + * Description: Routines to handle the user interface * * Version: 1.0 * Created: 24/04/2017 16:41:15 @@ -97,7 +97,7 @@ static void print_x(int y, int x, unsigned int type) { /* y = 1: y -> 0 x = 1: 1 -> 1 * y > 1: y -> y + 3 x > 1: x -> x + 5 */ static int remap_y(int y) { - + if (y == 1) { return 2; } else if (y > 1 && y <= board_size) { @@ -130,7 +130,7 @@ void print_pawns(int base_y, int base_x, unsigned int pawn_array[board_size][boa } int map_col_letter_to_index(char c) { - + if (c == 'a' || c == 'A') { return 1; } else if (c == 'b' || c == 'B') { @@ -154,7 +154,7 @@ int map_col_letter_to_index(char c) { /* return capital letters */ char map_col_index_to_letter(int index) { - + if (index == 1) { return 'A'; } else if (index == 2) {