Closed sparshk closed 6 years ago
Also, running your code doesn't display the chess board as expected. So, I'm not even sure about the scope of this pull request.
Why are we doing separate getW() and getB() We can just pass an argument for the color
It's indented properly in my IDE. But when I upload it on repo, it loses it's indentation. I couldn't understand why.
When you run the table class, it does display the chess board with the pieces in their positions.
I'll make the other changes and get back to you soon.
Well, you should update the text panel on chess tab so that the pieces are displayed there in. Not in a different frame. About the indentation, you've mixed up tabs and spaces. To maintain consistency, follow whatever the other files are doing so.
Okay. I'll update it. You've checked the chess board right?
The two classes Pieces and Table have been created. The Table class represents the chess board and the pieces. The Pieces class contains various methods such as getWSoldier(), getWBishop() etc. that return the respective image files to the assignTilePieceIcon() function of the sub-class TilePanel of the Table class.