优化
This commit is contained in:
parent
daff3f15a1
commit
938d586ebf
@ -538,6 +538,9 @@ func (cb *ChessBorad) GetRetireChess(EmitType string) []int {
|
||||
}
|
||||
|
||||
func (cb *ChessBorad) BeginRetire(EmitType string) error {
|
||||
if cb.Retire == nil {
|
||||
cb.Retire = make(map[string]int)
|
||||
}
|
||||
_, ok := cb.Retire[EmitType]
|
||||
if ok {
|
||||
return errors.New("chess has been retired")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user