lunduniversity / introprog

Teaching material for "Introduction to Programming using Scala" at Lund University, LTH. http://cs.lth.se/pgk/
141 stars 167 forks source link

change shuffle to include enum instead of integer encoding #767

Open bjornregnell opened 8 months ago

bjornregnell commented 8 months ago

Many had problems with enums at the diagnostic test. One way to improve knowledge about enums is to make shuffle use them from start instead of starting off with integer encoding and then have an optional task on enums.

jonmellerby commented 8 months ago

This seems like a good idea to me. It's probably more educational to write good code and then reflect on why it's good, than to purposely write suboptimal code and reflect on why it's bad.