Skip to content

Commit

Permalink
fix(DSL): fix agents instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
davidedomini committed Nov 16, 2023
1 parent c1eb357 commit 2490106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dsl-core/src/main/scala/it/unibo/scarlib/dsl/DSL.scala
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ object DSL {
def CTDELearningSystem(init: => Unit)(implicit context: ExecutionContext, encoding: NeuralNetworkEncoding[State]): CTDESystem = {
init
var agentsSeq: Seq[CTDEAgent] = Seq.empty
for (n <- 0 to nAgents) {
for (n <- 0 until nAgents) {
agentsSeq = agentsSeq :+ new CTDEAgent(n, env.get, actionSpace, ds.get)
}
new CTDESystem(agentsSeq, env.get, ds.get, actionSpace, lc.get)
Expand Down

0 comments on commit 2490106

Please sign in to comment.