{"id":123,"date":"2018-11-11T00:06:35","date_gmt":"2018-11-10T15:06:35","guid":{"rendered":"https:\/\/dalomo.net\/blog\/?p=123"},"modified":"2018-11-17T23:41:41","modified_gmt":"2018-11-17T14:41:41","slug":"%e5%88%9d%e6%9c%9f%e7%94%bb%e9%9d%a2%e3%82%92%e8%a8%ad%e5%ae%9a%e3%81%97%e3%80%81%e7%99%bd%e3%81%a8%e9%bb%92%e3%82%92%e4%ba%a4%e4%ba%92%e3%81%ab%e7%bd%ae%e3%81%8d%e3%81%9f%e3%81%84","status":"publish","type":"post","link":"https:\/\/dalomo.net\/blog\/2018\/11\/11\/123\/","title":{"rendered":"\u521d\u671f\u753b\u9762\u3092\u8a2d\u5b9a\u3057\u3001\u767d\u3068\u9ed2\u3092\u4ea4\u4e92\u306b\u7f6e\u304d\u305f\u3044"},"content":{"rendered":"<p><iframe loading=\"lazy\" src=\"https:\/\/www.youtube.com\/embed\/-Ewl3zz8rL4\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<p>\u3042\u3068\u77f3\u304c\u7f6e\u3044\u3066\u3042\u308b\u5834\u6240\u306b\u306f\u7f6e\u3051\u306a\u3044\u3088\u3046\u306b\u3057\u305f\u3044\u3002<\/p>\n<p>\u305d\u3093\u3067\u307e\u3041\u3001\u3068\u308a\u3042\u3048\u305a\u66f8\u3044\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u305f\u3002<\/p>\n<h2>\u76ee\u7684\u306e\u6a5f\u80fd\u3060\u3051\u4f5c\u3063\u305f<\/h2>\n<h3>\u521d\u671f\u753b\u9762<\/h3>\n<p><a href=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2018\/11\/reversiintial.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-124\" src=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2018\/11\/reversiintial-300x131.png\" alt=\"\" width=\"300\" height=\"131\" srcset=\"https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2018\/11\/reversiintial-300x131.png 300w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2018\/11\/reversiintial-768x336.png 768w, https:\/\/dalomo.net\/blog\/wp-content\/uploads\/2018\/11\/reversiintial.png 1007w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>\u771f\u3093\u4e2d\u306e4\u3064\u306e\u30de\u30b9\u306bText\u3092\u8a2d\u5b9a\u3059\u308b\u3060\u3051\u3002\u3053\u306e\u6a5f\u4f1a\u306b\u30eb\u30fc\u30eb\u3092\u3061\u3083\u3093\u3068\u898b\u3066\u307f\u305f\u3089\u3001\u7f6e\u304d\u65b9\u306b\u3082\u6c7a\u307e\u308a\u304c\u3042\u308b\u306e\u306d\u3002\u9ed2\u304c\u53f3\u3063\u3066\u521d\u3081\u3066\u77e5\u3063\u305f\u3002<\/p>\n<h3>\u77f3\u304c\u7f6e\u3044\u3066\u3042\u308b\u6642\u306b\u7f6e\u3051\u306a\u3044\u3088\u3046\u306b\u3059\u308b<\/h3>\n<pre>TextView tv = findViewById(id);\r\nString stone;\r\nstone = tv.getText().toString();\r\n\r\nif(!stone.equals(\"\")){\r\n    Toast.makeText(this,\"\u305d\u3053\u306b\u77f3\u306f\u7f6e\u3051\u307e\u305b\u3093\", Toast.LENGTH_SHORT).show();\r\n}<\/pre>\n<p>\u30bf\u30c3\u30d7\u3057\u305f\u6240\u306eText\u3092\u53d6\u5f97\u3002\u305d\u308c\u304c\u7a7a\u767d\u4ee5\u5916(\u25cb\u3001\u25cf)\u3060\u3063\u305f\u3089Toast\u3092\u8868\u793a\u3059\u308b\u3002<\/p>\n<p>\u307b\u3093\u3068\u306f\u6587\u8a00\u306fString.xml\u304b\u3089\u5f15\u3063\u5f35\u308b\u307b\u3046\u304c\u826f\u3044\u307f\u305f\u3044\u3002<\/p>\n<h3>\u624b\u756a\u306b\u3088\u3063\u3066\u7f6e\u304f\u77f3\u3092\u5909\u3048\u308b<\/h3>\n<pre>int PlayerTurn = 1;\r\nfinal int BLACK = 1;\r\nfinal int WHITE = -1;<\/pre>\n<pre>}else{\r\n    switch(PlayerTurn){\r\n        case BLACK:\r\n            tv.setText(\"\u25cf\");\r\n            PlayerTurn = WHITE;\r\n            break;\r\n\r\n        case WHITE:\r\n            tv.setText(\"\u25cb\");\r\n            PlayerTurn = BLACK;\r\n            break;\r\n    }\r\n}<\/pre>\n<p>PlayerTurn\u3067\u624b\u756a\u3092\u7ba1\u7406\u3057\u3066\u3001\u624b\u756a\u306b\u3088\u3063\u3066\u7f6e\u304f\u77f3\u3092\u5909\u66f4\u3057\u3066\u3001\u77f3\u7f6e\u3044\u305f\u5f8c\u306f\u624b\u756a\u3092\u5909\u3048\u308b\u3002<\/p>\n<p>\u3053\u308c\u3067\u3067\u304d\u305f\u3002final\u3063\u3066\u521d\u3081\u3066\u4f7f\u3063\u305f\u306a\u3041\u3002<\/p>\n<p>\u2026<\/p>\n<p>\u3067\u304d\u305f\u306f\u3067\u304d\u305f\u3093\u3060\u3051\u3069\u3001\u4eca\u5f8c\u3082\u3053\u3093\u306a\u611f\u3058\u3067\u51e6\u7406\u306e\u6d41\u308c\u3092\u898b\u3064\u3064\u9593\u306b\u8ffd\u8a18\u3057\u305f\u308a\u3059\u308b\u306e\u304b?\u3068\u4e0d\u5b89\u306b\u306a\u308b\u3002\u305d\u3044\u3067\u8272\u3093\u306a\u30aa\u30bb\u30ed\u30fb\u30ea\u30d0\u30fc\u30b7\u306e\u30bd\u30fc\u30b9\u3092\u898b\u3066\u307f\u305f\u3089\u3001\u30af\u30e9\u30b9\u3092\u4f5c\u308b\u3068\u826f\u3044\u307f\u305f\u3044\u3002\u305f\u3060\u3001VBA\u66f8\u3044\u3066\u308b\u6642\u306f\u3001\u30af\u30e9\u30b9\u3068\u304b\u4f7f\u3063\u305f\u3053\u3068\u306a\u3044\u3057\u3001\u81ea\u5206\u306b\u66f8\u3051\u308b\u304b\u3068\u3044\u3046\u3068\u3001\u3069\u3046\u3060\u308d\u3046\u3002\u305f\u3060\u3084\u3063\u3066\u307f\u305f\u304f\u306f\u3042\u308b\u306a\u3041\u3002\u3084\u3063\u3066\u307f\u3088\u3046\u304b\u306a\u3041\u3002<\/p>\n<h3>\u53c2\u8003<\/h3>\n<p><a href=\"https:\/\/ja.wikipedia.org\/wiki\/%E3%82%AA%E3%82%BB%E3%83%AD_(%E9%81%8A%E6%88%AF)#%E5%9F%BA%E6%9C%AC%E7%9A%84%E3%81%AA%E3%83%AB%E3%83%BC%E3%83%AB\">https:\/\/ja.wikipedia.org\/wiki\/%E3%82%AA%E3%82%BB%E3%83%AD_(%E9%81%8A%E6%88%AF)#%E5%9F%BA%E6%9C%AC%E7%9A%84%E3%81%AA%E3%83%AB%E3%83%BC%E3%83%AB<\/a><\/p>\n<p><a href=\"https:\/\/developer.android.com\/reference\/android\/widget\/Toast\">https:\/\/developer.android.com\/reference\/android\/widget\/Toast<\/a><\/p>\n<p><a href=\"https:\/\/java-reference.com\/java_basic_final.html\">https:\/\/java-reference.com\/java_basic_final.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3042\u3068\u77f3\u304c\u7f6e\u3044\u3066\u3042\u308b\u5834\u6240\u306b\u306f\u7f6e\u3051\u306a\u3044\u3088\u3046\u306b\u3057\u305f\u3044\u3002 \u305d\u3093\u3067\u307e\u3041\u3001\u3068\u308a\u3042\u3048\u305a\u66f8\u3044\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u305f\u3002 \u76ee\u7684\u306e\u6a5f\u80fd\u3060\u3051\u4f5c\u3063\u305f \u521d\u671f\u753b\u9762 \u771f\u3093\u4e2d\u306e4\u3064\u306e\u30de\u30b9\u306bText\u3092\u8a2d\u5b9a\u3059\u308b\u3060\u3051\u3002\u3053\u306e\u6a5f\u4f1a\u306b\u30eb\u30fc\u30eb\u3092\u3061\u3083\u3093\u3068\u898b\u3066\u307f\u305f\u3089\u3001\u7f6e\u304d\u65b9\u306b\u3082 &hellip; <a href=\"https:\/\/dalomo.net\/blog\/2018\/11\/11\/123\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":124,"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-123","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-8","tag-android","tag-androidstudio","tag-4","tag-13"],"_links":{"self":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/123","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=123"}],"version-history":[{"count":2,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/123\/revisions"}],"predecessor-version":[{"id":126,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/posts\/123\/revisions\/126"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/media\/124"}],"wp:attachment":[{"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/media?parent=123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/categories?post=123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dalomo.net\/blog\/wp-json\/wp\/v2\/tags?post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}