Attempts to fix genetic training
This commit is contained in:
parent
fbed641470
commit
93e71ff336
|
@ -61,6 +61,7 @@ proc place*(self: TrisGame, tile: TileKind, x, y: int) =
|
||||||
## Places a tile onto the playing board
|
## Places a tile onto the playing board
|
||||||
if TileKind(self.map[x, y]) == Empty:
|
if TileKind(self.map[x, y]) == Empty:
|
||||||
self.map[x, y] = int(tile)
|
self.map[x, y] = int(tile)
|
||||||
|
if tile == Self:
|
||||||
inc(self.moves)
|
inc(self.moves)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue