Lesson 25, inconsistency between add_unit example call arguments and practice exercise place_unit function #981
Labels
content
Issues with the lessons, practices, including their code examples
Near the bottom of lesson 25 there is the following code snippet:
I thought the arg ordering of add_unit was a little strange at first as add_unit(coordinate, unit_name) just feels more intuitive. Sure enough, in the 2nd practice example the order of the args for place_unit is in this order (i.e., place_unit(cell:Vector2, unit_type: String) ). It would probably add clarity to use the same function name, with the same argument ordering, in lesson module associated with the practice.
The text was updated successfully, but these errors were encountered: