News for hackers. Stuff that matters.
Re:The first 10k games at bgammon.org, an open source online... by oldmariner on Wednesday July 03, 2024 @08:07AM (#40865160)
Pretty cool, thanks!

I was casting my pieces off, guaranteed a win, but my opponent left, so it didn't count as a win for me to my disappointment.

Perhaps if someone leaves and doesn't return within 60 seconds, the game should be a win for the person remaining if the remaining person's pip count is lower.

Re:The first 10k games at bgammon.org, an open source online... by anamexis on Wednesday July 03, 2024 @08:55AM (#40865505)
I think whoever abandons the game should forfeit, otherwise you get weird incentives (like to quit anytime your pip count is higher)
Re:The first 10k games at bgammon.org, an open source online... by oldmariner on Wednesday July 03, 2024 @09:52AM (#40865977)
That's why I only mentioned a different condition which hopefully doesn't lead to bad sportsmanship.
Re:The first 10k games at bgammon.org, an open source online... by oldmariner on Wednesday July 03, 2024 @10:08AM (#40866091)
Happened a second time :-( although this time my opponent still had a chance.

Both games where my opponent left, now show as wins in my history.

Also, I like the dice addition, but on desktop, the dice images are not matching up with what is rolled and displayed in the log.

How long does an opponent have until they auto forfeit if they don't move?

Re:The first 10k games at bgammon.org, an open source online... by tslocum on Wednesday July 03, 2024 @11:32AM (#40866966)
Thanks. The way inactivity is handled is covered in the FAQ: https://bgammon.org/faq/#what-happens-if-a-player-goes-inact...

You shouldn't need to wait more than 30 seconds to see a win in your history after you also leave the game.

Will you please share a screenshot of the dice issue?

Re:The first 10k games at bgammon.org, an open source online... by oldmariner on Wednesday July 03, 2024 @12:05PM (#40867295)
https://imgur.com/a/bqyWblS

Maybe it was the Firefox addon Canvas Blocker? That addon was crashing the game, so I disabled it and appears to work now. The game still makes my laptop fans kick on though.

Re:The first 10k games at bgammon.org, an open source online... by tslocum on Wednesday July 03, 2024 @12:32PM (#40867566)
Thanks. Yes, that makes sense. The web version of the game is powered by WebAssembly and renders to a canvas.

The game is only able to utilize one CPU core when running in the browser, maxing that core out probably set off your fans.

Re:The first 10k games at bgammon.org, an open source online... by NooneAtAll3 on Wednesday July 03, 2024 @01:08PM (#40867921)
...isn't webassembly supposed to be more efficient?
Re:The first 10k games at bgammon.org, an open source online... by tslocum on Wednesday July 03, 2024 @01:15PM (#40867993)
The reduced performance is a Go problem rather than a WebAssembly problem. See this issue for more info:

https://github.com/golang/go/issues/28631