{"id":179,"date":"2018-11-24T14:59:18","date_gmt":"2018-11-24T05:59:18","guid":{"rendered":"https:\/\/dalomo.net\/blog\/?p=179"},"modified":"2018-11-24T15:09:15","modified_gmt":"2018-11-24T06:09:15","slug":"%e3%83%aa%e3%83%90%e3%83%bc%e3%82%b7%e3%81%aecom%e6%88%a6%e3%82%92%e4%bd%9c%e3%82%8b","status":"publish","type":"post","link":"https:\/\/dalomo.net\/blog\/2018\/11\/24\/179\/","title":{"rendered":"\u30ea\u30d0\u30fc\u30b7\u306eCOM\u6226\u3092\u4f5c\u308b"},"content":{"rendered":"<p>COM\u6226\u3092\u4f5c\u308b\u524d\u306b\u691c\u8a0e\u3057\u3066\u307f\u305f\u3051\u3069\u3001\u4eca\u304b\u3089\u624b\u756a\u306e\u9078\u629e\u3092\u3057\u305f\u308a\u3001\u5bfe\u4eba\u6226\u30fb\u5bfeCOM\u6226\u3092\u5206\u3051\u305f\u308a\u304c\u3081\u3093\u3069\u304f\u3055\u3044\u306e\u3067\u3001\u30d7\u30ec\u30a4\u30e4\u30fc\u306e\u624b\u756a\u306f\u5e38\u306b\u9ed2\u756a\u304b\u3064COM\u6226\u306e\u307f\u3068\u3044\u3046\u5f62\u3067\u5b9f\u73fe\u3057\u305f\u3044\u3002<\/p>\n<h2>COM\u304f\u3093<\/h2>\n<h3>\u601d\u8003\u65b9\u6cd5<\/h3>\n<p>\u30de\u30b9\u3092\u8abf\u3079\u3066\u3044\u3063\u3066\u3001\u7f6e\u3051\u308b\u5834\u6240\u304c\u898b\u3064\u304b\u3063\u305f\u3089\u77f3\u3092\u7f6e\u304f\u3002\u7c21\u5358\u3060\u3051\u3069\u3053\u308c\u3067\u52d5\u304f\u3068\u601d\u3063\u305f\u3002\u3053\u306e\u3042\u305f\u308a\u8272\u3093\u306a\u30a2\u30eb\u30b4\u30ea\u30ba\u30e0\u304c\u3042\u308b\u3089\u3057\u304f\u3001\u5965\u6df1\u3044\u307f\u305f\u3044\u3002\u3042\u3068\u81ea\u5206\u306b\u3067\u304d\u305d\u3046\u306a\u3082\u306e\u3068\u8a00\u3063\u305f\u3089\u3001\u7f6e\u3051\u308b\u5834\u6240\u306e\u3072\u3063\u304f\u308a\u8fd4\u305b\u308b\u77f3\u306e\u91cf\u3092\u8abf\u3079\u3066\u3044\u3063\u3066\u3001\u4e00\u756a\u5927\u304d\u3044\u6240\u306b\u7f6e\u304f\u3068\u304b\u304b\u306a\u3041\u3002<\/p>\n<h3>\u5b9f\u88c5<\/h3>\n<pre>void comPutStone(){\r\n\r\n    for (TextView[] cc : CellArray) {\r\n        for (TextView c : cc) {\r\n            if(c.getText().toString().equals(\"*\")){\r\n                putStone(c);\r\n                return;\r\n            }\r\n        }\r\n    }\r\n}<\/pre>\n<p>\u305d\u3093\u3067onClick\u306e\u6240\u3092<\/p>\n<pre>switch(id) {\r\n\r\n        if(board.PlayerTurn == 1) {\r\n            TextView tv = findViewById(id);\r\n            board.putStone(tv);\r\n            board.setTurn();\r\n            board.scanBoard();\r\n            board.StoneCountOnBoard();\r\n            board.checkFinish();\r\n            break;\r\n        }\r\n}\r\n\r\nwhile (board.PlayerTurn == -1){\r\n    board.comPutStone(); \r\n    board.setTurn(); \r\n    board.scanBoard(); \r\n    board.StoneCountOnBoard(); \r\n    board.checkFinish();\r\n}<\/pre>\n<p>\u3053\u3046\u5909\u3048\u3066\u3001\u3067\u304d\u3042\u304c\u308a\u3002<\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/DMrJ9xAdP_I\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>\u6c17\u3092\u629c\u3044\u3066\u3084\u3063\u3066\u308b\u3068\u3001\u666e\u901a\u306b\u8ca0\u3051\u305f\u308a\u3082\u3059\u308b\u3002\u3042\u308c\u3060\u3051\u306a\u306e\u306b\u3002<\/p>\n<h3>\u4e00\u6bb5\u843d<\/h3>\n<p>\u3061\u3087\u3063\u3068\u98fd\u304d\u3066\u304d\u3066\u308b\u304b\u3089\u304b\u3001\u306a\u30fc\u3093\u304b\u9054\u6210\u611f\u304c\u306a\u3044\u3002\u307e\u3041\u3001\u305d\u308c\u3060\u3051\u3058\u3083\u306a\u304f\u3066\u3001\u6700\u521d\u306f\u65b0\u3057\u304fCom\u30af\u30e9\u30b9\u4f5c\u308d\u3046\u3068\u3057\u305f\u308a\u3001Board\u3092\u7d99\u627f\u3057\u3066\u307f\u305f\u308a\u3001\u3067\u3082\u306a\u3093\u304b\u4e0a\u624b\u304f\u3044\u304b\u306a\u304f\u3066\u3053\u308c\u306b\u843d\u3061\u7740\u3044\u305f\u3063\u3066\u3044\u3046\u306e\u304c\u306d\u3001\u306a\u3093\u304b\u306d\u3002\u7d99\u627f\u3059\u308b\u3068\u30c7\u30d5\u30a9\u30eb\u30c8\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u304c\u306a\u3044\u3088\u3063\u3066\u8a00\u308f\u308c\u308b\u3093\u3060\u3088\u306d\u3001\u306a\u3093\u3067\u306a\u3093\u3060\u308d\u3002\u3069\u3046\u3059\u308c\u3070\u3082\u3063\u3068\u30b9\u30d1\u30c3\u3068\u6d41\u308c\u3088\u304f\u4f5c\u308c\u308b\u306e\u304b\u306a\u3041\u2026\u3002<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u30ea\u30d0\u30fc\u30b7\u306f\u3053\u3053\u307e\u3067\u306b\u3057\u3088\u3046\u3001\u4e00\u30f6\u6708\u3084\u308a\u3063\u3071\u306a\u3057\u3060\u3082\u3093\u306a\u3002\u306a\u3093\u304b\u9055\u3046\u306e\u3084\u308a\u305f\u3044\u3002\u3061\u3087\u3063\u3068\u601d\u3044\u3064\u3044\u305f\u3084\u3064\u304c\u3042\u308b\u306e\u3067\u3001\u305d\u308c\u3092\u4f5c\u3063\u3066\u3044\u3053\u30fc!<\/p>\n<h3>\u53c2\u8003<\/h3>\n<p><a href=\"https:\/\/www.javadrive.jp\/start\/for\/index7.html\">https:\/\/www.javadrive.jp\/start\/for\/index7.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>COM\u6226\u3092\u4f5c\u308b\u524d\u306b\u691c\u8a0e\u3057\u3066\u307f\u305f\u3051\u3069\u3001\u4eca\u304b\u3089\u624b\u756a\u306e\u9078\u629e\u3092\u3057\u305f\u308a\u3001\u5bfe\u4eba\u6226\u30fb\u5bfeCOM\u6226\u3092\u5206\u3051\u305f\u308a\u304c\u3081\u3093\u3069\u304f\u3055\u3044\u306e\u3067\u3001\u30d7\u30ec\u30a4\u30e4\u30fc\u306e\u624b\u756a\u306f\u5e38\u306b\u9ed2\u756a\u304b\u3064COM\u6226\u306e\u307f\u3068\u3044\u3046\u5f62\u3067\u5b9f\u73fe\u3057\u305f\u3044\u3002 COM\u304f\u3093 \u601d\u8003\u65b9\u6cd5 \u30de\u30b9\u3092\u8abf\u3079\u3066\u3044\u3063\u3066\u3001\u7f6e &hellip; <a href=\"https:\/\/dalomo.net\/blog\/2018\/11\/24\/179\/\">\u7d9a\u304d\u3092\u8aad\u3080 <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":{"inline_featured_image":false,"footnotes":""},"categories":[8],"tags":[3,6,4,13],"class_list":["post-179","post","type-post","status-publish","format-standard","hentry","category-8","tag-android","tag-androidstudio","tag-4","tag-13"],"_links":{"self":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/comments?post=179"}],"version-history":[{"count":3,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/179\/revisions"}],"predecessor-version":[{"id":182,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/179\/revisions\/182"}],"wp:attachment":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/media?parent=179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/categories?post=179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/tags?post=179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}