X-Git-Url: https://git.piment-noir.org/?p=TD_C.git;a=blobdiff_plain;f=TP_13%2Fexo2%2Flib%2Fdisplay.c;fp=TP_13%2Fexo2%2Flib%2Fdisplay.c;h=34343a05e215d7f91bf72025bd96799cfd7b778f;hp=f1cd18096d1354de250c2e8145e86061851477e5;hb=fe6636a2e2488427b01931aa6a40d7105f9b3dd2;hpb=5c7b04b0e5af942452d7b3b74d95cc3fdc0636a0 diff --git a/TP_13/exo2/lib/display.c b/TP_13/exo2/lib/display.c index f1cd180..34343a0 100644 --- a/TP_13/exo2/lib/display.c +++ b/TP_13/exo2/lib/display.c @@ -3,7 +3,7 @@ * * Filename: display.c * - * Description: Routines to handle the display + * Description: Routines to handle the display * * Version: 1.0 * Created: 15/03/2017 20:06:11 @@ -36,16 +36,16 @@ void print_board(int y, int x) { mvprintw(y+7, x, " | |"); } -/* there's only nine valid (y, x) 2-uplets for this two shapes +/* there's only nine valid (y, x) 2-uplets for this two shapes * that are : - base_y, base_x +1 * - base_y, base_x + 6 - * - base_y, base_x + 11 - * - base_y + 3, base_x + 1 - * - base_y + 6, base_x + 1 - * - base_y + 3, base_x + 6 - * - base_y + 3, base_x + 11 - * - base_y + 6, base_x + 6 - * - base_y + 6, base_x + 11 + * - base_y, base_x + 11 + * - base_y + 3, base_x + 1 + * - base_y + 6, base_x + 1 + * - base_y + 3, base_x + 6 + * - base_y + 3, base_x + 11 + * - base_y + 6, base_x + 6 + * - base_y + 6, base_x + 11 * The added (y, x) couple values can be {0, 3, 6}x{1, 6, 11} */