Click here to Skip to main content
15,909,503 members
Everything / Chess

Chess

chess

Great Reads

by Thomas Daniels
This article is a solution to CodeProject's Weekly Challenge: "A knight on a chess board".
by Jacques Fournier
SrcChess is a chess program built in C#
by Mitchell J.
Introducing Wearable Chess - a complete, open-source chess app for Android Wearables!

Latest Articles

by Jacques Fournier
SrcChess is a chess program built in C#
by Thomas Daniels
This article is a solution to CodeProject's Weekly Challenge: "A knight on a chess board".
by Mitchell J.
Introducing Wearable Chess - a complete, open-source chess app for Android Wearables!

All Articles

Sort by Score

Chess 

21 Jun 2013 by OriginalGriff
No.That is far, far too big a "question" to answer in a small text box!If you need an explanation, then start with the website you took the code from - if they don't explain it, they might if you ask. Certainly mm they will have a better idea of how it works than were do without a large...
1 Jul 2020 by Greg Utas
I am not a Python programmer, so I can't help you with code. However, a few observations. - You need to know the color of the piece that occupies a square. - You need two flags for each side, to indicate whether O-O and O-O-O are legal. - You...
11 Oct 2012 by Muhammad Idrees GS
Hi, I am working on a chess application and need to create opening book, a file which could contains a millions of moves and positions. we have 64 squres, some of which have occupied by pieces while some are empty. Let we represent our pieces with following bits (using to Huffman encoding...
11 Oct 2012 by Frederico Barbosa
Try this website:http://stackoverflow.com/questions/1831386/programmer-puzzle-encoding-a-chess-board-state-throughout-a-game[^]and more specifically this one:http://www.cforcoding.com/2009/12/programming-puzzles-chess-positions-and.html[^]
3 May 2013 by Sandeep Mewara
It does not work like this here.Here is what is expected of enquirers:1. TRY first what you want to do! You may find that it's not that hard.2. Formulate what was done by you that looks like an issue/not working. Try them and tell if you face issues.Members will be more than happy...
26 May 2014 by Peter Leow
We are here to help people to learn to fix coding problem not to supply code.
7 Jun 2014 by OriginalGriff
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.And that means we don't do your...
7 Jun 2014 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Here we answer specific questions which members face during programming.If you face any difficulty while coding, feel free to come back here and ask another question with specific issue describing the scenario. Members will be happy to help you then. :)
8 Jun 2014 by Kornfeld Eliyahu Peter
There is no such a thing 'simple' chess engine/game. Chess - by it's definition - is a fairly complicated game and therefore an chess engine too complicated...You have two options - do some Google and grab someone's work (shame on you)- do - a lot of - research and learn about chess...
8 Jun 2014 by Volynsky Alex
Hi Member 10871226302!I remember time when I was the student...Please show for your daughter these examples:Yet Another Chess Board Control[^]A Chess Program using C#[^]I hope it will help :)
6 Jul 2014 by mishael harry
Please am developing a chess game using Java. I am having problems trying to display captured chess pieces, this pieces are held in a bufferedImage. when i run and print the variable of the bufferedImage it isn't null and doesn't display the image on the JPanel.In addition my list of...
11 Jul 2014 by Osmund Francis
Without access to a demo program, I cannot tell for sure what the cause of your problem is.You can try the following: minimize your chess program, and the maximize it again. If the capture pieces show correctly, then your problem is simply that you need to set the bounds of the JPanel you...
30 Jul 2018 by Patrice T
Quote: How to compile in java? Chess game Exactly the same way as any other Java program. Quote: want to try create chess game,, but when i run Main class no other display,, You should think about using a debugger to see what your code is really doing. Your code do not behave the way you...
22 Sep 2018 by Richard MacCutchan
object.writeObject(new Board()); Why are you trying to save a new Board object, instead of the one that exists in the application? You also need to explain exactly what runtime errors you get, we cannot guess.
22 Sep 2018 by Richard MacCutchan
This is the same problem as your previous question on the subject. In your Continue section you do this: Board object = (Board)objectInputStream.readObject(); So as soon as you exit this routine that object goes out of scope and gets thrown away. Go to the Java reference and learn about...
1 Jul 2020 by mohamaddibassy123
This can move function checks if your piece(comprised of two coordinates on the board created from a class called spot) is on the board(8 by 8 matrix), intended landing spot/area is unoccupied and if it is occupied then it must be by the opposing...
10 Jul 2020 by Greg Utas
If you're looking for a way to describe the initial position, FEN is commonly used: What are PGN & FEN?[^] If you're looking for actual code, I can't help you because I'm not a Python programmer.
22 Jul 2020 by mohamaddibassy123
I've implemented my chess board using my chess pieces position to update my board. The problem with this implementation is that the board doesn't store the chess pieces, it interfaces it. This means after each turn I would have to wipe the board...
24 Jul 2020 by mohamaddibassy123
def resetBoard(self): # Initializw Black Pieces # self.board[0][0] = Spot(0,0,piece) # black rooks self.board[0][1] = Spot(0, 1, piece) # black knight # self.board[0][2] = Spot(0,2,piece) # black bishops ...
24 Jul 2020 by Patrice T
Quote: How do I place my reset board in a CSV file? This is your design, you define what you need in the file and how it appear in the csv. Then you program a routine to load the configuration. If the goal is to save a few lines of code, the...
24 Jul 2020 by Richard MacCutchan
See csv — CSV File Reading and Writing — Python 3.8.5 documentation[^].
5 Aug 2020 by mohamaddibassy123
My class spot takes in an x and y value to create coordinates on my board. I have a function responsible for moving my chess piece from its current set of coordinates to a new set of coordinates by subtracting the starting x and ending x and the...
5 Aug 2020 by KriShna RaJendra N PraSad
Hope the Below link is help. stackoverflow.com/questions/23914583/python-classes-duplicate-instances
14 Mar 2017 by Thomas Daniels
This article is a solution to CodeProject's Weekly Challenge: "A knight on a chess board".
2 Jan 2024 by Jacques Fournier
SrcChess is a chess program built in C#
14 Oct 2015 by Mitchell J.
Introducing Wearable Chess - a complete, open-source chess app for Android Wearables!
8 Jun 2014 by OriginalGriff
When you posted this yesterday, you were told:We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on...
29 Jul 2018 by Member 13906640
how do i write in the Main class to display it ?? so when start the main is output; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ...
30 Jul 2018 by Member 13906640
i want to try create chess game,, but when i run Main class no other display,, how to display like : - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - WP - - - - - - - - #ChessPiece Class is still empty, What I have tried: Pawn...
3 May 2013 by cafdat.hoang
How to Create a Chess Board in OpenGLRead more: How to Create a Chess Board in OpenGL | eHow.com http://www.ehow.com/how_12226466_create-chess-board-opengl.html#ixzz2SHm4yzHA
7 Jun 2014 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
There are many. See here[^].
22 Sep 2018 by Member 13620781
I want to save the current position of the pieces on the board after the user clicks on the save button. I have implemented 'Serializable' in the Board class but when I click on the save button, there are some runtime errors. Can you help me solve this kind of problem? I'm new to this java GUI....
22 Sep 2018 by Member 13620781
I have tried to save the game data into the file using Serializable and now I want to load the saved data from the file into a new JFrame. Actually what I'm trying to do is if the player clicks on continue button, the game will start from the state where it was left off and have been saved when...
10 Jul 2020 by mohamaddibassy123
For my Chess game I have a function that handles the initial pieces distribution. I thought placing it in a CSV file would improve code readability and make it easier to maintain.�I am currently having trouble Googling for example references....