Questions tagged [programming]

Questions related to all aspects of writing software related to chess.

Filter by
Sorted by
Tagged with
3
votes
2answers
1k views

Is there an Android chess GUI library

I am looking for an open source chess gui library for Android that I can use in an app so that I don't need to take care of the GUI engine, but can focus on the logic behind it. I have searched for ...
7
votes
1answer
223 views

Mathematical formula to get how broad opening repertoire is

programmers and mathematicians! I'm looking for some opinions how to build meaningfull formula that represents broadness of opponent's repertoire. At the moment I do it like this: I filter all ...
14
votes
3answers
2k views

Alternative approaches to chess engine programming

As far as I understand, roughly speaking, chess engines work by: calculating all possible variations (game tree) up to some depth evaluating the final position based on some criteria (material, piece ...
3
votes
1answer
263 views

Best way to use UCI engine to play against itself

So far I used UCI only to make analysis of particular positions, sending FEN, showing multipv, analysing fixed depth/time, clearing hash for every next position. Now I would like to make the same ...
3
votes
1answer
166 views

Fathom syzygy browsing tool

I'm trying to make syzygy browsing tool fathom.exe work. If you have experience with this, please let me know. I tried million of combinations of tokens to format the position command and the program ...
3
votes
2answers
2k views

Implement a chess app for Android with Stockfish [closed]

I want to implement a chess app for Android with Stockfish. I downloaded the Stockfish binary source code, but I don't know how to use engine Please tell me how to use Stockfish engine for ...
12
votes
1answer
3k views

How to convert PGN moves to long algebraic notation (in python)?

I want to read a PGN file and then advance to a certain move number, and feed that to an UCI engine. Turns out engines work using long algebraic notation, and PGNs are in short algebraic. What is an ...
5
votes
1answer
1k views

Implementing Late Move Reduction (LMR) inside iterative deepening

Here I am trying to improve my engine, and the next feature on the list is LMR. I understood the general ideia, but since I don't want to introduce bugs and the CPW on the subject has no code, how do ...
4
votes
1answer
2k views

How to create your own opening book for your own chess engine?

I am currently working on a chess engine in Java. I am using the minimax algorithm with alpha-beta pruning to select the best move. However, it is inefficient to use the algorithm for selecting ...
2
votes
1answer
844 views

What is the number of “CPU” next to each engine's name in engines rating list? And is my computer 1CPU, 2CPU or 4CPU?

Look at this engine rating list which compares all the versions of Stockfish. After the name of each engine we can see one of these three things: 4CPU 2CPU Nothing, which probably means: 1CPU And ...
6
votes
2answers
979 views

Detect pinned pieces code

This post is a follow up of this one: C++ vs Java Engine move generation performance My goal here is to improve the performance of my move generator, which finishes perft (start_pos, 6) in 8.5 secs. ...
2
votes
1answer
243 views

Looking for SmallChess source code?

I'm currently looking for this chess engine: http://www.smallchess.com/ but the link to access it is dead. Can anyone help ?
8
votes
4answers
577 views

What is this battleship-style chess variant called?

So I've recently built and published a chess app, targeted at club chess player (like myself). The goal of the app is to educate and make chess more accessible. I'm working on an update. One of the ...
2
votes
1answer
309 views

Static exchange Evaluation (SEE) optimization

Implementing SEE extensively in my chess AI but can't seem to speed it up. Just using depth and MaxDepth. I'd like to add heuristics similar to negascout, quiescence, lazy eval. Maybe something like ...
3
votes
1answer
144 views

Query for games where the difference of player ratings was big

I want to run a query on a chess games collection which would give me games played by strong players vs weak players, let's say games from the first round of Open tournaments (Swiss system) where ...
1
vote
1answer
103 views

Best programable chess game on the market

I would like to program famous chess matches into a chess program so I can watch the matches. Is there a chess program that allows this or is there already a program that has famous chess matches we ...
4
votes
1answer
332 views

Why am I getting different behaviour between using stockfish as a child node process and a CLI called process?

Copied this question from stackoverflow. Not 100% sure it belongs here but we'll see... I am building a web interface for the stockfish chess engine using Node, and I noticed that the behaviour of ...
4
votes
2answers
3k views

I'm confused by UCI Pondering and Time Control

I'm trying to talk to a UCI engine (right now Stockfish, but more generally to all UCI engines) to write my own computer-vs-computer program (I could use Fritz, but I really want to learn more about ...
1
vote
1answer
441 views

Static Exchange Evaluation (SEE) without move undo

I read about a SEE without move/undo but they didn't share any simple pseudo code. If the next ply isn't calculated, cant see the recursive nature, Any speculators how this would work without move/...
2
votes
3answers
7k views

Check for checkmate

So I am implementing an intelligent chess agent but I can't get the checkmate working. I was wondering if there is a program that takes the chessboard notation and returns a result of yes or no to ...
3
votes
2answers
819 views

Chess engines' .dll files usable in C# projects [closed]

Are there any free/paid chess engine .dll files that could be used in a C# project as a reference?
2
votes
0answers
67 views

Adding AI knowledge base [closed]

I've built a standard chess AI and trying to add a knowledge base. A rule based system beyond negascout and eval. It has all the standard parts, and now I want to dabble in novel directions. Tried ...
13
votes
1answer
314 views

What features can I add to this FIDE chess application? (edits made 2/25)

EDIT: Most of the app is completed. Now all I have to complete is implementation of FIDE arbiters, a dynamic 3d plot (right now it only has 3 variables being plotted, no inputs affect it), adding more ...
2
votes
1answer
411 views

What's the average piece density?

In a position, the piece density is equal to the total number of pieces on the board (Whites pieces + Black pieces) divided by the total number of squares (64). At the beginning of every game, the ...
3
votes
1answer
587 views

How to use Stockfish to automatically analyze big DB of games

I would like to have Stockfish (or another strong engine) automatically analyze a very large database of games (>1M games), so that the analysis is as strong as possible while making the best use of ...
1
vote
2answers
2k views

How to measure strength of my own chess engine? [duplicate]

I'm wondering how can I estimate ELO ranking of my own written engine. I figure out that I have to connect my engine with some well known engine (via UCI protocol?) to be able to play automatically ...
6
votes
4answers
4k views

Javascript based Chess engine

In one of my previous questions I asked about comparison of the strongest chess engines and got a really good answer. While there are little or no doubts that chess engines are stronger than humans, I ...
10
votes
2answers
2k views

How can I know the Elo rating of my chess engine?

I built an uci compatible chess engine, and I would like to know its Elo rating. What is the easiest way to get it? I would like something that works both on Linux and Windows.
5
votes
1answer
6k views

Working with UCI protocol (coding)

I'm currently writing small application for a chess interested friend. The application is supposed to automatically annotate his chess games. When giving the engine a position to analyze, and a depth (...
3
votes
1answer
657 views

Reading UCI Engine output in Arena Chess

So for the most part I understand what I am looking at, but i have two questions about the first piece of data. Here is an example that I am looking at. Firstly, the first column has values 1/4, 1/8, ...
4
votes
2answers
483 views

how to evaluate the position inside the search function

using PVS Algorithm with Quiet search and zero window search what should the range of the score be (-infinity, infinity ) could it be as small as (-16000,16000) and what should the search return if it'...
3
votes
1answer
1k views

Converting square notation to algebraic notation programmatically

I'm not sure if this is the right place to put this question, but it requires a fair amount of chess background so I decided to post it here. Square notation describes moves by simply noting the ...
9
votes
1answer
1k views

Find magic numbers for bitboards

I am writing a C++ chess engine and I am looking for magic numbers for Little-Endian Rank-File Mapping bitboards to generate moves for sliding pieces. The rival chess website gives magic numbers but ...
3
votes
2answers
793 views

Could you show me the code(s) of one or more simple chess program(s) written in C#?

I am a novice in C#. I am looking for the code(s) of one or more chess program(s) written in C#. Preferably, the code(s) should be short, clean, straightforward, very simple, and use only basic things ...
1
vote
1answer
509 views

How do I use the “Mate Search” function of either Houdini 3 Pro x64 or Fritz 12? It doesn’t seem to work…

The “Mate Search” function of my two chess engines, Houdini 3 Pro x64 and Fritz 12, does not work. I click on “Levels” and then on “Mate Search”. Then a small “Mate Search” window pops up. When I ...
0
votes
1answer
694 views

What fraction of a Pawn do the most powerful chess engines (Komodo, Stockfish, Houdini, Fritz, Hiarcs, Gull, …) use as their evaluation unit?

I've heard that the most common evaluation unit is 1/100 of a Pawn. But some engines use 1/1000 of a Pawn as their evaluation unit. I've also heard that Stockfish used 1/256 of a Pawn as its ...
10
votes
2answers
1k views

Is there a USCF API?

A while ago there was a site made by NM Jonathan Hilton's father that did some analytics on player's USCF rating histories. I thought it was a pretty good site, but it disappeared. There are still ...
2
votes
2answers
166 views

Automatically annotating the beginning of my games

I play chess online and use an engine to review the game afterwards. This works well when I get out of the opening, but under my current configuration (Raptor GUI running StockFish) I don't get great ...
2
votes
3answers
2k views

How do engines read PGN?

I'm writing a small chess engine in LISP. I was trying to read some PGN file, at first it seemed like a piece of cake. But then I realized something. Most of the PGN files, don't tell which is white ...
6
votes
3answers
2k views

Is it possible to download a big txt file containing many openings?

I am creating a small chess engine for a CS class, nothing serious, i need to read the openings from a txt file or any format, i can go to websites like chessgames.com and download individual games, ...
15
votes
3answers
2k views

Open source chess playing or pgn viewing libraries

Is anyone familiar with any open source chess libraries in any language that can do any of the following: parse PGNs and/or FENs calculate valid chess moves based on position process an entire chess ...
2
votes
1answer
1k views

Programming chess engine [closed]

I'm a Java programmer, particularly an Android developer. I'm also a good chess player. My question is where do I start if I want to program a chess engine, may or may not be from scratch. Later I ...