Last active
March 30, 2022 20:54
-
-
Save nestorsgarzonc/daf1d7401d623794d4fab7802e90fadd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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