I got into Rails in the late summer of 2006. It was a pretty wild ride: Rails 2.0 was still over a year away, Github didn’t exist, we were installing plugins (not gems) by finding them on technoweenie’s SVN repository, and best practices/libraries hadn’t really congealed yet. Everybody was more or less making their own way. This was somewhat restrictive, in the sense that we didn’t have the same communication tools, documentation resources, and software libraries we have today; but also extremely productive, as it forced the community to come up with creative solutions that would build on top of each other and create a best of breed. This is standard in any evolutionary process, and Node.js proves to be no exception.
Just as Rails was to me 5 years ago, Node.js is providing an exciting landscape.### but what am I doing with Node? Well, I’m glad you asked. A friend of mine once taught me this Chess variation called Kriegspiel, where you can see your pieces but not those of your opponent’s. Through trial and error, you have to build an understanding of where your opponent’s pieces are, while they’re trying to do the same regarding your pieces. It’s a very challenging game, and I thought it’d be a great experiment for Node’s asynchronous nature. Also, my friend has been living overseas for the past few years, so it’s probably the only way we’d actually be able to play again. Enter Kriegspiel.js.
There are a few problems with the game right now… for one, you actually see both white and black pieces, and for another, it doesn’t actually work. But most of the pieces behave properly, and most of the captures work appropriately. Check, mate, en passant, and castling rules haven’t been implemented yet. But it’s coming along. And maybe one day you’ll be playing a game. Go ahead and try it out.comments powered by Disqus