Some days ago, there was a discussion about movement rules on the atlantisdev mailing list that made me want to experiment with a few different mechanics. Now, I don’t know the Atlantis5 code very well, and I didn’t feel like making the change for Eressea only, because then nobody on the mailing list would benefit. That all made me wonder if I couldn’t just write movement logic independent from the game’s other implementation.

So now I’m writing the logic for an idealized interface instead, and implementing said interface for each game individually. The result should be the first truly modular code I’ve written in C, and there will be tests for everything, unlike most C code I’ve written in the past. In addition to putting it on github, I’ve chosen this tumblr to document my progress.

Now, how do I add syntax highlighting to my tumblr?


#include <stdio.h>
int main(int argc, char **argv) {
  fputs(stdin, "Hello, Worldn");
  return 0;
}

That looks presentable! I have to change the < and > to &lt; and &gt;, but apart from that, Google Prettify works as advertised. Time to write about some code!

Advertisements