πŸ’Ύ Archived View for bbs.geminispace.org β€Ί u β€Ί skyjake β€Ί 16611 captured on 2024-05-10 at 10:56:35. Gemini links have been rewritten to link to archived content

View Raw

More Information

➑️ Next capture (2024-05-12)

-=-=-=-=-=-=-

@gritty When I open the "Play Farkle" / proceed to app link (/farkle/app), it has started responding with status 10 so I get an input prompt. A bug? The game works normally after submitting empty text in that initial query.

πŸ•ΉοΈ skyjake [sysop]

May 06 Β· 5 days ago Β· πŸ‘ sev, norayr

13 Comments ↓

πŸ€ gritty Β· May 06 at 11:13:

That's strange. I tried with a couple identities and couldn't reproduce.

Does Lagrange have some kind of auto prompt feature? I remember a post a while back about this to help out with things like spellbinding? I might be misremembering.

πŸ€ gritty Β· May 06 at 11:15:

after the empty prompt, do the dice say farkle or do they have or numbers?

πŸ•ΉοΈ skyjake [OP...] Β· May 06 at 11:23:

Does Lagrange have some kind of auto prompt feature?

Ah of course. This happens because I enabled the "assume URL requires input" on (what I thought was) the "Select Dice" action, to make it respond faster. Looks like you're using the same URL (sans query) for the initial Play Farkle.

So what I'm seeing is clientside behavior that you can disregard if you want.

In the future, you may want to consider making your action URLs more unique to help the client differentiate them better, and also to avoid redirects during user actions.

πŸ€ gritty Β· May 06 at 11:29:

that's fair. this is my first real app here so I'll keep that in mind. I'll see if i can retool it at some point.

πŸ€ gritty Β· May 06 at 23:02:

btw, the random function used is systemrandom

πŸš€ sev Β· May 07 at 07:52:

@gritty I just noticed something: I've never rolled a 6! I thought there was something weird going on with the odds: I never get a straight and always seem a bit too lucky getting ones and fives!

πŸ€ gritty Β· May 07 at 09:56:

ohhhh you might be right!

πŸ€ gritty Β· May 07 at 12:24:

@sev welp, I'm an idiot. I used randrange(1,6) instead of randint(1,6), the latter being inclusive of the 6. I could've done randrange(1,7) as well. You'd think I'd have noticed after all the testing lol. Thanks for identifying.

πŸ€ gritty Β· May 07 at 12:25:

I obv don't write unit tests for my code, and I should.

πŸš€ sev Β· May 07 at 16:06:

Glad it was an easy fix. Funny it took us so long to notice!

🐐 satch · May 07 at 16:59:

Haha! You’re right!

🐐 satch · May 07 at 17:08:

@gritty if you go to gemini://gemini.smallweb.space/farkle/tournament/current.gmi then click on rules the link is broken

There might be some other broken links as well

πŸ€ gritty Β· May 07 at 22:59:

might be a record today, everyone is in the 6k range with one tie.

another case I didn't account for is ties for 1st 2nd and 3rd.

this is why I'm not a professional programmer, ha. thanks for your patience