le jeu des motos dans tron - retour accueil
git clone git://bebou.netlib.re/tron
Log | Files | Refs | README |
commit a2aca3d01eb2fa96f65cd1eeda8e7df7c68c4e35 parent 4fd2a2f8efa83dc80fc44b5f199b4d5bc4501e19 Auteurice: Arthur Pons <arthur.pons@unistra.fr> Date: Wed, 25 Jun 2025 16:07:56 +0200 Synchro de l'index des voitures ui et debug Diffstat:
M | tron.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tron.c b/tron.c @@ -31,7 +31,7 @@ void display(struct car *cars, int ticks, int tail, struct arena arena, int time tb_printf(cars[i].path[j].x,cars[i].path[j].y,cars[i].color,0,"▒"); else tb_printf(cars[i].path[j].x,cars[i].path[j].y,cars[i].color,0,"▒"); - tb_printf(0,arena.height+i+1,cars[i].color,0,"car %d - x: %d, y: %d, direction %d",i,cars[i].position.x,cars[i].position.y,cars[i].direction); + tb_printf(0,arena.height+i+1,cars[i].color,0,"car %d - x: %d, y: %d, direction %d",i+1,cars[i].position.x,cars[i].position.y,cars[i].direction); } tb_printf(0,arena.height+3,0,0,"tick %d, speed %d",ticks,timeout); tb_print(0,0,0,0,"╭");