June 21st, 2024

Using Stockfish to identify ideal squares

This blog post explores using Stockfish to determine optimal squares for chess pieces. The program developed evaluates positions, showing potential for positional analysis despite some limitations and areas for improvement.

Read original articleLink Icon
Using Stockfish to identify ideal squares

This blog post by jk_182 discusses using Stockfish to identify ideal squares for chess pieces. The author describes a program they developed to determine the best squares for pieces based on evaluations and material considerations. The program was tested on various positions from chess games, showing promising results for knights, bishops, and rooks. However, the author acknowledges limitations in the program, such as unrealistic square suggestions and the need to consider pawn moves for piece activity. Future improvements could involve quantifying the strength of a piece on a square and exploring the concept of the worst-placed piece in a position. The author invites feedback on these ideas and their method for finding ideal squares. Overall, the program shows potential for aiding in positional analysis in chess.

Related

Algorithmic fitting of Japanese candy

Algorithmic fitting of Japanese candy

The article discusses algorithmically fitting Japanese candies into a subscription box for Candy Japan. The programmer developed an algorithm considering candy sizes, permutations, and NP-hard complexity. Despite challenges, the project led to discontinuing Candy Japan due to postal rate impacts.

Avoiding Emacs Bankruptcy

Avoiding Emacs Bankruptcy

Avoid "Emacs bankruptcy" by choosing efficient packages, deleting unnecessary configurations, and focusing on Emacs's core benefits. Prioritize power-to-weight ratio to prevent slowdowns and maintenance issues. Regularly reassess for a streamlined setup.

I've stopped using box plots (2021)

I've stopped using box plots (2021)

The author critiques box plots for being unintuitive and prone to misinterpretation, advocating for simpler alternatives like strip plots to effectively communicate distribution insights without confusing audiences.

How to Design an ISA

How to Design an ISA

The article explores designing Instruction Set Architectures (ISAs), focusing on RISC-V's rise. David Chisnall highlights ISA's role as a bridge between compilers and microarchitecture, emphasizing the challenges and importance of a well-designed ISA for optimal performance in various computing environments.

Homegrown Rendering with Rust

Homegrown Rendering with Rust

Embark Studios develops a creative platform for user-generated content, emphasizing gameplay over graphics. They leverage Rust for 3D rendering, introducing the experimental "kajiya" renderer for learning purposes. The team aims to simplify rendering for user-generated content, utilizing Vulkan API and Rust's versatility for GPU programming. They seek to enhance Rust's ecosystem for GPU programming.

Link Icon 4 comments
By @imrehg - 4 months
Very interesting, especially when compared to shogi (Japanese chess), where captured pieces can be dropped in anywhere on the board. So for shogi players this "ideal square" calculation can be even more natural and more flexible as well: besides the "getting existing pieces from A to B", the "drop on B" is a lot simpler. No wonder that piece exchanges (so there is something in the hand to drop) are basic feature of the gameplay.

(Source: being a fan of shogi but very very very early in my learning journey, so experts would likely describe this differently.)

By @rhdunn - 4 months
The unrealistic squares issue could be resolved by using legal moves for the piece. You could then evaluate the best for 1 move, 2 moves, up to e.g. 4 moves. You could also eliminate moves that visit a square already reached by a previous square to avoid duplicates.

It may be interesting to apply weights to reduce the score of squares many moves away. This would need to handle advantageous positions like check or checkmate.

By @greymalik - 4 months
> This exercise involves looking at a piece and imagining which square it would be best placed on, without initially worrying about how to get it there.

Without using Stockfish, how does one do this in their head? What rubric can you use to evaluate whether one square is better than another? (I’m a very low level player, obviously,)

By @notarealllama - 4 months
Nice, long time lichess player including blitz arenas but had no idea they had articles.

Some interesting analysis here and how to approach the problem domain (pawn structure as a concern) but that first example, there is just no way to get that knight there in any reasonable way. Talking about unrealistic moves.