Attempts to fix genetic training

This commit is contained in:
Mattia Giambirtone 2022-12-23 09:41:27 +01:00 committed by Nocturn9x
parent fbed641470
commit 93e71ff336
1 changed files with 1 additions and 0 deletions

View File

@ -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)