This tag is for chess related programming. You probably want to also include some more general tags such as [tag:algorithms], [tag:data-structures], [tag:application-design] if you are asking about chess game programming.
11
votes
10answers
5k views
Best approach for writing a chess engine? [closed]
I'm a chess enthusiast and a programmer. I recently decided to start making a chess engine using my chess and programming knowledge. So here's my question:
What language (I'm familiar with Java, C++ ...
11
votes
9answers
840 views
Learning the rules of chess
A similar question asks whether a computer can learn to play optimally in chess by analyzing thousands of games.
If a machine can look at the state of the board for a few games of chess (or a few ...
10
votes
7answers
902 views
Chess as a team building exercise for software developers
The last place I worked wasn't a particularly great place and there were more than a few nights where we were working late into the evening trying to meet our sprints. The team while stressed out got ...
10
votes
5answers
2k views
Which paradigm to use for writing chess engine?
If you were going to write a chess game engine, what programming paradigm would you use (OOP, procedural, etc) and why whould you choose it ? By chess engine, I mean the portion of a program that ...
9
votes
4answers
2k views
N queens, X by Y board decision problem interview question
I was asked the following question in an interview today and I've been thinking about it ever since. I was not able to answer it and haven't been able to find a solution online.
Given a chess board ...
7
votes
3answers
346 views
How to decompose / model a chessboard
As someone new to programming, I am building a chess web application in JavaScript, both for fun and to learn more about design patterns. I keep running into a wall, which is how to decompose the ...
4
votes
4answers
247 views
Implementation of algorithm to generate chess positions
I am interested in developing a program that generates an endgame table-base for the chess.
I have gone through the technical papers of the greats like Shannon and Ken Thompson. I have found that ...
3
votes
3answers
370 views
Language for Chess Position Evaluation (experimental) [closed]
My aim is to, via pattern analysis and statistics, (as well as piece mobility and position) build a chess position evaluation analyzer (rather than simply going brute force ply-searching).
Id like ...
2
votes
3answers
491 views
How does a chess engine decide what move to make?
I'm writing a simple chess engine in LISP. I actually know how the engine decide the move, it evaluates and reads some opening books. But that's not what i mean. This is my design.
57 58 59 60 61 62 ...
2
votes
1answer
151 views
Implementation of chess endgame engine without Endgame Tablebases
I'm interested in creating an chess endgame solving engine.
The endgames in chess are usually solved using the endgame table-bases generated by retrograde algorithm.
I have found that Artificial ...
2
votes
1answer
299 views
Which programming guidelines for a chess network application?
I'd like to implement a simple chess peer to peer network application : one instance of the program may register friends player, and when one friend is "connected" (I mean both available by another ...
1
vote
3answers
240 views
About classes and their valid states
I get stuck each time I need to write a constructor for any class I design. The reason is that I am not sure what should go into a constructor and what should not.
On googling for this, I got the ...
1
vote
1answer
96 views
Implementation/Representation of Symmetries in Chessboards
In a 8X8 chessboard, I was wondering how to implement the symmetry of the board.
A lot of positions are just mirrors or rotations of one another (with no pawns or castling capabilities left the ...
1
vote
1answer
639 views
Writing a game engine using javascript
..by this I mean a logic handler for a chess game. Basically validating a move and checking if somebody has won.
Now ignore the complexity of the game(if you can..) I'd like some sort of psuedo code ...
0
votes
5answers
846 views
What would be the fastest way of storing or calculating legal move sets for chess pieces?
For example if a move is attempted I could just loop through a list of legal moves and compare the x,y but I have to write logic to calculate those at least every time the piece is moved.
Or, I can ...