func (cfg Config) validate() error {
	switch {
	case cfg.WinPoints <= 1:
		return fmt.Errorf("winPoints must be over 1")
	}
	return nil
}
// validate ensures the configuration has no errors.
validate ensures the configuration has no errors.
// validate ensures the configuration has no errors .
func (cfg Config) validate() error {
	switch {
	case cfg.WinPoints <= 1:
		return fmt.Errorf("winPoints must be over 1")
	}
	return nil
}
func ( cfg Config ) validate ( ) error { switch { case cfg . WinPoints <= 1 : return fmt . Errorf ( " " ) } return nil }
validate ensures the configuration has no errors.
validate ensures the configuration has no errors .