*
* 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
/* 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) {
}
int map_col_letter_to_index(char c) {
-
+
if (c == 'a' || c == 'A') {
return 1;
} else if (c == 'b' || c == 'B') {
/* return capital letters */
char map_col_index_to_letter(int index) {
-
+
if (index == 1) {
return 'A';
} else if (index == 2) {