()
| 189 | } |
| 190 | |
| 191 | func (stack *Stack) Children() []*Card { |
| 192 | children := []*Card{} |
| 193 | for _, c := range stack.Tail() { |
| 194 | if c == stack.Card { |
| 195 | continue |
| 196 | } |
| 197 | if stack.Number.IsParentOf(c.Stack.Number) { |
| 198 | children = append(children, c) |
| 199 | } |
| 200 | } |
| 201 | return children |
| 202 | } |
| 203 | |
| 204 | func (s *Stack) ForEachInHead(f func(c *Card) bool) { |
| 205 |
no test coverage detected