diff options
author | eug-vs <eugene@eug-vs.xyz> | 2022-03-12 14:36:31 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2022-03-12 14:37:11 +0300 |
commit | 8aa2213390e01996e3f9682abfd5910c698df0e2 (patch) | |
tree | 86be278563cf285392c58e3938d002a5b288d7a5 /src/Cell/Cell.test.ts | |
parent | 2b6ba3f395cb62bef07f2cc12a00dab0c1cf2f04 (diff) | |
download | carcassonne-engine-ts-8aa2213390e01996e3f9682abfd5910c698df0e2.tar.gz |
feat: add initial Board class
Diffstat (limited to 'src/Cell/Cell.test.ts')
-rw-r--r-- | src/Cell/Cell.test.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Cell/Cell.test.ts b/src/Cell/Cell.test.ts index 0931130..be6f475 100644 --- a/src/Cell/Cell.test.ts +++ b/src/Cell/Cell.test.ts @@ -41,6 +41,9 @@ describe('Cell', () => { const attachTo = new Cell(Town, [Road, Town, Town, Road]) const cell = new Cell(Road, [Empty, Road, Road, Empty]) + cell.print(); + attachTo.print(); + const attachments = attachTo.getAttachments(cell); assert.strictEqual(attachments.length, 4); assert.deepStrictEqual(attachments[0], { side: 0, rotation: 0, cell, attachTo }); |