Ejemplo n.º 1
0
func (entity *Entity) GetExchangeReturnChoices(log *log.Entity, playerNames []string, coinInfo map[string]int, faceupInfo map[string][]int, deck *deck.Entity) (int, int) {
	choice1 := rand.Intn(deck.Size())
	var choice2 int
	for choice2 == choice1 {
		choice2 = rand.Intn(deck.Size())
	}
	return deck.Cards()[choice1], deck.Cards()[choice2]
}