Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1e41c5dda9 | ||
|
|
ac219f07ec |
@@ -257,22 +257,16 @@ function MakePairsV3(callback){
|
||||
tree = [];
|
||||
done=false;
|
||||
|
||||
while(max_pairs>0){
|
||||
for (let i=0;i<names.length;i++){
|
||||
for (let j=0;j<=i;j++){
|
||||
if (matrix[i][j] === 0){
|
||||
count_pairs(i,j,5);
|
||||
if (done) break;
|
||||
}
|
||||
for (let i=0;i<names.length;i++){
|
||||
for (let j=0;j<=i;j++){
|
||||
if (matrix[i][j] === 0){
|
||||
count_pairs(i,j,5);
|
||||
if (done) break;
|
||||
}
|
||||
if (done) break;
|
||||
}
|
||||
if (done) break;
|
||||
max_pairs--;
|
||||
}
|
||||
|
||||
|
||||
|
||||
let max_count_index = 0;
|
||||
|
||||
for (let i=0;i<tree.length;i++){
|
||||
|
||||
Reference in New Issue
Block a user