Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Depends on what type of syntax you enjoy I think.


Functional language approaches are very neat to encode game rules. Just define the sets to which a rule apply, define rule -> behaviour maps and then apply. With this alot of procedural/object orientated cruft shrinks down to one page algo&definitions.

Lua does supply this style, just needs some slight additions.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: