Go で書き直した Ikemen
Revision | fefae2dc952c58dbf35c873badf830eb43ff71bb (tree) |
---|---|
Time | 2017-04-28 20:15:56 |
Author | SUEHIRO <supersuehiro@user...> |
Commiter | SUEHIRO |
引き分けで maxdrawgames が無効だったり、Turnsでバグるのを修正
@@ -924,7 +924,7 @@ func (s *System) action(x, y *float32, scl float32) (leftest, rightest, | ||
924 | 924 | } |
925 | 925 | if s.roundEnd() || fin() { |
926 | 926 | inclWinCount := func() { |
927 | - w := [...]bool{s.chars[0][0].win(), s.chars[1][0].win()} | |
927 | + w := [...]bool{!s.chars[1][0].win(), !s.chars[0][0].win()} | |
928 | 928 | if !w[0] || !w[1] || |
929 | 929 | s.tmode[0] == TM_Turns || s.tmode[1] == TM_Turns || |
930 | 930 | s.draws >= s.lifebar.ro.match_maxdrawgames { |