PremierLangage / Yggdrasil

A PL subproject where we are tackling the design of new types of exercises
4 stars 2 forks source link

Parson's programming puzzles #27

Closed nthiery closed 5 years ago

nthiery commented 5 years ago

Parsons programming puzzles are a type of scaffolded program construction tasks where the learner is given a set of code fragments, blocks of a single or multiple lines of code, and the task is to piece together a program from these. Some references:

That could be an idea of exercise type for PremierLanguage. As a first crude approximation, we could add a line order randomizer in cpp-info111, with a syntax such as:

RANDOM_LINE_ORDER(
for (int i=0; i<t.size(); i++) {
    if ( x == t[i] )
         return true
return false

cc: @HuxoD142, @hivert

nthiery commented 5 years ago

Accidental duplicate of #26 (network failure in the middle of the submission)