Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
andrewghull
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
andrewghull
2y ago
Here's the final example in TypeScript if you find that easier to read: type NonEmpty<T> = [T, ...T[]] const head = <T>(list: NonEmpty<T>) => list[0] function getConfigurationDirectories(): NonEmpty<st
2.
▲
by
andrewghull
3y ago
That's almost exactly what I've done here, and then defined various nodes with different behaviour like for-loops, while-loops, etc. Take a look at https://docs.boardzilla.io/game/flow to see how it looks.
3.
▲
by
andrewghull
3y ago
Yes it's like BGA, not TTS. No, we haven't done much to secure the online playing experience for strangers other than simply enforcing the rules of the game. We've been so far more focused on the API side of building game tha
4.
▲
by
andrewghull
3y ago
Thanks for the comment, and yes we'd love to add more docs. (it's time consuming!) I understand that even a simple-sounding game can feel daunting to translate into a formalized API. I did record a video of me building part of a g
5.
▲
by
andrewghull
3y ago
We've been planning to add a way to do pluggable AI functions (both for solitaire play and for testing). If you want to try, take a look at the TestRunner class for an easy way to automate playing the rules for multiple players.
6.
▲
by
andrewghull
3y ago
Appreciate that! We'll take another look at this.
7.
▲
by
andrewghull
3y ago
Co-creator here. I thought AGPL was ok as well, but Commons Clause specifically tried to address perceived deficiencies in the AGPL although I admit that it didn't really seem to catch on. I'm not super well versed in the technica