This article deals with how to solve the problem of the 8 queens in a chessboard
This product is no longer in stock
Availability date:
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
Recipient :
* Required fields
or Cancel
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.
<p>Advertising.</p>
<p>
<script async="" src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></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>
</p>
Download Zone:
Compiled program:
Source code:
In VB.NET
In CS
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.
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.
Excelente
Buen material
NO registration required!
If the question you have has not yet been answered here, use the form below to ask something about this addon.
If the download link redirects to another product that is not described in the article or is broken, report it using our Reporting Form