Hamcha
37645e37f7
All checks were successful
continuous-integration/drone/push Build is passing
Tests now do not require internet access anymore Closes #4
12 lines
263 B
Go
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
|
|
}
|