飞道的博客

【Java】获取星座匹配度

505人阅读  评论(0)

星座匹配度规则表如下:

获取匹配度代码如下:


  
  1. /** 星座匹配分值 */
  2. private static Map<String, String> constellationScoreMap = new HashMap<>();
  3. /**
  4. * 初始化星座匹配分数
  5. * 1水瓶座 2双鱼座 3白羊座 4金牛座 5双子座 6巨蟹座 7狮子座 8处女座 9天秤座 10天蝎座 11射手座 12摩羯座
  6. * 每个key以两星座编号用-分隔;分值分两个,第一个分数为前男后女时的匹配分数,第二个分数前女后男时的分数
  7. */
  8. static {
  9. //1水瓶座
  10. constellationScoreMap.put( "1-1", "87,87");
  11. constellationScoreMap.put( "1-2", "69,60");
  12. constellationScoreMap.put( "1-3", "88,72");
  13. constellationScoreMap.put( "1-4", "66,72");
  14. constellationScoreMap.put( "1-5", "99,91");
  15. constellationScoreMap.put( "1-6", "74,58");
  16. constellationScoreMap.put( "1-7", "84,78");
  17. constellationScoreMap.put( "1-8", "55,64");
  18. constellationScoreMap.put( "1-9", "95,96");
  19. constellationScoreMap.put( "1-10", "57,51");
  20. constellationScoreMap.put( "1-11", "78,82");
  21. constellationScoreMap.put( "1-12", "57,69");
  22. //2双鱼座
  23. constellationScoreMap.put( "2-1", "60,69");
  24. constellationScoreMap.put( "2-2", "88,88");
  25. constellationScoreMap.put( "2-3", "79,71");
  26. constellationScoreMap.put( "2-4", "81,78");
  27. constellationScoreMap.put( "2-5", "48,46");
  28. constellationScoreMap.put( "2-6", "97,93");
  29. constellationScoreMap.put( "2-7", "62,61");
  30. constellationScoreMap.put( "2-8", "84,65");
  31. constellationScoreMap.put( "2-9", "64,74");
  32. constellationScoreMap.put( "2-10", "92,99");
  33. constellationScoreMap.put( "2-11", "44,54");
  34. constellationScoreMap.put( "2-12", "77,82");
  35. //3白羊座
  36. constellationScoreMap.put( "3-1", "72,88");
  37. constellationScoreMap.put( "3-2", "71,79");
  38. constellationScoreMap.put( "3-3", "90,90");
  39. constellationScoreMap.put( "3-4", "68,75");
  40. constellationScoreMap.put( "3-5", "79,82");
  41. constellationScoreMap.put( "3-6", "52,47");
  42. constellationScoreMap.put( "3-7", "97,94");
  43. constellationScoreMap.put( "3-8", "61,65");
  44. constellationScoreMap.put( "3-9", "85,85");
  45. constellationScoreMap.put( "3-10", "60,70");
  46. constellationScoreMap.put( "3-11", "92,99");
  47. constellationScoreMap.put( "3-12", "43,58");
  48. //4金牛座
  49. constellationScoreMap.put( "4-1", "41,66");
  50. constellationScoreMap.put( "4-2", "78,81");
  51. constellationScoreMap.put( "4-3", "75,68");
  52. constellationScoreMap.put( "4-4", "88,88");
  53. constellationScoreMap.put( "4-5", "76,72");
  54. constellationScoreMap.put( "4-6", "82,75");
  55. constellationScoreMap.put( "4-7", "56,45");
  56. constellationScoreMap.put( "4-8", "91,97");
  57. constellationScoreMap.put( "4-9", "74,57");
  58. constellationScoreMap.put( "4-10", "80,78");
  59. constellationScoreMap.put( "4-11", "70,61");
  60. constellationScoreMap.put( "4-12", "97,93");
  61. //5双子座
  62. constellationScoreMap.put( "5-1", "91,99");
  63. constellationScoreMap.put( "5-2", "46,48");
  64. constellationScoreMap.put( "5-3", "82,79");
  65. constellationScoreMap.put( "5-4", "72,76");
  66. constellationScoreMap.put( "5-5", "89,89");
  67. constellationScoreMap.put( "5-6", "78,71");
  68. constellationScoreMap.put( "5-7", "79,81");
  69. constellationScoreMap.put( "5-8", "76,57");
  70. constellationScoreMap.put( "5-9", "98,93");
  71. constellationScoreMap.put( "5-10", "68,69");
  72. constellationScoreMap.put( "5-11", "81,70");
  73. constellationScoreMap.put( "5-12", "70,86");
  74. //6巨蟹座
  75. constellationScoreMap.put( "6-1", "58,74");
  76. constellationScoreMap.put( "6-2", "93,97");
  77. constellationScoreMap.put( "6-3", "47,52");
  78. constellationScoreMap.put( "6-4", "75,82");
  79. constellationScoreMap.put( "6-5", "71,78");
  80. constellationScoreMap.put( "6-6", "89,89");
  81. constellationScoreMap.put( "6-7", "69,61");
  82. constellationScoreMap.put( "6-8", "88,84");
  83. constellationScoreMap.put( "6-9", "58,66");
  84. constellationScoreMap.put( "6-10", "97,92");
  85. constellationScoreMap.put( "6-11", "65,70");
  86. constellationScoreMap.put( "6-12", "80,87");
  87. //7狮子座
  88. constellationScoreMap.put( "7-1", "78,84");
  89. constellationScoreMap.put( "7-2", "61,62");
  90. constellationScoreMap.put( "7-3", "94,97");
  91. constellationScoreMap.put( "7-4", "45,56");
  92. constellationScoreMap.put( "7-5", "81,79");
  93. constellationScoreMap.put( "7-6", "61,69");
  94. constellationScoreMap.put( "7-7", "87,87");
  95. constellationScoreMap.put( "7-8", "66,72");
  96. constellationScoreMap.put( "7-9", "88,81");
  97. constellationScoreMap.put( "7-10", "65,45");
  98. constellationScoreMap.put( "7-11", "98,92");
  99. constellationScoreMap.put( "7-12", "59,77");
  100. //8处女座
  101. constellationScoreMap.put( "8-1", "64,55");
  102. constellationScoreMap.put( "8-2", "65,84");
  103. constellationScoreMap.put( "8-3", "65,61");
  104. constellationScoreMap.put( "8-4", "97,91");
  105. constellationScoreMap.put( "8-5", "57,76");
  106. constellationScoreMap.put( "8-6", "84,88");
  107. constellationScoreMap.put( "8-7", "72,66");
  108. constellationScoreMap.put( "8-8", "89,89");
  109. constellationScoreMap.put( "8-9", "77,48");
  110. constellationScoreMap.put( "8-10", "84,81");
  111. constellationScoreMap.put( "8-11", "58,72");
  112. constellationScoreMap.put( "8-12", "92,95");
  113. //9天秤座
  114. constellationScoreMap.put( "9-1", "96,95");
  115. constellationScoreMap.put( "9-2", "74,64");
  116. constellationScoreMap.put( "9-3", "85,85");
  117. constellationScoreMap.put( "9-4", "57,74");
  118. constellationScoreMap.put( "9-5", "93,98");
  119. constellationScoreMap.put( "9-6", "66,58");
  120. constellationScoreMap.put( "9-7", "81,88");
  121. constellationScoreMap.put( "9-8", "48,77");
  122. constellationScoreMap.put( "9-9", "90,90");
  123. constellationScoreMap.put( "9-10", "73,71");
  124. constellationScoreMap.put( "9-11", "86,80");
  125. constellationScoreMap.put( "9-12", "51,47");
  126. //10天蝎座
  127. constellationScoreMap.put( "10-1", "51,57");
  128. constellationScoreMap.put( "10-2", "99,92");
  129. constellationScoreMap.put( "10-3", "70,60");
  130. constellationScoreMap.put( "10-4", "78,80");
  131. constellationScoreMap.put( "10-5", "69,68");
  132. constellationScoreMap.put( "10-6", "92,97");
  133. constellationScoreMap.put( "10-7", "45,65");
  134. constellationScoreMap.put( "10-8", "81,84");
  135. constellationScoreMap.put( "10-9", "71,73");
  136. constellationScoreMap.put( "10-10", "87,87");
  137. constellationScoreMap.put( "10-11", "68,47");
  138. constellationScoreMap.put( "10-12", "85,76");
  139. //11射手座
  140. constellationScoreMap.put( "11-1", "82,78");
  141. constellationScoreMap.put( "11-2", "54,44");
  142. constellationScoreMap.put( "11-3", "99,92");
  143. constellationScoreMap.put( "11-4", "61,70");
  144. constellationScoreMap.put( "11-5", "86,81");
  145. constellationScoreMap.put( "11-6", "70,65");
  146. constellationScoreMap.put( "11-7", "92,98");
  147. constellationScoreMap.put( "11-8", "72,58");
  148. constellationScoreMap.put( "11-9", "80,86");
  149. constellationScoreMap.put( "11-10", "47,68");
  150. constellationScoreMap.put( "11-11", "89,89");
  151. constellationScoreMap.put( "11-12", "64,75");
  152. //12摩羯座
  153. constellationScoreMap.put( "12-1", "69,74");
  154. constellationScoreMap.put( "12-2", "82,77");
  155. constellationScoreMap.put( "12-3", "58,43");
  156. constellationScoreMap.put( "12-4", "93,97");
  157. constellationScoreMap.put( "12-5", "64,70");
  158. constellationScoreMap.put( "12-6", "87,80");
  159. constellationScoreMap.put( "12-7", "77,59");
  160. constellationScoreMap.put( "12-8", "95,92");
  161. constellationScoreMap.put( "12-9", "47,51");
  162. constellationScoreMap.put( "12-10", "76,85");
  163. constellationScoreMap.put( "12-11", "75,64");
  164. constellationScoreMap.put( "12-12", "88,88");
  165. }

 


转载:https://blog.csdn.net/msllws/article/details/111934553
查看评论
* 以上用户言论只代表其个人观点,不代表本网站的观点或立场