vendredi 10 janvier 2014

sleep made me smarter

As I told you before, I'm not really good at using puzzlescript :).

I was kind of proud of my state switching procedure, but then I just realized upon waking up that I could simply mark my objects to only apply one rule per turn:

Coming back to my 2-state scenario (A and B).
 If in the legend I have defined

state = A or B

I can proceed as follows:

[state] -> [state x]
[A x] -> [B]
[B x] -> [A]

This way, the transition is only made once per turn.

I m glad no one is reading this blog because otherwise some puzzlescript developers would be probably laughing while reading those lines...

Anyway, going forward...

Aucun commentaire:

Enregistrer un commentaire