I’m currently writing a small game application in ruby.
The problem is, not all of the rules are static, meaning some
of the actions in the game are allowed to change them.
My question is, what is the best and safest way to implement this
Specifically, I have database of items, which may change parts of
the rules upon activation.
Storing code along with those and eval()ing it at runtime feels
kind of awkward and not really safe, but seems the most flexible
way at a first glance.
Has anybody ideas and/or pointers to this matter?