class_game.cpp
short int game::ruleStringToInt(string s){
	short int	x;
	
	x = 0;
	for(auto i:s){
		if(i<'0' || i>='9')
			continue;
			
		i-='0';
		x |= 1<<i;
	}
	
	return x;
}
/**
 *  \brief Converts a string to proper internal game rule format
 *  \return A valid rule format
 */
\brief Converts a string to proper internal game rule format
\return A valid rule format
\ brief Converts a string to proper internal game rule format \ return A valid rule format
short int game::ruleStringToInt(string s){
	short int	x;
	x = 0;
	for(auto i:s){
		if(i<'0' || i>='9')
			continue;
		i-='0';
		x |= 1<<i;
	}
	return x;
}
short int game :: ruleStringToInt ( string s ) { short int x ; x = 0 ; for ( auto i : s ) { if ( i < ' ' || i >= ' ' ) continue ; i -= ' ' ; x |= 1 << i ; } return x ; }
\brief Converts a string to proper internal game rule format
  \return A valid rule format
\ brief Converts a string to proper internal game rule format \ return A valid rule format