src/bulls_and_cows_lib/board.cpp
Board create_board(const GameOptions& game_options){
        Board board;

        // on va declarer une classe string sc pour la concatenation de tout ce que la fonction generate_random_character renvoie.
        std::string sc = "";
        for (unsigned int i = 0; i < game_options.number_of_characters_per_code; i++) {

             // concatenation.
             sc = sc + generate_random_character(game_options.minimum_allowed_character, game_options.maximum_allowed_character);
        }

        // attribution du resultat de la concatenation au membre secret_code.
        board.secret_code.value= sc;

        return board;

        
    }
// Create a board and with a new random secret code composed of allowed characters
Create a board and with a new random secret code composed of allowed characters
Create a board and with a new random secret code composed of allowed characters
Board create_board(const GameOptions& game_options){
        Board board;
        std::string sc = "";
        for (unsigned int i = 0; i < game_options.number_of_characters_per_code; i++) {
             sc = sc + generate_random_character(game_options.minimum_allowed_character, game_options.maximum_allowed_character);
        }
        board.secret_code.value= sc;
        return board;
    }
Board create_board ( const GameOptions & game_options ) { Board board ; std :: string sc = " " ; for ( unsigned int i = 0 ; i < game_options . number_of_characters_per_code ; i ++ ) { sc = sc + generate_random_character ( game_options . minimum_allowed_character , game_options . maximum_allowed_character ) ; } board . secret_code . value = sc ; return board ; }
Create a board and with a new random secret code composed of allowed characters
Create a board and with a new random secret code composed of allowed characters
// on va declarer une classe string sc pour la concatenation de tout ce que la fonction generate_random_character renvoie. // concatenation. // attribution du resultat de la concatenation au membre secret_code.