Attempts to fix genetic training
This commit is contained in:
parent
58dbc85ac6
commit
d59e661453
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue