go-tui

Une TUI pour jouer au go - retour accueil

git clone git://bebou.netlib.re/go-tui

Log | Files | Refs |

commit d49ad20fd8c3ffedf67b51dac39989fa87300a77
parent beab883476efd87b5b5c1fc32f9090e9d130a19b
Auteurice: Arthur Pons <arthur.pons@unistra.fr>
Date:   Tue, 15 Jul 2025 18:26:13 +0200

-1 au compte quand on retire une pierre

Normal. Ca résoud notre bug d'affichage de pierre fantome.

Diffstat:
Mgotui.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/gotui.c b/gotui.c @@ -89,6 +89,7 @@ int main(int argc, char **argv) { for (int i=0;i<stone_count;i++) { if (ev.x==stone_list[i].x && ev.y==stone_list[i].y) { for (int j=i;j<stone_count;j++) stone_list[j]=stone_list[j+1]; + stone_count--; break; } }