Skip to content

Board development #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 40 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
d42ea5c
Delete `ObjectUtilities`
Szaroslav Aug 27, 2023
3a5371d
Move direction namespace to another module
Szaroslav Aug 27, 2023
47f6c87
Refactor direction
Szaroslav Aug 27, 2023
90d7314
Init `LongRangeMovement` module
Szaroslav Aug 27, 2023
7a67f7b
Create `Queen` piece
Szaroslav Aug 27, 2023
9f1f3e6
Create player's color enum
Szaroslav Aug 27, 2023
3430a29
Merge branch `development` into `refactor-pieces`
Szaroslav Aug 29, 2023
270d24a
Refactor piece movements
Szaroslav Sep 2, 2023
1995e67
Add `preUpdateMoves` method
Szaroslav Sep 2, 2023
ff26445
Refactor pawn
Szaroslav Sep 3, 2023
e46b667
Modified `Board` and `Game` classes
kpiotr6 Sep 4, 2023
1149f45
Merge branch 'development' of https://github.com/laserchess/typescrip…
kpiotr6 Sep 4, 2023
93ee1f1
Finished basic board logic
kpiotr6 Sep 5, 2023
f9fdd6c
Modified `PieceMovement` class
kpiotr6 Sep 6, 2023
6242e9b
Refactored `KingMovement` and `KnightMovement`
kpiotr6 Sep 6, 2023
f3ee7e1
Merge branch 'refactor-pieces' into develop-board
kpiotr6 Sep 6, 2023
ce1296d
Finished refactoring `Board`, `Tile` classes and `Movement` classes
kpiotr6 Sep 8, 2023
8657edb
Change type of tiles field in `Board` to `Map<BoardVector2d, Piece>`
kpiotr6 Sep 10, 2023
8223d51
Updated tests for `Vector2d` and its subclasses
kpiotr6 Sep 11, 2023
c33a570
Created `PawnPieceFactory` and `MirrorPieceFactory`.
kpiotr6 Sep 12, 2023
e0081a1
Merge branch 'develop-board' of https://github.com/laserchess/typescr…
kpiotr6 Sep 12, 2023
40a71c5
Created `PieceGenerator` instead of factories
kpiotr6 Sep 13, 2023
88cd3db
Finished long range pieces.
kpiotr6 Sep 14, 2023
0ab3890
Created tests for `DirectionUtils`
kpiotr6 Sep 14, 2023
043f0f4
Refactored vectors classes, by setting their return type to `typeof t…
kpiotr6 Sep 16, 2023
215b8ba
Added tests for`Generator`.
kpiotr6 Sep 16, 2023
a55fe09
Added tests for `Integer`
kpiotr6 Sep 17, 2023
06f8559
Added tests for`Tile` class.
kpiotr6 Sep 17, 2023
73d0ddc
Added `isMoveCommandLegal` in `Board`
kpiotr6 Sep 19, 2023
d1e18b3
Added basic test for `Knight`, covering abstract class `Piece` methods.
kpiotr6 Sep 19, 2023
968818a
Finished tests for `Knight`, created tests for `Mirror`
kpiotr6 Sep 22, 2023
7f98050
Fix Vitest VSCode extension
Szaroslav Sep 22, 2023
d09bcee
Merge pull request #15 from laserchess/fix-vitest-vscode
kpiotr6 Sep 22, 2023
350793c
Created tests for `Pawn`.
kpiotr6 Sep 22, 2023
37502db
Finished tests for `Pawn`.
kpiotr6 Sep 30, 2023
62f5b09
Added tests for `King`.
kpiotr6 Oct 1, 2023
5a1daeb
Added tests for `Rook`.
kpiotr6 Oct 1, 2023
401fd6b
Added tests for `Bishop`.
kpiotr6 Oct 1, 2023
ee9d798
Added tests for `Queen`.
kpiotr6 Oct 1, 2023
5b11680
Created basic tests for `Board`.
kpiotr6 Oct 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
"@typescript-eslint"
],
"rules": {}
}
}
11 changes: 9 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Dependency directories
node_modules/
jspm_packages/
bower_components
bower_components/

# dotenv environment variable files
.env
Expand All @@ -14,6 +14,13 @@ bower_components
*.tsbuildinfo

# Visual Studio Code
.vscode/
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets
.history/
*.vsix

build/
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"vitest.commandLine": "npx vitest",
"editor.tabSize": 2,
"javascript.preferences.importModuleSpecifier": "non-relative",
}
12 changes: 0 additions & 12 deletions jest.config.ts

This file was deleted.

3,374 changes: 2,945 additions & 429 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@
"jsdoc": "^4.0.2",
"ts-node": "^10.9.1"
}
}
}
Loading