Skip to content

Instantly share code, notes, and snippets.

@nestorsgarzonc
Last active March 30, 2022 20:54
Show Gist options
  • Select an option

  • Save nestorsgarzonc/daf1d7401d623794d4fab7802e90fadd to your computer and use it in GitHub Desktop.

Select an option

Save nestorsgarzonc/daf1d7401d623794d4fab7802e90fadd to your computer and use it in GitHub Desktop.
void main() {
final participants=["SB", "SG", "JS", "SL"];
final features=[
"Activation",
"App",
"Auth",
"Bank",
"Commercial",
"Credit card",
"Error",
"Home",
"Messages",
"On boarding",
"Payment",
"Product",
"Products",
"Reports",
"Shop",
"Transfer",
"User",
"Wallet",
];
final allDoSameNumber=features.length%participants.length==0;
print("Todos hacen el mismo numero de tareas: $allDoSameNumber");
final numberTasks=(features.length/participants.length).floor();
features.shuffle();
participants.asMap().forEach((k, e){
print("$e do:");
for(int i=k*numberTasks; i<numberTasks*(k+1); i++) {
print(features[i]);
}
});
if(!allDoSameNumber){
print(features.last);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment