diff options
author | eug-vs <eugene@eug-vs.xyz> | 2022-03-12 15:47:58 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2022-03-12 15:47:58 +0300 |
commit | 668985e6ed78add10e3a0eb94eff283d59b3971f (patch) | |
tree | f3a379f4fba55817460f6bed00ba17dee0ffeff1 /src/Board/Board.ts | |
parent | 26b15f6ef72ca983e5fb114fb36bf0c0860a91ea (diff) | |
download | carcassonne-engine-ts-668985e6ed78add10e3a0eb94eff283d59b3971f.tar.gz |
refactor: rename Feature.Emtpy -> Grass
Diffstat (limited to 'src/Board/Board.ts')
-rw-r--r-- | src/Board/Board.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Board/Board.ts b/src/Board/Board.ts index 59afd31..2c4a215 100644 --- a/src/Board/Board.ts +++ b/src/Board/Board.ts @@ -2,14 +2,14 @@ import _ from 'lodash'; import Tile, { Feature } from '../Tile/Tile'; import TileOnBoard from '../Tile/TileOnBoard'; -const { Road, Town, Empty } = Feature; +const { Road, Town, Grass } = Feature; export default class Board { tiles: TileOnBoard[]; constructor(tiles?: TileOnBoard[]) { if (tiles) this.tiles = tiles; - else this.tiles = [new TileOnBoard(Road, [Town, Road, Empty, Road])] + else this.tiles = [new TileOnBoard(Road, [Town, Road, Grass, Road])] } print() { |