From 0e1704bbcb3279e4779f09c06127a7c76cc8fb04 Mon Sep 17 00:00:00 2001 From: manzerbredes Date: Mon, 21 Mar 2016 18:02:31 +0100 Subject: Add live --- structure/Grid.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'structure/Grid.java') 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 -- cgit v1.2.3