repositories
/
Project_algorithmic_C.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
White space cleanup
[Project_algorithmic_C.git]
/
lib
/
ui.c
diff --git
a/lib/ui.c
b/lib/ui.c
index 80a188b79c0a56a00b1bcd79bba580b9fe8cd6e5..4242ac079946b19404748af24f7540a24cd6c7e3 100644
(file)
--- a/
lib/ui.c
+++ b/
lib/ui.c
@@
-3,7
+3,7
@@
*
* Filename: ui.c
*
*
* 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
*
* 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) {
/* 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) {
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) {
}
int map_col_letter_to_index(char c) {
-
+
if (c == 'a' || c == 'A') {
return 1;
} else if (c == 'b' || c == 'B') {
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) {
/* return capital letters */
char map_col_index_to_letter(int index) {
-
+
if (index == 1) {
return 'A';
} else if (index == 2) {
if (index == 1) {
return 'A';
} else if (index == 2) {