ruby-warrior
ruby-warrior copied to clipboard
Proxy objects for Turn and Space
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. ;)