Stuff tagged as 'game'

2014-03-20 - Tic Tac Toe in JavaScript, Part 3 (final version)

In the last post I added a couple of basic strategies to my Tic Tac Toe game that made it less than totally stupid, but still not too hard to beat. If you play that game a few times you'll likely identify a few holes in its logic - tactics you can use to repeatedly beat the computer. In this final version, I've added four more strategies that - I think - prevent the human player from ever winning and take every opportunity given to win. If you can beat the game with all the strategies enabled, please tell me how. Here are the final four strategies. Full source code is at the bottom as a Gist.

2014-03-16 - Tic Tac Toe in JavaScript, Part 2

In the last post I introduced a Tic Tac Toe game with computer player implemented as a single HTML file. The game in that post was a proof of concept, with the computer player just randomly selecting a blank square for its turn.

2014-03-13 - Tic Tac Toe in JavaScript, Part 1

My latest project is a Tic Tac Toe game implemented as a single HTML file with embedded CSS and JavaScript. Creating the game board that updates during play was fairly trivial. The fun part is that the computer plays against you.

Blog Search

Some Tags

Programming Is Fun

This is a blog about programming for the sheer joy of it. More...

Contact
github.com/wiseley
twitter.com/mattwiseley