Monthly Archives: July 2008

Memoizing with ETS

In my 3n + 1 post rickhg12hs suggested I use the erlang ets module to memoize my solution. To time the code before and after changes I found this little gem from David King -module(timer). -export([timer/3]). timer(Mod,Fun,Args) -> Start=erlang:now(),   … Continue reading

Posted in Erlang, Programming | Leave a comment

Curse of the Azure Bonds – build 1.0.13

The game can now be completed.  I finished my dungeon crawl last night, with the help of the magic God’s Intervene cheat. Here are the changes in build 1.0.13: Fixed issues stopping the end-game sequence from working, so the game … Continue reading

Posted in Curse of the Azure Bonds | 14 Comments

The Trip – 110103 in Erlang

The third of my Programming Challenges solutions is for The Trip 110103 This problem is great for making you think.  Key points are; you cannot have half cents, and you have to find the minimum money needed to balance costs … Continue reading

Posted in Erlang, Programming | Tagged | 5 Comments

3n + 1 in Erlang

This is my second Programming Challenges solution written in Erlang. First here. This time I chose the first problem 3n + 1 #110101. It is a little bit of a cheat doing it in Erlang, as the major point of … Continue reading

Posted in Erlang, Programming | Tagged | 4 Comments

Reverse And Add 110502 in Erlang

Carrying on from Cedric’s Challenge (C#, Erlang) I decided to do some of the Programming Challenges problems in Erlang, because the problems are small, but fun. My first is Reverse And Add #110502 and here is my solution: I’m not … Continue reading

Posted in Erlang, Programming | Tagged | 3 Comments