draft/mlp/utils.go
Hamcha 37645e37f7
All checks were successful
continuous-integration/drone/push Build is passing
Make HTTP server and URL customizable
Tests now do not require internet access anymore

Closes #4
2019-06-28 17:24:47 +02:00

12 lines
263 B
Go

package mlp
import "git.fromouter.space/mcg/draft"
// ToDraft 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
}