Slashdot Mirror


Code That Pushed the Language Envelope?

Lil Fritz asks: "Following on from the cool Flash Adventure game last week, this geezer Neil Pearce has written a full client side JavaScript CPU chess player (which drew with me, but then I'm papz at Chess). Now this sort of thing always amazes me. Doing stuff for which it was never intended. Do we have other warped (ie 'they wrote it in what?!?') uses of languages and tools?"

1 of 87 comments (clear)

  1. Not too good by Scarblac · · Score: 5, Insightful

    The site says it looks 2 moves deep, but I don't see how it can play like this then:

    1.e4 Nc6 2.d4 Nf6 3.e5 Ne4 4.Bd3 Nxd4?? 5.Bxe4 Nxc2?? 6.Qxc2

    Leaving two knights hanging to immediate capture threats, that doesn't suggest any lookahead to me.

    But of course, it's neat that it works. People have made utilities for playing through chess games before, like PalView (a simple demo here).

    Adapting that to take user input and a very simple lookahead is work, but not stunning in my opinion. Unless there's some reason why this is very hard in JS, I don't really do that language...

    --
    I believe posters are recognized by their sig. So I made one.