ido-barnea / chess-but-better Goto Github PK
View Code? Open in Web Editor NEWChess But Better is chess, but with a few extra layers of complexity. Try playing the game at https://chess-but-better.onrender.com.
License: Apache License 2.0
Chess But Better is chess, but with a few extra layers of complexity. Try playing the game at https://chess-but-better.onrender.com.
License: Apache License 2.0
Add chess notations (the letters and numbers signifying a piece's position) UI around the board.
When a piece is dragged, highlight all squares it can legally move to.
SVG have better performance and are cleaner to use.
It's about time we make the UI responsive.
Steps to reproduce:
The king will castle even if the rook is not in the heaven board.
Currently, the board is initialized like this:
var board = [
'r', 'b', 'n', 'q', 'k', 'n', 'b', 'r',
'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p',
'', '', '', '', '', '', '', '',
'', '', '', '', '', '', '', '',
'', '', '', '', '', '', '', '',
'', '', '', '', '', '', '', '',
'P', 'P', 'P', 'P', 'P', 'P', 'P', 'P',
'R', 'B', 'N', 'Q', 'K', 'N', 'B', 'R',
]
The lower letters signify the color black and the capital letters signify the color white.
This should change to use the appropriate class for each piece.
In the chess board the knight should start next to the rook.
Please highlight the square from which they moved and the square it is now in.
For example:
Please highlight the square from which a piece arrived in a darker color than the piece's destination square.
The code will be more understandable if all the logic would be self contained and would not depend on UI functions and variables.
The pieces will think they changed color and won't move.
Steps to reproduce:
see Castling if you need to.
There are no specific steps to reproduce the issue. If you move a piece for enough turns, it becomes undraggable.
See wikipedia.
Logs are currently written using console.log()
spread throughout the code.
Please add a UI element where logs are actively printed.
pieces unable to eat any other piece on their team except for themselves, in addition, after eating themselves their turn doesn't change to the opposite team but they gain a bonus turn for some reason?
Steps to reproduce:
Note that the bug only applies to Pawns, not other pieces of the same color and type.
The UI should show a list of revealed rules. When a new rule is revealed, it should also be added to the UI.
Give each log type a different color. For example, normal movement logs could be gray, Secret Rules logs could be purple, kill logs could be red, etc.
For some reason, sometimes, when trying to eat a piece, the following error occurs:
Uncaught TypeError: _targetCoordinates is null
isValidMove file:///home/omoor/Downloads/Chess-But-Better-main/app.js:232
onDragDrop file:///home/omoor/Downloads/Chess-But-Better-main/app.js:158
The error seems to only occur on Firefox.
To reproduce:
The game should have a multiplayer option.
Probably best to use npx nx format:check
It looks like Rooks, Bishops, and Queens can eat themselves. For now, this is unwanted behavior.
Currently, we have three elements for notations containers - one for each board.
Organize the repository file structure and make the code cleaner.
How to reproduce:
Steps to reproduce:
depends on this issue.
Steps to reproduce:
ISSUE DISCOVERED BY NAHUM WHO CAN FINALLY TEST
for example:
you can drag a chess pawn off the board by dragging him to the right/left no matter the distance from the edge of the board...
See Promotion if you need to.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.