draft/mlp/utils.go

13 lines
255 B
Go
Raw Normal View History

2019-05-31 12:21:50 +00:00
package mlp
import "git.fromouter.space/mcg/draft"
// Converts multiple mlp.Card to draft.Card
func toDraft(cards []Card) []draft.Card {
out := make([]draft.Card, len(cards))
for i, card := range cards {
out[i] = card.ToDraftCard()
}
return out
}