Skip to content

Commit

Permalink
update fate
Browse files Browse the repository at this point in the history
  • Loading branch information
godcong committed Oct 8, 2020
1 parent 51a3c9a commit 4ab6d7d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions xiyong.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package fate

import "strings"
import (
"math"
"strings"
)

//XiYong 喜用神
type XiYong struct {
Expand Down Expand Up @@ -39,7 +42,7 @@ func (xy *XiYong) GetFen(s string) (point int) {
}

func (xy *XiYong) minFenWuXing(ss ...string) (wx string) {
min := 9999
min := math.MaxInt64
for _, s := range ss {
if xy.WuXingFen[s] < min {
min = xy.WuXingFen[s]
Expand Down

0 comments on commit 4ab6d7d

Please sign in to comment.