()
| 219 | } |
| 220 | |
| 221 | func (stack *Stack) Parent() *Card { |
| 222 | var parent *Card |
| 223 | stack.ForEachInHead(func(c *Card) bool { |
| 224 | if c.Stack.Number.IsParentOf(stack.Number) { |
| 225 | parent = c |
| 226 | return false |
| 227 | } |
| 228 | return true |
| 229 | }) |
| 230 | return parent |
| 231 | } |
| 232 | |
| 233 | func (stack *Stack) TopNumberable() *Card { |
| 234 |
nothing calls this directly
no test coverage detected