Currently to use wollok game you need to instantiate the Position class.
new Position(3, 3).drawCharacterWithReferences(granjero, #["oro", "cultivos"])
We want to avoid showing classes in the first part of the OOP learning-path.
So we should think of a way to avoid it.
It could be with a new feature in wollok language itself like extension methods or literals.
Currently to use wollok game you need to instantiate the Position class.
We want to avoid showing classes in the first part of the OOP learning-path. So we should think of a way to avoid it. It could be with a new feature in wollok language itself like extension methods or literals.
Example using a literal
Although I don't like to couple the language syntax with wollok game. Another option more object-based without any feature