{"id":2462,"date":"2020-03-08T09:36:27","date_gmt":"2020-03-08T00:36:27","guid":{"rendered":"http:\/\/taki-lab.site\/bocci\/?p=2462"},"modified":"2020-03-08T09:36:30","modified_gmt":"2020-03-08T00:36:30","slug":"%e3%80%90c%e3%80%91%e3%80%90%e6%95%b0%e7%8b%ac%e3%80%91%e4%bb%ae%e7%bd%ae%e3%81%8d%e3%83%ad%e3%82%b8%e3%83%83%e3%82%af%e3%82%92%e7%b0%a1%e7%95%a5%e5%8c%96%e3%81%99%e3%82%8b%e3%80%82","status":"publish","type":"post","link":"https:\/\/taki-lab.site\/bocci\/?p=2462","title":{"rendered":"\u3010C#\u3011\u3010\u6570\u72ec\u3011\u4eee\u7f6e\u304d\u30ed\u30b8\u30c3\u30af\u3092\u7c21\u7565\u5316\u3059\u308b\u3002"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-\u81ea\u5206\u3001\u307c\u3063\u3061\u3067\u3059\u304c\u4f55\u304b\uff1f\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"9JYCXEP8ym\"><a href=\"https:\/\/taki-lab.site\/bocci\/?p=2460\">\u3010C#\u3011\u3010\u6570\u72ec\u3011\u77db\u76fe\u30c1\u30a7\u30c3\u30af\u51e6\u7406\u3068\u4eee\u7f6e\u304d\u30ed\u30b8\u30c3\u30af\u518d\u5e30\u51e6\u7406\u306e\u5b9f\u88c5<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;\u3010C#\u3011\u3010\u6570\u72ec\u3011\u77db\u76fe\u30c1\u30a7\u30c3\u30af\u51e6\u7406\u3068\u4eee\u7f6e\u304d\u30ed\u30b8\u30c3\u30af\u518d\u5e30\u51e6\u7406\u306e\u5b9f\u88c5&#8221; &#8212; \u81ea\u5206\u3001\u307c\u3063\u3061\u3067\u3059\u304c\u4f55\u304b\uff1f\" src=\"https:\/\/taki-lab.site\/bocci\/?p=2460&#038;embed=true#?secret=mSTTVAZOFi#?secret=9JYCXEP8ym\" data-secret=\"9JYCXEP8ym\" width=\"474\" height=\"267\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u65b0\u30bd\u30fc\u30b9\u306f\u3053\u3061\u3089(gitHub)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/takishita2nd\/sudoku\">https:\/\/github.com\/takishita2nd\/sudoku<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u524d\u56de\u3001\u4eee\u7f6e\u304d\u30ed\u30b8\u30c3\u30af\u3092\u5b8c\u6210\u3055\u305b\u305f\u306e\u3067\u3059\u304c\u3001<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u30b3\u30fc\u30c9\u3001\u7d50\u69cb\u7121\u99c4\u306a\u51e6\u7406\u3092\u3084\u3063\u3066\u3044\u308b\u3053\u3068\u306b\u6c17\u304c\u3064\u3044\u305f\u3093\u3067\u3059\u3088\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>        private Square doKarioki(Square&#91;,] squares)\n        {\n            Square ret = null;\n            List&lt;Square> kariokiList = searchKariokiSquare(squares);\n            foreach (var s in kariokiList)\n            {\n                bool roop = true;\n                int kariValue = GetUnconfirmedValue(s.GetCandidate());\n                if (kariValue == 0)\n                {\n                    return null;\n                }\n                Square&#91;,] copySquare = makeClone(squares);\n                copySquare&#91;s.Row, s.Col].SetValue(kariValue);\n                int now_count = 0;\n                int prev_coount = 0;\n                while (roop)\n                {\n                    for (int row = 0; row &lt; 9; row++)\n                    {\n                        for (int col = 0; col &lt; 9; col++)\n                        {\n                            if (copySquare&#91;row, col].isConfirmed() == false)\n                            {\n                                Candidate candidate = new Candidate();\n                                searchRowLine(copySquare, row, candidate);\n                                searchColLine(copySquare, col, candidate);\n                                search9Area(copySquare, row, col, candidate);\n                                copySquare&#91;row, col].checkCandidate(candidate);\n                            }\n                        }\n                    }\n                    searchNumber(copySquare);\n\n                    if (checkContradict(copySquare))\n                    {\n                        break;\n                    }\n\n                    prev_coount = now_count;\n                    now_count = countInputedNumber(copySquare);\n\n                    if (prev_coount == now_count)\n                    {\n                        Console.WriteLine(\"\u4eee\u7f6e\u304d\u30ed\u30b8\u30c3\u30af\");\n                        Square s2 = doKarioki(copySquare);\n                        if (s2 == null)\n                        {\n                            Console.WriteLine(\"\u5931\u6557\u3057\u307e\u3057\u305f\");\n                            return null;\n                        }\n                        else\n                        {\n                            copySquare&#91;s2.Row, s2.Col].SetValue(s2.GetValue());\n                        }\n                    }\n\n                    if (checkEnd(copySquare) == true)\n                    {\n\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u2605\n                        roop = false;\n                        s.SetValue(kariValue);\n                        Console.WriteLine(\"&#91;{0},{1}] = {2}\", s.Row, s.Col, s.GetValue());\n                        ret = s;\n                    }\n                    FileAccess.Output(copySquare);\n                }\n                if(ret != null)\n                {\n                    break;\n                }\n            }\n            return ret;\n        }<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4eca\u307e\u3067\u306f\u2605\u306b\u5165\u3063\u305f\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u4eee\u7f6e\u304d\u3057\u305f\u5024\u304c\u78ba\u5b9a\u3057\u3066\u3001\u3068\u3044\u3046\u51e6\u7406\u3092\u884c\u3063\u3066\u3044\u305f\u3093\u3067\u3059\u304c\u3001<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u306f\u3053\u3053\u306b\u5165\u3063\u305f\u6642\u70b9\u3067\u89e3\u6790\u7d50\u679c\u304c\u5224\u660e\u3057\u3066\u3044\u308b\u3093\u3067\u3059\u3088\u306d\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u306a\u306e\u3067\u3001\u3053\u306e\u6642\u70b9\u3067\u89e3\u6790\u7d50\u679c\u3092\u51fa\u529b\u3057\u3066\u7d42\u4e86\u3001\u3068\u3044\u3046\u51e6\u7406\u306b\u3059\u308c\u3070\u3001\u5927\u5e45\u306b\u51e6\u7406\u304c\u77ed\u304f\u306a\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8a73\u7d30\u306fgitHub\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u53c2\u7167\u3057\u3066\u9802\u3051\u308c\u3070\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3064\u3044\u3067\u306b\u95a2\u6570\u30d8\u30c3\u30c0\u306b\u30b3\u30e1\u30f3\u30c8\u5165\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<a href=\"\/\/blog.with2.net\/link\/?2023426:1010\" target=\"_blank\" rel=\"noopener noreferrer\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2019\/12\/03a6eee54039f74ded0b8f7548b1868f.png?w=474\" title=\"\u30d1\u30bd\u30b3\u30f3\u30e9\u30f3\u30ad\u30f3\u30b0\"><\/a>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089\u3002 \u6700\u65b0\u30bd\u30fc\u30b9\u306f\u3053\u3061\u3089(gitHub) https:\/\/github.com\/takishita2nd\/sudoku \u524d\u56de\u3001\u4eee\u7f6e\u304d\u30ed\u30b8\u30c3\u30af\u3092\u5b8c\u6210\u3055\u305b\u305f\u306e\u3067\u3059\u304c\u3001 \u3053\u306e\u30b3\u30fc\u30c9\u3001\u7d50\u69cb\u7121\u99c4\u306a\u51e6\u7406\u3092\u3084\u3063\u3066\u3044 &hellip; <a href=\"https:\/\/taki-lab.site\/bocci\/?p=2462\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">\u3010C#\u3011\u3010\u6570\u72ec\u3011\u4eee\u7f6e\u304d\u30ed\u30b8\u30c3\u30af\u3092\u7c21\u7565\u5316\u3059\u308b\u3002<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"\u3010C#\u3011\u3010\u6570\u72ec\u3011\u4eee\u7f6e\u304d\u30ed\u30b8\u30c3\u30af\u3092\u7c21\u7565\u5316\u3059\u308b\u3002\n#TechCommit\n","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[174,3],"tags":[137,175],"class_list":["post-2462","post","type-post","status-publish","format-standard","hentry","category-c","category-3","tag-c","tag-175"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8SDbY-DI","jetpack-related-posts":[{"id":2382,"url":"https:\/\/taki-lab.site\/bocci\/?p=2382","url_meta":{"origin":2462,"position":0},"title":"\u3010C#\u3011\u3010\u6570\u72ec\u3011\u4eee\u7f6e\u304d\u5bfe\u8c61\u3092\u62bd\u51fa\u3059\u308b","author":"taki","date":"2020\u5e742\u670825\u65e5","format":false,"excerpt":"\u304b\u306a\u308a\u6642\u9593\u304c\u7a7a\u3044\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u304c\u3002 \u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089\u3002 https:\/\/taki-lab.si\u2026","rel":"","context":"C#","block_context":{"text":"C#","link":"https:\/\/taki-lab.site\/bocci\/?cat=174"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/01\/Screenshot_20200128-084138.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/01\/Screenshot_20200128-084138.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/01\/Screenshot_20200128-084138.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/01\/Screenshot_20200128-084138.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/01\/Screenshot_20200128-084138.png?resize=1050%2C600&ssl=1 3x"},"classes":[]},{"id":2460,"url":"https:\/\/taki-lab.site\/bocci\/?p=2460","url_meta":{"origin":2462,"position":1},"title":"\u3010C#\u3011\u3010\u6570\u72ec\u3011\u77db\u76fe\u30c1\u30a7\u30c3\u30af\u51e6\u7406\u3068\u4eee\u7f6e\u304d\u30ed\u30b8\u30c3\u30af\u518d\u5e30\u51e6\u7406\u306e\u5b9f\u88c5","author":"taki","date":"2020\u5e743\u67086\u65e5","format":false,"excerpt":"\u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089\u3002 https:\/\/taki-lab.site\/bocci\/?p=2304 \u6700\u2026","rel":"","context":"C#","block_context":{"text":"C#","link":"https:\/\/taki-lab.site\/bocci\/?cat=174"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2551,"url":"https:\/\/taki-lab.site\/bocci\/?p=2551","url_meta":{"origin":2462,"position":2},"title":"\u3010C#\u3011\u3010\u6570\u72ec\u3011\u30ed\u30b0\u51fa\u529b\u3092\u5f37\u5316\u3057\u4e0d\u5177\u5408\u3092\u63a2\u3059","author":"taki","date":"2020\u5e743\u670821\u65e5","format":false,"excerpt":"\u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089\u3002 https:\/\/taki-lab.site\/bocci\/?p=2474 \u6700\u2026","rel":"","context":"C#","block_context":{"text":"C#","link":"https:\/\/taki-lab.site\/bocci\/?cat=174"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/03\/Screenshot_20200312-095400.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/03\/Screenshot_20200312-095400.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/03\/Screenshot_20200312-095400.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/03\/Screenshot_20200312-095400.png?resize=700%2C400&ssl=1 2x, https:\/\/i0.wp.com\/taki-lab.site\/bocci\/wp-content\/uploads\/2020\/03\/Screenshot_20200312-095400.png?resize=1050%2C600&ssl=1 3x"},"classes":[]},{"id":2772,"url":"https:\/\/taki-lab.site\/bocci\/?p=2772","url_meta":{"origin":2462,"position":3},"title":"\u3010C#\u3011\u3010ALTSEED\u3011\u3010\u6570\u72ec\u3011\u89e3\u6790\u304c\u3067\u304d\u306a\u304b\u3063\u305f\u5834\u5408\u306e\u5bfe\u51e6","author":"taki","date":"2020\u5e744\u670829\u65e5","format":false,"excerpt":"\u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089\u3002 https:\/\/taki-lab.site\/bocci\/?p=2752 \u6700\u2026","rel":"","context":"C#","block_context":{"text":"C#","link":"https:\/\/taki-lab.site\/bocci\/?cat=174"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2295,"url":"https:\/\/taki-lab.site\/bocci\/?p=2295","url_meta":{"origin":2462,"position":4},"title":"\u3010C#\u3011\u3010\u6570\u72ec\u3011\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8907\u88fd\u3059\u308b","author":"taki","date":"2020\u5e742\u67084\u65e5","format":false,"excerpt":"\u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089\u3002 https:\/\/taki-lab.site\/bocci\/?p=2241 \u6700\u2026","rel":"","context":"C\u8a00\u8a9e","block_context":{"text":"C\u8a00\u8a9e","link":"https:\/\/taki-lab.site\/bocci\/?cat=90"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2304,"url":"https:\/\/taki-lab.site\/bocci\/?p=2304","url_meta":{"origin":2462,"position":5},"title":"\u3010C#\u3011\u3010\u6570\u72ec\u3011\u4eee\u7f6e\u304d\u30ed\u30b8\u30c3\u30af\u3092\u9069\u7528\u3059\u308b\u6761\u4ef6\u3092\u8003\u3048\u308b\u3002","author":"taki","date":"2020\u5e742\u67086\u65e5","format":false,"excerpt":"\u524d\u56de\u307e\u3067\u306e\u72b6\u6cc1\u306f\u3053\u3061\u3089\u3002 https:\/\/taki-lab.site\/bocci\/?p=2295 \u6700\u2026","rel":"","context":"C#","block_context":{"text":"C#","link":"https:\/\/taki-lab.site\/bocci\/?cat=174"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts\/2462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2462"}],"version-history":[{"count":1,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts\/2462\/revisions"}],"predecessor-version":[{"id":2463,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=\/wp\/v2\/posts\/2462\/revisions\/2463"}],"wp:attachment":[{"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/taki-lab.site\/bocci\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}