Problem of the 8 queens in VB.NET and CSharp

This article deals with how to solve the problem of the 8 queens in a chessboard

Problem of the 8 queens

The problem of the eight queens is a pastime in which eight queens are put on the board without being threatened. It was proposed by the German chess player Max Bezzel in 1848. The game of the 8 queens consists of putting eight queens on a chessboard without being threatened between them.

In this article we offer a more visual solution to this problem using computer software. In the small program we did we can see the combinations that the computer uses to find the results. At the end, all the solutions found are listed.

The operation is very simple, it scans every square of the board, you can see which is checking because the letter "r" is placed, if in that position there is no queen or not in the path of movement of another queen is assigned to That position with the letter "R".

In summary:

[R]: Box where possibly the queen will be assigned.

[R]: Box with assigned position of queen.

[.]: Box marked as a path of queen movement.

The algorithm that is used is not the most efficient, but if we use pure brute force (a well-known algorithm among programmers).

It is developed in VB.NET and C# in console mode, making it easy to read and study.

We had a lot of fun developing it and well below you can download the source code and the executable.

<script async="" src="//"></script>
<ins class="adsbygoogle" style="display: block; text-align: center;" data-ad-layout="in-article" data-ad-format="fluid" data-ad-client="ca-pub-2149362608867620" data-ad-slot="4760603442"></ins>
<script>// <![CDATA[
     (adsbygoogle = window.adsbygoogle || []).push({});
// ]]></script>

Download Zone:

Compiled program:

download here totally free

Source code:


download here totally free


download here toatally free

Completely free of viruses and malicious software, so do not wait any longer to download it now.

Do not forget to give us an opinion about the program, to improve the content.

Follow us on our social networks

 NOTE: Do not forget to follow us on our facebook and twitter social networks so that you become part of our community and receive the notification every time we post something new, so you will not miss anything.



Buen material

    Write your review!

    Write a review

    Problem of the 8 queens in VB.NET and CSharp

    Problem of the 8 queens in VB.NET and CSharp

    This article deals with how to solve the problem of the 8 queens in a chessboard

    Ask a question

    NO registration required!

    If the question you have has not yet been answered here, use the form below to ask something about this addon.

    *(Required to be notified when an answer is available)

    If the download link redirects to another product that is not described in the article or is broken, report it using our Reporting Form