{"id":3983,"date":"2013-02-06T13:31:02","date_gmt":"2013-02-05T19:31:02","guid":{"rendered":"http:\/\/www.moonmile.net\/blog\/archives\/3983"},"modified":"2013-02-06T13:31:02","modified_gmt":"2013-02-05T19:31:02","slug":"%e6%b6%88%e3%81%88%e3%81%a6%e3%81%97%e3%81%be%e3%81%a3%e3%81%9f%e6%99%82%e9%96%93%e3%81%8c%e6%b6%88%e3%81%88%e3%81%a6%e3%81%97%e3%81%be%e3%82%8f%e3%81%aa%e3%81%84%e3%82%88%e3%81%86%e3%81%ab%e8%b6%b3","status":"publish","type":"post","link":"http:\/\/www.moonmile.net\/blog\/archives\/3983","title":{"rendered":"\u6d88\u3048\u3066\u3057\u307e\u3063\u305f\u6642\u9593\u304c\u6d88\u3048\u3066\u3057\u307e\u308f\u306a\u3044\u3088\u3046\u306b\u8db3\u8de1\u3092\u6b8b\u3059"},"content":{"rendered":"<p>\n\u6b63\u6708\u3092\u6f70\u3057\u3066\u4ed5\u4e8b\u3001\u305d\u306e\u3042\u305f\u6c17\u75b2\u308c\uff08\uff1f\uff09\u3068\u30a4\u30f3\u30d5\u30eb\u30a8\u30f3\u30b6\u306e\u6253\u6483&#8230;\u3063\u3066\u306a\u611f\u3058\u3067\uff11\u6708\u304c\u3042\u3063\u3068\u3044\u3046\u9593\u306b\u904e\u304e\u3066\u3057\u307e\u3063\u305f\u308f\u3051\u3067\u3059\u304c\u3002\u300c\u3042\u3063\u3068\u3044\u3046\u9593\u300d\u304b\u3069\u3046\u304b\u306f\u3001\u904e\u53bb\u3092\u632f\u308a\u66ff\u3048\u3066\u307f\u308b\u3068\u308f\u304b\u308b\u304b\u3082\u3001\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u3057\u3070\u3089\u304f\u306f\u3001\u65e5\u8a18\u98a8\u306b blog \u3092\u66f8\u304d\u7db4\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u8abf\u5b50\u3092\u623b\u3057\u307e\u3057\u3087\u3046 \uff1e \u81ea\u5206\u3001\u3046\u3093\u3046\u3093\u3002\n<\/p>\n<p>\n\u6700\u521d\u306f\u30c1\u30fc\u30d7\u306a\u753b\u9762\u3092\u4f5c\u3063\u3066\u30ed\u30b8\u30c3\u30af\u3092\u78ba\u8a8d\u3092 | Moonmile Solutions Blog<br \/>\n<a href=\"http:\/\/www.moonmile.net\/blog\/archives\/3982\">http:\/\/www.moonmile.net\/blog\/archives\/3982<\/a>\n<\/p>\n<p>\n\u306e\u7d9a\u304d\u3067\u3059\u3002\n<\/p>\n<ol>\n<li>\u30c7\u30fc\u30bf\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3059\u308b<\/li>\n<li>\u30c1\u30fc\u30d7\u306a\u753b\u9762\u3092\u4f5c\u6210\u3059\u308b<\/li>\n<\/ol>\n<p>\n\u3063\u3066\u3053\u3068\u3067\u3001Model \u3068 View \u304c\u63c3\u3063\u305f\u306e\u3067\u3001\u30b2\u30fc\u30e0\u30ed\u30b8\u30c3\u30af\u3092\u4f5c\u3063\u3066\u3044\u304d\u307e\u3059\u3002\u30c7\u30fc\u30bf\u5f62\u5f0f\u306e\u6301\u3061\u65b9\u306f\u3053\u308c\u3067\u3044\u3044\u306e\u304b\uff1f\u3063\u3066\u306e\u3092\u78ba\u304b\u3081\u308b\u305f\u3081\u3067\u3082\u3042\u308b\u3057\u3001\u3056\u3063\u3068\u30b2\u30fc\u30e0\u30ed\u30b8\u30c3\u30af\u3092\u4f5c\u308b\u3053\u3068\u3067\u3001\u305d\u308c\u304c\u300c\u904a\u3079\u308b\u3082\u306e\u304b\u3069\u3046\u304b\uff1f\u300d\u3063\u3066\u306e\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002\u3048\u3048\u3001\u300c\u904a\u3079\u306a\u305d\u3046\u300d\u3063\u3066\u306e\u304c\u5206\u304b\u3063\u305f\u3089\u6e05\u304f\u6368\u3066\u3066\u3057\u307e\u3048\u3070\u3044\u3044\u306e\u3067\u3059\u3002\u305d\u306e\u305f\u3081\u306b\u3001\u3053\u306e\u624b\u306e\u30c7\u30fc\u30bf\u30af\u30e9\u30b9\u3068\u304b\u3001\u30c1\u30fc\u30d7\u306a\u753b\u9762\u3092\u3055\u3063\u304f\u308a\u3068\u4f5c\u308b\u306e\u306f\u5927\u5207\u304b\u3068\u3002<br \/>\n\u3053\u306e\u65b9\u6cd5\u306f\u3001\u696d\u52d9\u30a2\u30d7\u30ea\u3067\u3082\u3088\u304f\u3084\u308b\u65b9\u6cd5\u3067\u3001\u300c\u6368\u3066\u53bb\u3063\u3066\u3082\u3044\u3044\u6642\u9593\u300d\u3092\u4f7f\u3063\u3066\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u7684\u306a\u3082\u306e\u3092\u4f5c\u308a\u307e\u3059\u3002\u4e16\u306e\u4e2d\u306e\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u3060\u3068\u304a\u5ba2\u306b\u898b\u305b\u308b\u305f\u3081\u306b\u3001\u7d50\u69cb\u624b\u3092\u8fbc\u3093\u3060\u3082\u306e\u3092\u4f5c\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u304c\uff08\u30d7\u30ec\u30bc\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u7684\u306a\u610f\u5473\u304c\u3042\u308b\u306e\u3067\u3001\u305d\u308c\u306f\u305d\u308c\u3067\u91cd\u8981\u306a\u306e\u3067\u3059\uff09\u3001\u81ea\u5206\u3067\u78ba\u8a8d\u3059\u308b\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u2252\u3053\u308c\u304c\u672c\u5f53\u306b\u52d5\u304f\u306e\u304b\u3069\u3046\u304b\u306e\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u306e\u5834\u5408\u306f\u3001\u300c\u6368\u3066\u3066\u3082\u60dc\u3057\u304f\u306a\u3044\u6642\u9593\u3092\u5272\u308a\u5f53\u3066\u307e\u3059\u300d\u3002\uff12\uff0c\uff13\u6642\u9593\u3068\u3044\u3046\u3068\u3053\u308d\u3067\u3057\u3087\u3046\u304b\u3002\u9577\u304f\u3066\uff11\u65e5\u3067\u3059\u306d\u3002\u305f\u3060\u3001\u6700\u8fd1\u6c17\u3065\u3044\u305f\u306e\u306f\u3001\uff11\u65e5\u3067\u3055\u3063\u304f\u308a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u305f\u3081\u306e\u300c\u5b9f\u529b\u300d\u3092\u4ed8\u3051\u308b\u306e\u306f\u7d50\u69cb\u935b\u932c\u304c\u3044\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u306a\u3001\u3068\u3044\u3046\u3053\u3068\u300220\u5e74\u524d\u306e\u30d1\u30bd\u30b3\u30f3\u901a\u4fe1\u306e\u9803\u306e\u300c\u3053\u306e\u4eba\u306e\u958b\u767a\u30b9\u30d4\u30fc\u30c9\u3063\u3066\u3059\u3054\u3044\u306a\uff01\u300d\u3063\u3066\u7a0b\u5ea6\u306b\u306f\u3001\u3084\u3063\u3068\u3053\u3055\u3001\u9054\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u305f\u3088\u3046\u306a\u6c17\u304c&#8230;\u3059\u308b\u3093\u3060\u3051\u3069\u3001\u3069\u3046\u3067\u3057\u3087\u3046\uff1f\u3044\u3084\u3044\u3084\u3001\u672c\u5f53\u306e\u3068\u3053\u308d\u304c\u3001\u304c\u3063\u3068\u96c6\u4e2d\u3057\u3066\u4f5c\u308c\u308b\u7a0b\u5ea6\u304c\uff12\uff0c\uff13\u6642\u9593\u3063\u3066\u3068\u3053\u308d\u306a\u3093\u3067\u3059\u3051\u3069\u306d\u3002\u3063\u3066\u3053\u3068\u304b\u3082\u3002\n<\/p>\n<p>\n\u25a0\u30c7\u30fc\u30bf\u3092\u4f5c\u6210\u3059\u308b\n<\/p>\n<p>\n\u3055\u3066\u3001\u901a\u5e38\u306f\u305d\u308c\u3089\u3057\u3044\u30b5\u30f3\u30d7\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3068\u3053\u304b\u3089\uff08\u30c7\u30fc\u30bf\u30af\u30e9\u30b9\u306e\u64cd\u4f5c\u6027\u306e\u78ba\u8a8d\u3082\u517c\u306d\u3066\uff09\u59cb\u3081\u308b\u308f\u3051\u3067\u3059\u304c\u3001\u82b1\u672d\u306e\u5834\u5408\u306f\u679a\u6570\u304c\u9650\u3089\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u30c7\u30fc\u30bf\u3082\u4f5c\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<br \/>\nCard \u30af\u30e9\u30b9\u306b\u6301\u305f\u305b\u3066\u3057\u307e\u3046\u306e\u306f\u7570\u8ad6\u304c\u3042\u308b\uff01\uff08\u79c1\u3082\u3042\u308b\uff01\uff09\u306e\u3067\u3059\u304c\u3001\u3056\u3063\u3068\u4f5c\u3063\u305f\u3068\u3044\u3046\u3053\u3068\u3067\u3002\u30b2\u30fc\u30e0\u3068\u3057\u3066\u306f\u300c\u3053\u3044\u3053\u3044\u300d\u3092\u4f5c\u308b\u4e88\u5b9a\u306a\u306e\u3067\u3001\u70b9\u6570\u81ea\u4f53\u306b\u306f\u610f\u5473\u304c\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u30ab\u30b9\u672d\u3068\u304b\u77ed\u518a\u3068\u304b\u3092\u533a\u5225\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u3063\u3066\u3053\u3068\u3067\u3059\u3002\u3053\u306e\u3042\u305f\u308a\u306f\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u30af\u30e9\u30b9\u3092\u4f5c\u3063\u3066\u3082\u540c\u3058\u3067\u3059\u306d\u3002\u30c7\u30fc\u30bf\u91cf\u304c\u591a\u3044\u5834\u5408\u306f\u3001\u691c\u7d22\u6642\u306e\u52b9\u7387\u3092\u8003\u3048\u3066\u3001\u3063\u3066\u306e\u3082\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u3053\u306e\u3050\u3089\u3044\u306a\u3089\u3070\u5168\u4ef6\u691c\u7d22\u3057\u3066\u3082\u7279\u306b\u554f\u984c\u306a\u3044\u3057\u3002\n<\/p>\n<p>[code lang=&#8221;csharp&#8221;]<br \/>\n\/\/\/ &lt;summary&gt;<br \/>\n\/\/\/ \u30ab\u30fc\u30c9<br \/>\n\/\/\/ &lt;\/summary&gt;<br \/>\npublic class Card<br \/>\n{<br \/>\n\tstring _id;<br \/>\n&#8230;<br \/>\n\tstatic protected Dictionary&lt;string,int&gt; _tens;<br \/>\n\t\/\/\/ &lt;summary&gt;<br \/>\n\t\/\/\/ \u70b9\u6570\u3092\u53d6\u5f97<br \/>\n\t\/\/\/ &lt;\/summary&gt;<br \/>\n\tpublic int Ten<br \/>\n\t{<br \/>\n\t\tget<br \/>\n\t\t{<br \/>\n\t\t\tif (Card._tens == null)<br \/>\n\t\t\t{<br \/>\n\t\t\t\tCard._tens = new Dictionary&lt;string, int&gt;();<br \/>\n\t\t\t\tCard._tens[&quot;A1&quot;] = 20; \/\/ \u677e\u306b\u9db4<br \/>\n\t\t\t\tCard._tens[&quot;A2&quot;] = 5;<br \/>\n\t\t\t\tCard._tens[&quot;A3&quot;] = 1;<br \/>\n\t\t\t\tCard._tens[&quot;A4&quot;] = 1;<br \/>\n\t\t\t\tCard._tens[&quot;B1&quot;] = 10; \/\/ \u6885\u306b\u9daf<br \/>\n\t\t\t\tCard._tens[&quot;B2&quot;] = 5;<br \/>\n\t\t\t\tCard._tens[&quot;B3&quot;] = 1;<br \/>\n\t\t\t\tCard._tens[&quot;B4&quot;] = 1;<br \/>\n\t\t\t\tCard._tens[&quot;C1&quot;] = 20; \/\/ \u685c\u306b\u5e55<br \/>\n\t\t\t\tCard._tens[&quot;C2&quot;] = 5;<br \/>\n\t\t\t\tCard._tens[&quot;C3&quot;] = 1;<br \/>\n\t\t\t\tCard._tens[&quot;C4&quot;] = 1;<br \/>\n\t\t\t\tCard._tens[&quot;D1&quot;] = 10; \/\/ \u85e4\u306b\u30db\u30c8\u30c8\u30ae\u30b9<br \/>\n\t\t\t\tCard._tens[&quot;D2&quot;] = 5;<br \/>\n\t\t\t\tCard._tens[&quot;D3&quot;] = 1;<br \/>\n\t\t\t\tCard._tens[&quot;D4&quot;] = 1;<br \/>\n\t\t\t\tCard._tens[&quot;E1&quot;] = 10; \/\/ \u83d6\u84b2\u306b\u516b\u3064\u6a4b<br \/>\n\t\t\t\tCard._tens[&quot;E2&quot;] = 5;<br \/>\n\t\t\t\tCard._tens[&quot;E3&quot;] = 1;<br \/>\n\t\t\t\tCard._tens[&quot;E4&quot;] = 1;<br \/>\n\t\t\t\tCard._tens[&quot;F1&quot;] = 10; \/\/ \u7261\u4e39\u306b\u8776<br \/>\n\t\t\t\tCard._tens[&quot;F2&quot;] = 5;<br \/>\n\t\t\t\tCard._tens[&quot;F3&quot;] = 1;<br \/>\n\t\t\t\tCard._tens[&quot;F4&quot;] = 1;<br \/>\n\t\t\t\tCard._tens[&quot;G1&quot;] = 10; \/\/ \u8429\u306b\u732a<br \/>\n\t\t\t\tCard._tens[&quot;G2&quot;] = 5;<br \/>\n\t\t\t\tCard._tens[&quot;G3&quot;] = 1;<br \/>\n\t\t\t\tCard._tens[&quot;G4&quot;] = 1;<br \/>\n\t\t\t\tCard._tens[&quot;H1&quot;] = 20; \/\/ \u30b9\u30b9\u30ad\u306b\u6708<br \/>\n\t\t\t\tCard._tens[&quot;H2&quot;] = 10;<br \/>\n\t\t\t\tCard._tens[&quot;H3&quot;] = 1;<br \/>\n\t\t\t\tCard._tens[&quot;H4&quot;] = 1;<br \/>\n\t\t\t\tCard._tens[&quot;I1&quot;] = 10; \/\/ \u83ca\u306b\u76c3<br \/>\n\t\t\t\tCard._tens[&quot;I2&quot;] = 5;<br \/>\n\t\t\t\tCard._tens[&quot;I3&quot;] = 1;<br \/>\n\t\t\t\tCard._tens[&quot;I4&quot;] = 1;<br \/>\n\t\t\t\tCard._tens[&quot;J1&quot;] = 10; \/\/ \u9280\u674f\u306b\u9e7f<br \/>\n\t\t\t\tCard._tens[&quot;J2&quot;] = 5;<br \/>\n\t\t\t\tCard._tens[&quot;J3&quot;] = 1;<br \/>\n\t\t\t\tCard._tens[&quot;J4&quot;] = 1;<br \/>\n\t\t\t\tCard._tens[&quot;K1&quot;] = 20; \/\/ \u5c0f\u91ce\u9053\u98a8\u306b\u86d9<br \/>\n\t\t\t\tCard._tens[&quot;K2&quot;] = 10;<br \/>\n\t\t\t\tCard._tens[&quot;K3&quot;] = 5;<br \/>\n\t\t\t\tCard._tens[&quot;K4&quot;] = 1;<br \/>\n\t\t\t\tCard._tens[&quot;L1&quot;] = 50; \/\/ \u6850\u306b\u9cf3\u51f0<br \/>\n\t\t\t\tCard._tens[&quot;L2&quot;] = 1;<br \/>\n\t\t\t\tCard._tens[&quot;L3&quot;] = 1;<br \/>\n\t\t\t\tCard._tens[&quot;L4&quot;] = 1;<br \/>\n\t\t\t}<br \/>\n\t\t\treturn Card._tens[_id];<br \/>\n\t\t}<br \/>\n\t}<br \/>\n\tpublic override string ToString()<br \/>\n\t{<br \/>\n\t\treturn _id;<br \/>\n\t}<br \/>\n}<br \/>\n[\/code]<\/p>\n<p>\n\u25a0\u5f79\u3092\u4f5c\u308b\n<\/p>\n<p>\n\u3056\u3063\u304f\u308a\u3068\u30c7\u30fc\u30bf\u304c\u3067\u304d\u305f\u3089\u3001\u5f79\u3092\u4f5c\u308a\u307e\u3059\u3002\u3044\u308f\u3086\u308b\u30ab\u30fc\u30c9\u30b2\u30fc\u30e0\u306e\u5834\u5408\u306f\u3001\u540c\u3058\u30d1\u30bf\u30fc\u30f3\u3067\u4f5c\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u306a\u3001\u3068\u3002\u6700\u521d\u306f\u300c\u5f79\u3092\u8a08\u7b97\u3059\u308b\u300d\u90e8\u5206\u3068\u300c\u70b9\u6570\u3092\u8a08\u7b97\u3059\u308b\u300d\u90e8\u5206\u3068\u3092\u72ec\u7acb\u3055\u305b\u3066\u4f5c\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u7d50\u5c40\u306e\u3068\u3053\u308d\u300c\u5f79\u300d\u3092\u4f7f\u3063\u3066\u300c\u70b9\u6570\u300d\u3092\u8a08\u7b97\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u306e\u3067\u3001CalcYaku \u3068 CalcTen \u306f\u7121\u95a2\u4fc2\u306b\u306a\u3063\u3066\u3044\u307e\u305b\u3093\u3002\u307e\u3042\u3001\u3053\u308c\u306f\u3053\u308c\u3067\u3088\u3044\u304b\u3068\u3002\n<\/p>\n<p>[code lang=&#8221;csharp&#8221;]<br \/>\n\/\/\/ &lt;summary&gt;<br \/>\n\/\/\/ \u5f79\u30af\u30e9\u30b9<br \/>\n\/\/\/ &lt;\/summary&gt;<br \/>\npublic class Yaku<br \/>\n{<br \/>\n\tpublic List&lt;Card&gt; GoKou;<br \/>\n\tpublic List&lt;Card&gt; ShiKou;<br \/>\n\tpublic List&lt;Card&gt; AmeShiKou;<br \/>\n\tpublic List&lt;Card&gt; SanKou;<br \/>\n\tpublic List&lt;Card&gt; InoShika;<br \/>\n\tpublic List&lt;Card&gt; AkaTan;<br \/>\n\tpublic List&lt;Card&gt; AoTan;<br \/>\n\tpublic List&lt;Card&gt; Hanami;<br \/>\n\tpublic List&lt;Card&gt; Tukimi;<br \/>\n\tpublic List&lt;Card&gt; Tane;<br \/>\n\tpublic List&lt;Card&gt; Tan;<br \/>\n\tpublic List&lt;Card&gt; Kasu;<br \/>\n}<\/p>\n<p>\/\/\/ &lt;summary&gt;<br \/>\n\/\/\/ \u30b2\u30fc\u30e0\u30eb\u30fc\u30eb\u30e9\u30a4\u30d6\u30e9\u30ea<br \/>\n\/\/\/ &lt;\/summary&gt;<br \/>\npublic class Game<br \/>\n{<br \/>\n&#8230;<br \/>\n\t\/\/\/ &lt;summary&gt;<br \/>\n\t\/\/\/ \u5f79\u3092\u8a08\u7b97\u3059\u308b<br \/>\n\t\/\/\/ &lt;\/summary&gt;<br \/>\n\t\/\/\/ &lt;param name=&quot;cards&quot;&gt;&lt;\/param&gt;<br \/>\n\t\/\/\/ &lt;returns&gt;&lt;\/returns&gt;<br \/>\n\tpublic Yaku CalcYaku(List&lt;Card&gt; cards)<br \/>\n\t{<br \/>\n\t\tYaku yaku = new Yaku();<br \/>\n\t\t\/\/ \u83ca\u306b\u76c3\u306e\u6709\u7121\u3092\u30c1\u30a7\u30c3\u30af<br \/>\n\t\tbool I1 = cards.Find(n =&gt; n.ID == &quot;I1&quot;) != null;<\/p>\n<p>\t\t\/\/ 20\u70b9\u672d\u3092\u30c1\u30a7\u30c3\u30af<br \/>\n\t\tvar cs = cards.FindAll(n =&gt; n.Ten == 20);<br \/>\n\t\tif (cs.Count == 5)<br \/>\n\t\t\tyaku.GoKou = new List&lt;Card&gt;( cs );<br \/>\n\t\telse if ( cs.Count == 4 )<br \/>\n\t\t\tif (cs.Find(n =&gt; n.ID == &quot;K1&quot;) != null )<br \/>\n \t\t\t\t\tyaku.AmeShiKou = new List&lt;Card&gt;( cs );<br \/>\n\t\t\telse<br \/>\n\t\t\t\tyaku.ShiKou = new List&lt;Card&gt;( cs );<br \/>\n\t\telse if ( cs.Count == 3 )<br \/>\n\t\t\tyaku.SanKou = new List&lt;Card&gt;( cs );<\/p>\n<p>\t\t\/\/ \u82b1\u898b\u3001\u6708\u898b<br \/>\n\t\tcs = cards.FindAll(n =&gt; n.ID == &quot;I1&quot; || n.ID == &quot;C1&quot;);<br \/>\n\t\tif ( cs.Count == 2 )<br \/>\n\t\t\tyaku.Hanami = new List&lt;Card&gt;(cs);<br \/>\n\t\tcs = cards.FindAll(n =&gt; n.ID == &quot;I1&quot; || n.ID == &quot;H1&quot;);<br \/>\n\t\tif (cs.Count == 2)<br \/>\n\t\t\tyaku.Hanami = new List&lt;Card&gt;(cs);<\/p>\n<p>\t\t\/\/ \u732a\u9e7f\u8776<br \/>\n\t\tcs = cards.FindAll(n =&gt; n.ID == &quot;G1&quot; || n.ID == &quot;J1&quot; || n.ID == &quot;F1&quot;);<br \/>\n\t\tif (cs.Count == 3)<br \/>\n\t\t{<br \/>\n\t\t\tyaku.InoShika = new List&lt;Card&gt;(cs);<br \/>\n\t\t\t\/\/ \u30bf\u30cd\u306b\u8ffd\u52a0<br \/>\n\t\t\tyaku.Tane = cards.FindAll(n =&gt; n.Ten == 10);<br \/>\n\t\t}<br \/>\n\t\t\/\/ \u8d64\u77ed<br \/>\n\t\tcs = cards.FindAll(n =&gt; n.ID == &quot;A2&quot; || n.ID == &quot;B2&quot; || n.ID == &quot;C2&quot;);<br \/>\n\t\tif ( cs.Count == 3 )<br \/>\n\t\t\tyaku.AkaTan = new List&lt;Card&gt;(cs);<br \/>\n\t\t\/\/ \u9752\u77ed<br \/>\n\t\tcs = cards.FindAll(n =&gt; n.ID == &quot;I2&quot; || n.ID == &quot;J2&quot; || n.ID == &quot;F2&quot;);<br \/>\n\t\tif ( cs.Count == 3 )<br \/>\n\t\t\tyaku.AoTan = new List&lt;Card&gt;(cs);<br \/>\n\t\tif (yaku.AkaTan != null || yaku.AoTan != null)<br \/>\n\t\t{<br \/>\n\t\t\t\/\/ \u30bf\u30f3\u306b\u8ffd\u52a0<br \/>\n\t\t\tyaku.Tan = cards.FindAll(n =&gt; n.Ten == 5);<br \/>\n\t\t}<br \/>\n\t\t\/\/ \u30bf\u30cd<br \/>\n\t\tif ( yaku.Tane == null ) {<br \/>\n\t\t\tcs = cards.FindAll(n =&gt; n.Ten == 10);<br \/>\n\t\t\tif ( cs.Count &gt;= 5 )<br \/>\n\t\t\t\tyaku.Tane = new List&lt;Card&gt;(cs);<br \/>\n\t\t}<br \/>\n\t\t\/\/ \u30bf\u30f3<br \/>\n\t\tif ( yaku.Tan == null ) {<br \/>\n\t\t\tcs = cards.FindAll(n =&gt; n.Ten == 5);<br \/>\n\t\t\tif ( cs.Count &gt;= 5 )<br \/>\n\t\t\t\tyaku.Tane = new List&lt;Card&gt;(cs);<br \/>\n\t\t}<br \/>\n\t\t\/\/ \u30ab\u30b9<br \/>\n\t\tcs = cards.FindAll(n =&gt; n.Ten == 1);<br \/>\n\t\tif ( I1 == true &amp;&amp; yaku.Tane.Find(n=&gt;n.ID== &quot;I1&quot;) == null )<br \/>\n\t\t\tcs.Add( cards.Find( n=&gt;n.ID == &quot;I1&quot; ));<br \/>\n\t\tif ( cs.Count &gt;= 10 )<br \/>\n\t\t\tyaku.Kasu = new List&lt;Card&gt;(cs);<\/p>\n<p>\t\treturn yaku;<br \/>\n\t}<\/p>\n<p>\t\/\/\/ &lt;summary&gt;<br \/>\n\t\/\/\/ \u70b9\u6570\u3092\u8a08\u7b97\u3059\u308b<br \/>\n\t\/\/\/ &lt;\/summary&gt;<br \/>\n\t\/\/\/ &lt;param name=&quot;yaku&quot;&gt;&lt;\/param&gt;<br \/>\n\t\/\/\/ &lt;returns&gt;&lt;\/returns&gt;<br \/>\n\tpublic int CalcTen( Yaku yaku )<br \/>\n\t{<br \/>\n\t\tint ten = 0;<br \/>\n\t\t\/\/ 20\u70b9\u672d\u3092\u30c1\u30a7\u30c3\u30af<br \/>\n\t\tif (yaku.GoKou != null) ten += 10;\t\/\/ \u4e94\u5149<br \/>\n\t\tif (yaku.SanKou != null) ten += 8;\t\/\/ \u56db\u5149<br \/>\n\t\tif (yaku.AmeShiKou != null) ten += 7;\t\/\/ \u96e8\u56db\u5149<br \/>\n\t\tif (yaku.SanKou != null) ten += 5;\t\/\/ \u4e09\u5149<br \/>\n\t\tif (yaku.Hanami != null) ten += 5;\t\/\/ \u82b1\u898b<br \/>\n\t\tif (yaku.Tukimi != null) ten += 5;\t\/\/ \u6708\u898b<br \/>\n\t\tif (yaku.InoShika != null)\t\/\/ \u732a\u9e7f\u8776<br \/>\n\t\t{<br \/>\n\t\t\tten += 5;<br \/>\n\t\t\t\/\/ \u30bf\u30cd\u5206\u3092\u52a0\u7b97<br \/>\n\t\t\tif (yaku.Tane != null)<br \/>\n\t\t\t\tten += yaku.Tane.Count &#8211; 3;<br \/>\n\t\t}<br \/>\n\t\tif (yaku.AkaTan != null) ten += 5;\t\/\/ \u8d64\u77ed<br \/>\n\t\tif (yaku.AoTan != null) ten += 5;\t\/\/ \u9752\u77ed<br \/>\n\t\tif (yaku.AoTan != null || yaku.AkaTan != null)<br \/>\n\t\t{<br \/>\n\t\t\t\/\/ \u30bf\u30f3\u5206\u3092\u52a0\u7b97<br \/>\n\t\t\tif (yaku.Tan != null)<br \/>\n\t\t\t\tten += yaku.Tan.Count &#8211; yaku.AkaTan.Count &#8211; yaku.AoTan.Count;<br \/>\n\t\t}<br \/>\n\t\t\/\/ \u30bf\u30cd<br \/>\n\t\tif (yaku.Tane != null &amp;&amp; yaku.InoShika == null)<br \/>\n\t\t\tten += yaku.Tane.Count &#8211; 4;<br \/>\n\t\t\/\/ \u30bf\u30f3<br \/>\n\t\tif (yaku.Tan != null &amp;&amp; yaku.AkaTan == null &amp;&amp; yaku.AoTan == null)<br \/>\n\t\t\tten += yaku.Tan.Count &#8211; 4;<br \/>\n\t\t\/\/ \u30ab\u30b9<br \/>\n\t\tif (yaku.Kasu != null)<br \/>\n\t\t\tten += yaku.Kasu.Count &#8211; 9;<br \/>\n\t\treturn ten;<br \/>\n\t}<br \/>\n}<br \/>\n[\/code]<\/p>\n<p>\n\u3067\u3001\u3053\u308c\u3092\u7d44\u307f\u8fbc\u3093\u3067\u3001\u30c1\u30fc\u30d7\u306a\u753b\u9762\u3092\u4f7f\u3063\u3066\u30c6\u30b9\u30c8\u3092\u3059\u308b\u3068\u3001\u305d\u3053\u305d\u3053\u300c\u904a\u3079\u308b\u300d\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002\u6614\u306a\u3089\u3070\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067\u307d\u3061\u307d\u3061\u3068\u30ad\u30fc\u30dc\u30fc\u30c9\u3067\u30c6\u30b9\u30c8\u3092\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001Windows \u30d5\u30a9\u30fc\u30e0\u304c\u7c21\u5358\u306b\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u306e\u3067\u3001\u3053\u308c\u306f\u3053\u308c\u3067\u3088\u3044\u304b\u3068\u3002\n<\/p>\n<p>\n\u25a0\u304a\u6b21\u306f\n<\/p>\n<ol>\n<li>\u30c7\u30fc\u30bf\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3059\u308b<\/li>\n<li>\u30c1\u30fc\u30d7\u306a\u753b\u9762\u3092\u4f5c\u6210\u3059\u308b<\/li>\n<li>\u30b2\u30fc\u30e0\u30ed\u30b8\u30c3\u30af\u3092\u4f5c\u6210\u3059\u308b<\/li>\n<\/ol>\n<p>\n\u3063\u3066\u3068\u3053\u308d\u307e\u3067\u3067\u304d\u305f\u306e\u3067\u3001\u3053\u306e\u5ea6\u306f View \u306e\u90e8\u5206\u3092\u5c11\u3057\u30ea\u30c3\u30c1\u306b\u3057\u3066\u307f\u307e\u3059\u3002<br \/>\n\u30ea\u30c3\u30c1\u306b\u3059\u308b\u3068\u3053\u308d\u306f\u3001\n<\/p>\n<ol>\n<li>\u82b1\u672d\u306e\u753b\u50cf\u3092\u4f7f\u3063\u3066\u8868\u793a\u3059\u308b\u3002<\/li>\n<li>\u82b1\u672d\u30b2\u30fc\u30e0\u306e\u30a2\u30af\u30b7\u30e7\u30f3\u3092\u4f5c\u308b\u3002<\/li>\n<\/ol>\n<p>\n\u3063\u3066\u3068\u3053\u308d\u3067\u3059\u3002\u82b1\u672d\u306e\u753b\u50cf\u81ea\u4f53\u306f\u3001Windows \u30b9\u30c8\u30a2 \u30a2\u30d7\u30ea\u306e\u30b2\u30fc\u30e0\u753b\u50cf\u3092\u6d41\u7528\u3059\u308b\u3068\u3057\u3066\u3001\u30a2\u30af\u30b7\u30e7\u30f3\u306e\u90e8\u5206\u306f\u3001MVVM \u3068\u30e6\u30fc\u30b6\u30fc\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3068\u306e\u517c\u306d\u5408\u3044\u3082\u3042\u308b\u306e\u3067\u3001\u3061\u3087\u3063\u3068\u8a66\u884c\u4e2d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6b63\u6708\u3092\u6f70\u3057\u3066\u4ed5\u4e8b\u3001\u305d\u306e\u3042\u305f\u6c17\u75b2\u308c\uff08\uff1f\uff09\u3068\u30a4\u30f3\u30d5\u30eb\u30a8\u30f3\u30b6\u306e\u6253\u6483&#8230;\u3063\u3066\u306a\u611f\u3058\u3067\uff11\u6708\u304c\u3042\u3063\u3068\u3044\u3046\u9593\u306b\u904e\u304e\u3066\u3057\u307e\u3063\u305f\u308f\u3051\u3067\u3059\u304c\u3002\u300c\u3042\u3063\u3068\u3044\u3046\u9593\u300d\u304b\u3069\u3046\u304b\u306f\u3001\u904e\u53bb\u3092\u632f\u308a\u66ff\u3048\u3066\u307f\u308b\u3068\u308f\u304b\u308b\u304b\u3082\u3001\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u3057\u3070\u3089\u304f\u306f\u3001 &hellip; <a href=\"http:\/\/www.moonmile.net\/blog\/archives\/3983\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[5],"tags":[],"class_list":["post-3983","post","type-post","status-publish","format-standard","hentry","category-etc"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/3983","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/comments?post=3983"}],"version-history":[{"count":0,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/3983\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/media?parent=3983"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/categories?post=3983"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/tags?post=3983"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}