-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev - update only source and destination square (#2)
* feat(move pieces): DONE - add ability to move pieces on the chessboard - add pawn promotion * feat(update only source and destination square): WIP * feat(highlight legal moves): DONE - highlight legal moves of selected piece fix(delete captured piece): DONE - set is_piece_moved to False after move - delete opponent's piece from the scene at the destination square - remove the need of is_chessboard_flipped parameter from ChessPieces class * feat(update only source & destination square) : WIP - add castling case - only remove piece image at destination square if it is capture * refactor(update only source & destination square): WIP - new way of getting square coordinates of a given piece name and color * chores(add requirements.txt): DONE docs(update README.md): DONE * feat(update only source & destination square): WIP - delete rooks at old location (only works in normal chess variant) * feat(update only source & destination square): DONE - deleting & drawing pieces at source & destination square is working now with chess960 variant * refactor(get fen of starting board pos): DONE
- Loading branch information
1 parent
a13615d
commit 34cc561
Showing
7 changed files
with
405 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Pylint | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.11", "3.12"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pylint | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
- name: Analysing the code with pylint | ||
run: | | ||
pylint $(git ls-files '*.py') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,5 @@ __pycache__/ | |
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
|
||
test.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
# YACS - Yet Another Chess Software | ||
|
||
> warning : currently in development. | ||
> warning : currently in development | ||
## Getting Started | ||
|
||
#### For Developers | ||
- clone this repo | ||
- go to the directory where you cloned this repo | ||
- pip install -r requirements. txt | ||
|
||
#### For Users | ||
> build file(s) yet to be created |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.