Skip to main content

Questions tagged [chess]

This tag is for concepts involving the game of Chess.

7 votes
1 answer
875 views

Move generation in my C++ chess engine [closed]

I am building a chess engine in C++ and currently working on the move generation. To measure performance I use perft, but my main goal is to make the move generator itself faster. I already use ...
Viliam Holly's user avatar
4 votes
0 answers
110 views

Chess engine in FORTRAN 90

...
Dean Menezes's user avatar
7 votes
2 answers
1k views

chess game: loading images for the rooks

I was ok with my pawn code but the rook code is very long and I want it to make the code shorter and cleaner and the same thing with my bishops, knights, kings and queens. ...
Hai Khuc's user avatar
2 votes
2 answers
314 views

A Java class for checking whether a white king is under checkmate

(I have this chess engine in Java; under construction.) This post presents my logic for investigating whether the white king is in checkmate. ...
coderodde's user avatar
  • 31.9k
6 votes
3 answers
974 views

A chess engine in Java: generating white pawn moves - take II

Intro This post continues the A chess engine in Java: generating white pawn moves. I was advised to choose between efficiency and type safety. Since this is my first attempt at a chess engine, I have ...
coderodde's user avatar
  • 31.9k
9 votes
4 answers
2k views

A chess engine in Java: generating white pawn moves

(This post has now a continuation.) I decided to embark on implementing my own chess engine. The first (and perhaps most demanding) part of that endeavour is generating child states out of a given ...
coderodde's user avatar
  • 31.9k
12 votes
3 answers
2k views

Chess game: board and moves

I'd like to preface this by saying firstly, my code is absolutely nowhere near complete, and secondly that I am essentially brand new to coding and this is my first real project. I like to be thrown ...
Liam V's user avatar
  • 121
6 votes
3 answers
724 views

Chess_Board Validator from Automate the Boring Stuff Ch 5

I recently started learning python and came up with this solution to the "Chess Dictionary Validator" exercise which is given in the end of chapter 5 in the book "Automate the Boring ...
Ro14514's user avatar
  • 63
6 votes
1 answer
71 views

Chessboard configuartions with no possible capture on the next move

THE TASK: Given an NxM "chess"board and Q,R,B,K where Q is the number of queens, R the number of rooks, B the number of bishops, and K the number of knights find out how many possible ...
Wow1345's user avatar
  • 121
2 votes
1 answer
189 views

C# chess engine performance

I am creating my own bitboard chess engine in C#. I am trying to optimize my make move, unmake move, and move generating functions to get a good fast base. My C# skills are average and got some tips ...
eligolf's user avatar
  • 199
11 votes
2 answers
3k views

Faster chess engine in python (with move ordering algorithm?)

I, an amateur coder, have been trying to code a chess engine with python as part of a larger research project. I started by following this tutorial (turns out creator of said tutorial has a github of ...
pjq42's user avatar
  • 211
2 votes
1 answer
207 views

C++ Chess Engine - Initialization of Magic Bitboard Attack Tables

I've just completed the generation of magic bitboard attack tables for bishops and rooks in my C++ chess engine. Main Questions The functions generateMagicNumbers()...
Hunter's user avatar
  • 259
2 votes
0 answers
280 views

Minimal Chess Web GUI with Flask

Being a big chess fan, I finally started developing my own chess tool, however I'm already quite dissatisfied with where it's going... folder structure: ...
Mantas Kandratavičius's user avatar
8 votes
2 answers
2k views

Checking if a chessboard presented as a dictionary, is a valid chessboard

Here's my solution to the Chess Dictionary Validator project in Automate the boring stuff by Al Sweigart. I'd love to know how I can improve this code so that it's more efficient. Thank you Function ...
Nova's user avatar
  • 113
6 votes
4 answers
307 views

2-Player Chess in WinForms V.2 (With Separation of Concerns)

Introduction After getting initial feedback on my first working version of this Chess WinForms game here, I have used the suggestions and comments from there to come up with this new version, trying ...
Shinglington's user avatar

15 30 50 per page
1
2 3 4 5
14