Integrating It All
[ 350 ]
"<div class='vert-separator'></div>",
"<h1 class='cell'>{{grid.4}}</h1>",
"<div class='vert-separator'></div>",
"<h1 class='cell'>{{grid.5}}</h1>",
"<div class='horz-separator'></div>",
"<h1 class='cell'>{{grid.6}}</h1>",
"<div class='vert-separator'></div>",
"<h1 class='cell'>{{grid.7}}</h1>",
"<div class='vert-separator'></div>",
"<h1 class='cell'>{{grid.8}}</h1>",
"</div>"
].join("\n");
Put this all together and we have a playable TicTacToe game for mobile devices. I
wrote this DSL as a proof of concept to see if a usable DSL could be written for kids
to program with.
In terms of hitting our original goals for the DSL, we have achieved a lot of them.
At the close of the term we had the kids' own player bots playing each other in the
mobile app shown in the following image:
http://www.ebook3000.com