go-tui

Une TUI pour jouer au go - retour accueil

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

Log | Files | Refs |

commit 39a58490892ec610264273d6fb6450d4d6b3ecbe
parent 90ce57931fc5b63222ba2fd003675a057577e4f0
Auteurice: Arthur Pons <arthur.pons@unistra.fr>
Date:   Tue, 15 Jul 2025 19:16:51 +0200

On peut placer des pierres sur la dernière colonne

Diffstat:
Mgotui.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gotui.c b/gotui.c @@ -88,7 +88,7 @@ int main(int argc, char **argv) { struct stone s; switch(input) { case 65512: /*MouseLeft*/ - if( ev.x<0 || ev.x>BOARD_SIZE*2 || ev.x <0 || ev.y>BOARD_SIZE-1 || ev.x%2 || spot_is_taken(stone_list,stone_count,ev.x,ev.y)) break; + if( ev.x<0 || ev.x>BOARD_SIZE*2+2 || ev.x <0 || ev.y>BOARD_SIZE-1 || ev.x%2 || spot_is_taken(stone_list,stone_count,ev.x,ev.y)) break; s=create_stone(ev.x,ev.y,color); stone_list[stone_count]=s; stone_count++;