ruby-warrior icon indicating copy to clipboard operation
ruby-warrior copied to clipboard

Proxy objects for Turn and Space

Open ryanb opened this issue 14 years ago • 0 comments

All objects passed to a Player should be proxy objects which only contain methods that I want a player to use. This will make it more difficult to "cheat" by accessing the Space#unit and similar methods which provide more information than I want to make available.

This won't entirely prevent this kind of cheating but at least it will add a layer of difficulty. If one is smart enough to view the source and see how the proxying works then perhaps they deserve to have access to it. ;)

ryanb avatar Mar 15 '10 21:03 ryanb