Esempio n. 1
0
func startGame() (*model.Player, *model.Board) {
	utils.CleanScreen()
	fmt.Print(" Please introduce your full name: ")
	scanner := bufio.NewScanner(os.Stdin)
	var playerFullName = ""
	for scanner.Scan() {
		playerFullName = scanner.Text()
		break
	}
	return model.NewPlayer(playerFullName), model.NewBoard()
}
Esempio n. 2
0
func display(player *model.Player, board *model.Board) {
	utils.CleanScreen()
	model.DisplayPlayer(player)
	model.DisplayBoard(board)
}