From a2440fa5d57c06e0d1df3881a76c9fe591d8ce49 Mon Sep 17 00:00:00 2001 From: dannyk Date: Wed, 6 Sep 2023 20:04:10 +0300 Subject: [PATCH] comments out 0 neighbor optimization --- src/Agent/Agent.java | 2 +- src/Main.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Agent/Agent.java b/src/Agent/Agent.java index ea1bc81..5e3fa2c 100644 --- a/src/Agent/Agent.java +++ b/src/Agent/Agent.java @@ -60,7 +60,7 @@ public boolean hasStrategyChanged(){ * Reads messages from neighbors, picks a strategy, sends decisions, and triggers the next agent. */ public void run(){ - if(neighbors.isEmpty()) return; +// if(neighbors.isEmpty()) return; /* 1. Wait for play message, and read messages for neighbors */ readMessages(); diff --git a/src/Main.java b/src/Main.java index 55aad7e..e35e854 100644 --- a/src/Main.java +++ b/src/Main.java @@ -3,7 +3,7 @@ import Logger.*; public class Main { - private static final int NUMBER_OF_GAMES = 10; + private static final int NUMBER_OF_GAMES = 100; private static final Logger logger = new Logger("Main");