Пример #1
0
func (entity *Entity) GetStealBlockCardChoice(log *log.Entity, playerNames []string, coinInfo map[string]int, faceupInfo map[string][]int, deck *deck.Entity) int {
	fmt.Println(log.PrettyJsonStr())
	printPersonalTable(entity.playerName, playerNames, coinInfo, faceupInfo, deck)
	var choice int
	fmt.Printf("GetStealBlockCardChoice:\n> ")
	fmt.Scanf("%d\n", &choice)
	return choice
}
Пример #2
0
func (entity *Entity) GetChallenge(log *log.Entity, playerNames []string, coinInfo map[string]int, faceupInfo map[string][]int, deck *deck.Entity) bool {
	fmt.Println(log.PrettyJsonStr())
	printPersonalTable(entity.playerName, playerNames, coinInfo, faceupInfo, deck)
	var challenge bool
	fmt.Printf("GetChallenge:\n> ")
	fmt.Scanf("%t\n", &challenge)
	return challenge
}
Пример #3
0
func (entity *Entity) GetBlock(log *log.Entity, playerNames []string, coinInfo map[string]int, faceupInfo map[string][]int, deck *deck.Entity) bool {
	fmt.Println(log.PrettyJsonStr())
	printPersonalTable(entity.playerName, playerNames, coinInfo, faceupInfo, deck)
	var block bool
	fmt.Printf("GetBlock:\n> ")
	fmt.Scanf("%t\n", &block)
	return block
}
Пример #4
0
func (entity *Entity) GetTarget(log *log.Entity, playerNames []string, coinInfo map[string]int, faceupInfo map[string][]int, deck *deck.Entity) string {
	fmt.Println(log.PrettyJsonStr())
	printPersonalTable(entity.playerName, playerNames, coinInfo, faceupInfo, deck)
	var target string
	fmt.Printf("GetTarget:\n> ")
	fmt.Scanf("%s\n", &target)
	return target
}
Пример #5
0
func (entity *Entity) GetExchangeReturnChoices(log *log.Entity, playerNames []string, coinInfo map[string]int, faceupInfo map[string][]int, deck *deck.Entity) (int, int) {
	fmt.Println(log.PrettyJsonStr())
	// fmt.Printf("Cards gained by using exchange: %d%d\n", c1, c2)
	printPersonalTable(entity.playerName, playerNames, coinInfo, faceupInfo, deck)
	var r1 int
	fmt.Printf("GetExchangeReturnChoices(1):\n> ")
	fmt.Scanf("%d\n", &r1)
	var r2 int
	fmt.Printf("GetExchangeReturnChoices(2):\n> ")
	fmt.Scanf("%d\n", &r2)
	return r1, r2
}