News for hackers. Stuff that matters.

vigrant

So did some research....

Fairy would help with search tree accuracy but it's not expressive enough to cover everything, you can't encode "no captures for 5 moves" in an INI config. I'd still need the JS filtering layer for dynamic constraints, so you would end up in the same place with those cases.

Yup, you are right. I'll take a look at Fairy. Looks like there is a WASM version!
The constraint is enforced at every move. Stockfish can never actually play against it. The only limitation is that its internal search tree imagines unconstrained future moves, which makes its evaluation slightly off and the engine effectively weaker. For the use case (handicapping for fun) that's an acceptable tradeoff

https://constrainedchess.vercel.app/?fen=2b1kb2%2F8%2F8%2F8%...

Show HN: Constrained Chess, Play Stockfish with custom natural-language rules

https://constrainedchess.vercel.app/

Built this mostly with AI assistance (vibe-coded). Stockfish 16 runs in the browser via WASM. Constraints are parsed in two layers: a hand-written rule parser handles common patterns (no captures, piece restrictions, no castling, etc.), and anything it can't match falls through to Claude Haiku, which generates a JavaScript matches(uciMove, chess) function on the fly. That function runs...

( Read More... | 8 comments | 2 points | on HN )
Just noticed the unmatched quote in the the title :(
I was playing around with the idea of difficulty ramping, the first celeb would be more famous than the 2nd and so on.

I also want to go back through each celeb and add in what single thing they are most well known for, so for Edward Teller for example, i'd put "the father of the hydrogen bomb".

Re: on Tuesday March 01, 2016 @11:41PM (#11208122)
Where are you getting the stats from? I wanted to build something related but more real time (I don't have an iphone to check out the app but i'm assuming you don't have real time box scores). http://www.nba.com/news/termsofuse.html#priv9 (6)
Re:LiteCoin Mining on EC2 is currently profitable on Friday November 29, 2013 @02:01AM (#6818227)
I'm getting hung up when trying to install the CUDA installer. I get the error "The driver installation is unable to locate the kernel source.".
Re:Apple topped 53% U.S. smartphone market share in Q4 2012 on Friday January 04, 2013 @05:41PM (#5010416)
Q1 2013
Re:Zip Bomb on Friday October 05, 2012 @01:02PM (#4617671)
lol ^ 10,000,000,000
Re:256 CSS Classes Can Override an #id on Wednesday August 15, 2012 @11:00PM (#4389713)
Confused me for a second, but yeah your right.
Re:256 CSS Classes Can Override an #id on Wednesday August 15, 2012 @08:43PM (#4389266)
It doesn't seem to work when you switch the order of the css selectors.
Re:Craigslist Suing Padmapper on Saturday August 04, 2012 @12:18PM (#4338827)
Very true.
Re:Craigslist Suing Padmapper on Tuesday July 24, 2012 @02:19PM (#4287134)
What's stopping someone from making a craiglist like website with an awesome UI?
Re:Scientists claim to crack brain memory code on Friday June 29, 2012 @10:16AM (#4176681)
Sometimes nature takes the hard path. youtube.com/watch?v=cO1a1Ek-HD0
This strategy worked for me, I ended up doing some cool stuff for a professor whose work focuses on pompeii.