April 09, 2010Tutorial: MastermindTerran implemented a nice 80-line Mastermind implementation in javascript here. It is a pretty interesting example, and I like it a lot. In an attempt to simplify it, I made a jquery version of it here: mastermind.html (view source). The jquery version has a slightly different flavor - less string-hacking and more conceptual stuff. Unfortunately, I do not think the jquery conversion makes the code easier to understand for a beginner. It uses too many idioms and so it is probably harder. But maybe it is useful as an advanced example some jquery and javascript tricks. What do you think? Is there a simpler way? Posted by David at April 9, 2010 10:42 AMComments
Post a comment
|
Copyright 2010 © David Bau. All Rights Reserved. |