لینک کوتاه : https://en.magicfile.ir/?p=2890
دانلود سورس و کد بازی سودوکو SuDoku حل کننده و ساخت در سی شارپ c#
Today, in this post, we have prepared for you, dear users of the website, a magic file of a source and code for the SuDoku game, a solver and made in C#, ready for download.
Well, SuDoku is not a new game and there are many software for playing SuDoku already available on the net. I tried my hand at developing SuDoku a year ago and after a long time I am sharing it with everyone.
You must know the rules of SuDoku. Let me put this rule into a precise definition that will help you understand the code:
In SuDoku, there is a square grid with p 4 squares, which is generally p=3. The larger square grid has dimensions p 2 xp 2. Each larger square grid has a p 2 box of pxp dimensions. The larger grid is partially filled. The rule is to fill the grid so that each horizontal row, each vertical column, and each pxp box contains digits from 1 to n (n=p 2 ), without repeating numbers in the same row, column, or box. I have named this rule as the principle of uniqueness.
نمونه تصاویر در زمان اجرا سورس و کد SuDoku
طراحی اساساً شامل سه بخش است:
- SuDoku را حل کنید
- SuDoku را ایجاد کند
- گرافیک (بخش مهمی برای جذاب کردن رابط کاربری)
الگوریتم حل
The easiest way to solve SuDoku is to mark all possible values (1-n) of a square. Then, based on the "principle of uniqueness", discard the numbers that cannot be filled in that square. When a square is left with only one number or a number is such that it cannot be in other squares of the row or column or box related to the square, fill the number and remove the possibility of the number from the squares of the row, column. And the box belonging to the square has recently been filled. With this method, a unique number is found for all squares.
برای شما کاربر عزیز پیشنهاد دانلود داده می شود.