|
|
||
Jim Driscoll's BlogComet TicTacToePosted by driscoll on May 07, 2008 at 06:45 PM | Comments (1)Here's the Comet TicTacToe that I went over in my BOF on Comet on Wednesday night. It's pretty simple (though not as simple as my first example, or even the somewhat improved version) - just 200 lines of Java code (including the game logic), 50 lines of JavaScript (embedded in an HTML page), 50 lines of HTML, and a 75 line CSS file. Simple stuff, but if you're looking to write your own Comet app, this might help get you started. You can find the full Netbeans project here. Essentially, the program logic is contained in only two files: ttt1.html, and CometServlet.java. Check 'em out. After my initial example two posts ago, these should be pretty self explanatory. If you have any questions, by all means ask in the comments below. Bookmark blog post: CommentsComments are listed in date ascending order (oldest first) | Post Comment
| ||
|
|