From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 29524 invoked from network); 6 Sep 2023 01:47:15 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 6 Sep 2023 01:47:15 -0000 Received: from mail-ed1-f47.google.com ([209.85.208.47]) by 9front; Tue Sep 5 21:45:55 -0400 2023 Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-52c74a2e8edso4582457a12.1 for <9front@9front.org>; Tue, 05 Sep 2023 18:45:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693964751; x=1694569551; darn=9front.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=zhaE4sfX8FS8p/Nr1coyuUCXtVgBqwpQ+eROyqTg+VI=; b=AZxqS7wkkWo1EeGYHn6HiAq8AAZl6TSV+OAB91e/Aio0S/z3tJg5AfHH0VwcTnWnee QNz75TCKvTUMBDQZMd2gLHY2TzbYVjK5eVs4zfVooxZm6tKH4ebnZyL+gprEvHZ4wkD2 l8vGXF90JIChQdwFKhRk3ZczzThlDmCYkeyo3seEE8GeYftRccpdUvZtDOTpgCrioT13 D/c/04g9nq4noKZYAU04CVluE3AeN8O+sWskeZu2w+DKdObqAR0Vjo2ZBHgyJcVxTKxL MC7brmdtQcyyWpp2iEnVRPSDbCd0yRw9xnjlU6SbE+42DHa/sHF+wzapWv2rW68x678D 6uFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693964751; x=1694569551; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zhaE4sfX8FS8p/Nr1coyuUCXtVgBqwpQ+eROyqTg+VI=; b=HYNReIbOY+9906AzWKWPy5wxtJ2zods63nGPISTGxp1FuJVf2PNyh7e4zgN1m9hKQv e9FPM4Y0J7nuv9EdNzdClkOETDcmHViJDldq3kP22wnrpVtCJd+DbKQe+pVHSHd+/DmJ tdwEtgwVj91f/lGMvJrsftT+3quUsv4gF5kDbDYqlLrHRl7ewoACgLrbnVvjVUkcgaB8 2d8/8VJEjilycwkBC+AChEHqDJWx1wrE9lrwGuc2dup3tU6rzGEZ3lCJBIGL0GYZXHpP qSkc0/qmbjlLx0JQ/jPtjOgGK53oViWfYxx6F3hNprcSFryIanrdWmoWfUQqXXL/BA9P vrlw== X-Gm-Message-State: AOJu0Yzm0TRPIWmaIjf9kZAeXsfoNT/DXzQdHbo+pxJXTuer0Vp9U6yc A2e7G9D71H9fNJvzWwq4hVzKdmDIp5ghjcUOxOwvtrDSEp0= X-Google-Smtp-Source: AGHT+IERBF6xeGtFpIoIcv6NSDit61efCDGi3ZhD6IgWTH9SqxnDhiiAodX9LcV6ZgPAHBkBG1CJj3tpG9PpYhX7530= X-Received: by 2002:aa7:dad0:0:b0:525:7d81:71ee with SMTP id x16-20020aa7dad0000000b005257d8171eemr1133884eds.15.1693964751548; Tue, 05 Sep 2023 18:45:51 -0700 (PDT) MIME-Version: 1.0 References: <756A1865A032E8EDC1FD2B1FD17A4E7D@antares-labs.eu> In-Reply-To: <756A1865A032E8EDC1FD2B1FD17A4E7D@antares-labs.eu> From: Amavect Date: Tue, 5 Sep 2023 20:45:35 -0500 Message-ID: To: 9front@9front.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: open-source asynchronous storage AJAX over WEB2.0 cloud core base-based API Subject: Re: [9front] new game: battleship (aka sink the fleet) Reply-To: 9front@9front.org Precedence: bulk On Tue, Sep 5, 2023 at 5:43=E2=80=AFAM wrote: > there's actually a bug that i want to investigate before i continue > adding stuff. It is not a stack overflow. Hint: add a print("I exit now :)\n") after the yield in threadmain. I've been burned by libthread before, and I'm not convinced that cooperative scheduling via threadcreate is very useful. For example, the draw thread is controlling the board reset. Instead, that should be sequenced by the game logic. I would move the input and draw threads into main. Expect some patches soon :) Good job so far, and love sigrid's anchor cursor! Thanks, Amavect