Posts by Hunteros • 155 points
2 posts
-
5
votes1
answer235
viewsQ: Creation of Table of Games
I wrote this code to organize the teams that will face each other in the Cup: <script> var dados = { "grupo1" : [ {"selecao" : [{"nome":"brasil"},{"resultado" : [{"a":0},{"a":4},{"a":2}]}]},…
-
10
votes1
answer3615
viewsQ: Generate list of possible combinations
We have 4 teams: Time 1 | Time 2 | Time 3 | Time 4 I would like to know how to automatically build a list of possible combinations of games between these teams. Example: Time 1 x Time 2 | Time 1 x…