diff options
| author | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2016-03-21 18:02:31 +0100 |
|---|---|---|
| committer | manzerbredes <loic.guegan_secondary@yahoo.fr> | 2016-03-21 18:02:31 +0100 |
| commit | 0e1704bbcb3279e4779f09c06127a7c76cc8fb04 (patch) | |
| tree | f84e7d18e76df053c9bcb194da163f278873eada /structure/Grid.java | |
| parent | f453154938a0e1a3ba387ff1d7c0630e54b23855 (diff) | |
Add live
Diffstat (limited to 'structure/Grid.java')
| -rw-r--r-- | structure/Grid.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/structure/Grid.java b/structure/Grid.java index 20f2a4f..0255909 100644 --- a/structure/Grid.java +++ b/structure/Grid.java @@ -23,6 +23,14 @@ public class Grid { this.grid.add(new Router()); } + this.buildRandomLink(); + + this.buildLinks(); + } + + + + public void buildRandomLink(){ // First line this.buildLinkWithRandomWeight(grid.get(0), grid.get(1)); this.buildLinkWithRandomWeight(grid.get(1), grid.get(2)); @@ -47,10 +55,8 @@ public class Grid { this.buildLinkWithRandomWeight(grid.get(2), grid.get(5)); this.buildLinkWithRandomWeight(grid.get(5), grid.get(8)); - this.buildLinks(); } - private void buildLinks(){ // Link1 |
