pub fn check_foundations(game_state: &GameState) -> Result<(), String> {
    for suit in [Club, Spade, Heart, Diamond].iter() {
        check_foundation(&game_state.foundations.foundation(*suit), *suit)?;
    }
    Ok(())
}
/// Checks whether there is one foundation of each suit and whether each individual foundation is
/// correct.
Checks whether there is one foundation of each suit and whether each individual foundation is
correct.
Checks whether there is one foundation of each suit and whether each individual foundation is correct .
pub fn check_foundations(game_state: &GameState) -> Result<(), String> {
    for suit in [Club, Spade, Heart, Diamond].iter() {
        check_foundation(&game_state.foundations.foundation(*suit), *suit)?;
    }
    Ok(())
}
pub fn check_foundations ( game_state : & GameState ) -> Result < ( ) , String > { for suit in [ Club , Spade , Heart , Diamond ] . iter ( ) { check_foundation ( & game_state . foundations . foundation ( * suit ) , * suit ) ? ; } Ok ( ( ) ) }
Checks whether there is one foundation of each suit and whether each individual foundation is
correct.
Checks whether there is one foundation of each suit and whether each individual foundation is correct .
game_state
&GameState
game_state
&GameState