From 93e71ff33612bc8db8f8b2fef028f108528def98 Mon Sep 17 00:00:00 2001 From: Mattia Giambirtone Date: Fri, 23 Dec 2022 09:41:27 +0100 Subject: [PATCH] Attempts to fix genetic training --- src/nn/util/tris.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nn/util/tris.nim b/src/nn/util/tris.nim index dcab9a6..7ae1baa 100644 --- a/src/nn/util/tris.nim +++ b/src/nn/util/tris.nim @@ -61,6 +61,7 @@ proc place*(self: TrisGame, tile: TileKind, x, y: int) = ## Places a tile onto the playing board if TileKind(self.map[x, y]) == Empty: self.map[x, y] = int(tile) + if tile == Self: inc(self.moves)