Archive for the Misc Category

Some more Prolog

Posted in Misc on June 28, 2008 by iambmf

%% Levenshtein distance

distance(Xs,[],N) :- size(Xs,N), !.
distance([],Ys,N) :- size(Ys,N), !.

distance([X|Xs],[Y|Ys],N) :- X = Y, !, distance(Xs,Ys,N).
distance([X|Xs],[Y|Ys],N) :- X \= Y, !, distance(Xs,Ys,D1), distance([X|Xs],Ys,D2), distance(Xs,[Y|Ys],D3), min(D1,D2,D3,N1), N is N1+1.

size([],0) :- !.
size([X|Xs],N) :- size(Xs,N1), N is N1+1, !.

min(X,Y,Z,X) :- X =< Y, X =< Z, !.
min(X,Y,Z,Y) :- Y =< Z, !.
min(X,Y,Z,Z) :- !.

Backgammon

Posted in Misc on June 23, 2008 by iambmf

“Backgammon is a board game for two players in which the playing pieces are moved according to the roll of dice… Although luck plays an important role, there is a large scope for strategy”

If you don’t know this game, they I strongly suggest you try it out. It’s awesome! I’ve been playing it quite a lot lately, it’s really entertaining.

I had the intention to make a Backgammon playing bot, but it looks like such a thing is harder than I may have thought at first. =/

My first Prolog program. =P

Posted in Misc on June 23, 2008 by iambmf

%% Tests whether a number is prime or not.

prime(X) :- integer(X), prime(2,X).
prime(N,X) :- N < X, N1 is N+1, M is X mod N, M =\= 0, prime(N1,X).
prime(X,X).

^_^

It was time for an update!

Posted in Misc on June 15, 2008 by iambmf

So I updated my personal website today. I had not worked on it for a while, and since now I have some free time… =)

However, I must say I’m not too happy with it… so I may change it again soon.

Back

Posted in Misc on June 10, 2008 by iambmf

Exams are over!

I know it’s been long since my last post, I’ve been pretty busy with exams and stuff. However, the fact that I didn’t find time to post doesn’t imply that I didn’t find time to work on some stuff. So expect some news soon.

I’m currently basically working at the following (among some other things you do not care about):
-A demo with TimeScratchers. We’ll hopefully have it ready before the summer ends.
-The sudoku solving robot with the trigeekz. I’ll write some posts about it soon!

I should also mention that I (as a part of nivel21) will most surely enter the DBP challenge.

What else… I want to learn some prolog, and make a backgammon bot. Still hooked to Guitar Hero III, and watching Lost (3rd Season).

Hooray for free time!

trigeekz was born today!

Posted in Misc on April 21, 2008 by iambmf

minolo3ds, jacano and me founded trigeekz today. We are the guys behind this Guitar Hero III bot (yes, I have to write a few posts about it here, I just didn’t have time.. yet).

Just three geeky friends who like working on cool projects (current one: Sudoku Solving Robot). ^_^

By the way, there should be some juicy posts about the robot soon. We have been doing some stuff… just don’t be impatient. =D

Pure Pwnage owns!

Posted in Misc on April 6, 2008 by iambmf

If you don’t know what Pure Pwnage is you are a noob. That’s fairly simple to get, isn’t it? =P

Seriously, it rocks. I’ve watched all the episodes, and they really are fun. Just thought I’d recommend it to you guys, in case you are bored. ;)

It’s about gamers, and.. it can’t really be explained, you have to watch it.

Hello World

Posted in Misc with tags on April 6, 2008 by iambmf

Hi you there!

Keeping my personal website updated has shown to be… nearly impossible during the last few months. Could a blog help? Let’s see.

So I’ll try to write a few posts about me and what I’ve done in the past, and get used to wordpress while at it. Then I’ll try to post pretty often so you can all see what I’m up to! (Life if anyone would like to!)

So, that’s basically it. Bye.