func ImportEngines(uciWhite string, uciBlack string, uciHint string, engines []UCIEngine) (*UCIEngine, *UCIEngine, *UCIEngine) {
	var cfgWhite, cfgBlack, cfgHint UCIEngine
	var whiteFound, blackFound, hintFound bool

	for _, e := range engines {
		if uciWhite == e.Name {
			cfgWhite = e
			whiteFound = true
		}

		if uciBlack == e.Name {
			cfgBlack = e
			blackFound = true
		}

		if uciHint == e.Name {
			cfgHint = e
			hintFound = true
		}
	}

	if !whiteFound {
		panic("failed to import white engine config")
	}

	if !blackFound {
		panic("failed to import black engine config")
	}

	if !hintFound {
		panic("failed to import hint engine config")
	}

	return &cfgWhite, &cfgBlack, &cfgHint
}
// ImportEngines returns a UCIEngine config for white and black
ImportEngines returns a UCIEngine config for white and black
// ImportEngines returns a UCIEngine config for white and black
func ImportEngines(uciWhite string, uciBlack string, uciHint string, engines []UCIEngine) (*UCIEngine, *UCIEngine, *UCIEngine) {
	var cfgWhite, cfgBlack, cfgHint UCIEngine
	var whiteFound, blackFound, hintFound bool
	for _, e := range engines {
		if uciWhite == e.Name {
			cfgWhite = e
			whiteFound = true
		}
		if uciBlack == e.Name {
			cfgBlack = e
			blackFound = true
		}
		if uciHint == e.Name {
			cfgHint = e
			hintFound = true
		}
	}
	if !whiteFound {
		panic("failed to import white engine config")
	}
	if !blackFound {
		panic("failed to import black engine config")
	}
	if !hintFound {
		panic("failed to import hint engine config")
	}
	return &cfgWhite, &cfgBlack, &cfgHint
}
func ImportEngines ( uciWhite string , uciBlack string , uciHint string , engines [ ] UCIEngine ) ( * UCIEngine , * UCIEngine , * UCIEngine ) { var cfgWhite , cfgBlack , cfgHint UCIEngine var whiteFound , blackFound , hintFound bool for _ , e := range engines { if uciWhite == e . Name { cfgWhite = e whiteFound = true } if uciBlack == e . Name { cfgBlack = e blackFound = true } if uciHint == e . Name { cfgHint = e hintFound = true } } if ! whiteFound { panic ( " " ) } if ! blackFound { panic ( " " ) } if ! hintFound { panic ( " " ) } return & cfgWhite , & cfgBlack , & cfgHint }
ImportEngines returns a UCIEngine config for white and black
ImportEngines returns a UCIEngine config for white and black