Continuum Six

Month

May 2013

1 post

May 20, 2013

April 2013

1 post

Play
Apr 5, 2013

March 2013

1 post

Mar 5, 2013

December 2012

2 posts

Play
Dec 23, 2012
Play
Dec 18, 2012

November 2012

4 posts

Nov 27, 2012
Nov 24, 2012
Nov 19, 20121 note
Nov 7, 20121 note

October 2012

8 posts

Oct 29, 2012
Oct 24, 2012
Oct 14, 2012
Tic-Tac-Toe Robot

image

I’m taking a class on programming for embedded systems, and our most recent assignment was to build and program a tic-tac-toe board with an Arduino. My finished project is above: nine lights which can be lit either green or orange independently (though they’re wired on a grid system, so I have to flash through them to light more than one at a time), and two buttons (one to choose a move and one to play it). 

image

As you can see, it’s fully capable of setting itself up to win and blocking the user’s attempts (the computer player is orange). In fact, I’m pretty sure the AI is unbeatable; beyond more basic play, it defends against the user’s attempts to set up a win in two directions at the same time, and it can even attempts these setups itself.

Though I won’t post the Arduino source for the program (it’s a school project, so collaboration policies, etc.), I have posted a Python version of my AI on GitHub, including a more detailed description of the AI design. If you’re interested in this sort of thing, you should check it out.

Oct 11, 2012
Oct 7, 2012
Random Descriptions and a Nonsense Server

I recently figured out that Tumblr will render raw HTML in blog descriptions (the little caption you see above), which seems like too much of an opportunity to pass up. I recently updated my Nonsense Generator from this spring to run as a service on my VPS with some simple Flask code, so now I’m rendering a short clip of nonsense within the aforementioned description field by hitting my nonsense server from an iframe (to get around JavaScript’s same-origin policies).

You, too, can similarly use nonsense wherever you like: just access http://mattnichols.net:5000, with the optional GET variables url, lines, and words. These default to 5 lines of approximately 7 words each, drawn from the text of T. S. Eliot’s The Wasteland. Should you wish, you can also check out the updated Nonsense Generator source on GitHub.

Oct 6, 2012
Oct 6, 2012
Oct 2, 2012

September 2012

1 post

Conversations with math majors, pt. 1
  • If you ever get a dog, you should name it Woofram.
  • I heard that Woofram is kind of an alpha male.
Sep 12, 2012

August 2012

4 posts

Aug 21, 2012
Aug 14, 2012
Next page →
2012 2013
  • January
  • February
  • March 1
  • April 1
  • May 1
  • June
  • July
  • August
  • September
  • October
  • November
  • December
2011 2012 2013
  • January 2
  • February 6
  • March 4
  • April 5
  • May 3
  • June 2
  • July 1
  • August 4
  • September 1
  • October 8
  • November 4
  • December 2
2011 2012
  • January
  • February
  • March
  • April 2
  • May 11
  • June 1
  • July
  • August
  • September 2
  • October 1
  • November 3
  • December 10