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
2019-06-26 10:14:46 +00:00
func ToDraft(cards []Card) []draft.Card {
2019-05-31 12:21:50 +00:00
out := make([]draft.Card, len(cards))
for i, card := range cards {
out[i] = card.ToDraftCard()
}
return out
}