News for hackers. Stuff that matters.

oessessnex

Re:A Man Who Thought Too Fast on Tuesday July 23, 2024 @01:29AM (#41042807)
You don't play by checking all possible moves on every turn like a machine. It's mostly intuition based, but it takes a while before it develops.

Also there are levels to this game, the range of players that is fun to play against is kind of narrow, outside of that you either obliterate or get obliterated.

Re:Coroutines and Effects on Tuesday April 23, 2024 @05:35PM (#40137595)
In OCaml the integer operations are implemented using LEA instructions, and the floats are boxed. The language is not really suitable for numerical code...
Re:NixOS Is Not Reproducible on Sunday April 07, 2024 @05:14AM (#39959479)
Yes, Nix doesn't actually ensure that the builds are deterministic. In fact it works just fine if they aren't. There are packages in nixpkgs that aren't reproducible: https://github.com/NixOS/nixpkgs/issues?q=is%3Aopen+is%3Aiss...
Yes, except things mostly made by a single company, especially if it is VC founded.
Re:Echo Chess: The Quest for Solvability on Thursday August 31, 2023 @10:04PM (#37345946)
I implemented a partial generator based on the idea in my previous comment. It was quite a fun challenge.

At each step it determines the reachable squares for the given piece, that are not occupied or block past moves, and chooses one at random, then it computes the shortest path to that square. This procedure is repeated until there are no squares available.

Only pawns, knights and kings are supported so far.

https://gist.github.com/oessessnex/bc617095675da44f857216f98...

Great game btw :)

Re:Echo Chess: The Quest for Solvability on Thursday August 31, 2023 @05:19AM (#37334484)
It's even simpler than that. You can randomly generate a valid sequence of moves (i.e move to a3, become knight, move to ..., move to ..., become ..., ...) instead of the initial board state and that guarantees the puzzle is solvable.