Category Archives: Code

Simple Rationality

I don’t know why it’s taken me so long to post this. Several weeks ago I was playing a turn-based fighting game that I love, and I got to thinking “what would an AI that plays this game well look like?” And as I thought about it, it became clear to me that the challenge [...]

Also posted in Cognition | Tagged , , , , , | 6 Comments

Butchering Haskell

I picked up Haskell just under two weeks ago, and in my free time I’ve been implementing RCRPG in it, much like I did with Python. You can see my code at http://rosettacode.org/wiki/RCRPG/Haskell. It’s really not very pretty though. My mind is clearly still stuck on a procedural, object-oriented approach.

Posted in Code | Tagged , , , | Leave a comment

Autocell 2

I’ve updated Autocell to version 2. In addition to cleaning up the code, adding better error handling, and (I hope) improving the interface slightly, I’ve made the following changes to the rules: You can now set cells to be drawn as images. Defining the image a cell should use is as simple as making a [...]

Posted in Code | Tagged | 4 Comments

Learning Python

It’s not that interesting, but I made a little one-player text-based RPG in python (3.1.2) this morning/last night. I’m happy with it, just because it’s the largest thing I’ve ever done in python. The whole thing is based off of this blog post. You can get the source code here: http://raelifin.com/files/code/rcrpg.py It’s all public domain, [...]

Posted in Code | Tagged , , , | 1 Comment

Mini-Project: Autocell

My latest quick project was to write a basic scripting language for building cellular automata. The framework is built on javascript, and I made a nice little interface to go with it. As long as you’re using a browser that isn’t terrible, you can check it out here. All the code on that page except [...]

Posted in Code | Tagged , , , , | 1 Comment