Comment by πŸš€ stack

Re: "Announcing Pig! (yet another dice game) I've implemented…"

In: u/gritty

A couple of small anomalies:

πŸš€ stack

Mar 23 Β· 6 weeks ago

7 Later Comments ↓

πŸ€ gritty [OP] Β· Mar 23 at 19:51:

hmm, thanks I'll check those out. 21 I'd an easy fix, it's just the counter. I'll reroute to leaderboard on game completion

not sure about the other one

πŸ€ gritty [OP] Β· Mar 26 at 02:04:

I updated the interface to display "end" for the round when the game has finished, and the "roll" link now says "finish"

@stack - I replicated your issue swapping certificates. this is Lagrange's functionality and only happens if you immediately swap certificates. If you "stop using certificate" first, it works as intended. The reason is that Lagrange immediately associates the new certificate to the /roll path as the top domain/path. I don't think this is possible in Alhena because of the way the certicates are loaded and associated in that browser.

The only way around this that I could think of is to redirect to the base url for every action, but I'd prefer not to hit the db twice for every roll or stand action. I may think on this some more or let it be as it seems to be a small edge case that I don't think would be common.

Edit: I've yet to push the udpates; I want to test it to make sure I didn't break anything.

Edit 2: I could maybe detect the path upon new user creation

πŸš€ stack Β· Mar 26 at 02:17:

It's not something that normally happens and it's not thar hard to enter the same identity the second time if necessary. I just wanted you to be aware.

πŸ₯œ smallpatatas Β· Apr 03 at 06:30:

this rocks!

i don't have any bug reports for you, but i do have a question: what do the percentages represent?

πŸ€ gritty [OP] Β· Apr 03 at 13:35:

thanks!

probably of not rolling a 1 successively. 5/6 * n

πŸ₯œ smallpatatas Β· Apr 22 at 18:48:

continuing to enjoy this game :)

small bug - the 'back' link at the top of gamelog/index.gmi reloads that page, guessing that's not the intended behaviour

πŸ€ gritty [OP] Β· Apr 22 at 22:11:

yes, thanks I noticed that as well. I've been meaning to fix it. the archive process doesn't fix the links in the page.

Original Post

πŸ€ gritty

Announcing Pig! (yet another dice game) I've implemented the die game Pig, but this time entirely in Racket [1], a Lisp-language relative (read: functional programming). This is BETA and open for TESTING. The game uses SCGI instead of CGI in order to elminate repeated calls to load and unload a CGI program: Pig is loaded into memory and waits for connections. The SCGI portion was created from scratch as well. Thanks to @stack for the Lisp inspiration. [gemini link] Play Pig! [gemini link]...

πŸ’¬ 10 comments Β· 1 like Β· Mar 22 Β· 7 weeks ago