fn reset(&mut self) {
        self.game_data.vec_cards = GameData::prepare_for_empty();
        self.game_data.count_click_inside_one_turn = 0;
        self.game_data.card_index_of_first_click = 0;
        self.game_data.card_index_of_second_click = 0;
        self.game_data.count_all_clicks = 0;
        self.game_data.other_ws_uid = 0;
        self.game_data.game_state = GameState::Start;
        self.game_data.content_folder_name = "alphabet".to_string();
        self.game_data.player1_points = 0;
        self.game_data.player2_points = 0;
        self.game_data.this_machine_player_number = 0;
        self.game_data.player_turn = 0;
        self.game_data.spelling = None;

        self.check_invalidate_for_all_components();
    }
///reset the data to replay the game
reset the data to replay the game
reset the data to replay the game
fn reset(&mut self) {
        self.game_data.vec_cards = GameData::prepare_for_empty();
        self.game_data.count_click_inside_one_turn = 0;
        self.game_data.card_index_of_first_click = 0;
        self.game_data.card_index_of_second_click = 0;
        self.game_data.count_all_clicks = 0;
        self.game_data.other_ws_uid = 0;
        self.game_data.game_state = GameState::Start;
        self.game_data.content_folder_name = "alphabet".to_string();
        self.game_data.player1_points = 0;
        self.game_data.player2_points = 0;
        self.game_data.this_machine_player_number = 0;
        self.game_data.player_turn = 0;
        self.game_data.spelling = None;
        self.check_invalidate_for_all_components();
    }
fn reset ( & mut self ) { self . game_data . vec_cards = GameData :: prepare_for_empty ( ) ; self . game_data . count_click_inside_one_turn = 0 ; self . game_data . card_index_of_first_click = 0 ; self . game_data . card_index_of_second_click = 0 ; self . game_data . count_all_clicks = 0 ; self . game_data . other_ws_uid = 0 ; self . game_data . game_state = GameState :: Start ; self . game_data . content_folder_name = " " . to_string ( ) ; self . game_data . player1_points = 0 ; self . game_data . player2_points = 0 ; self . game_data . this_machine_player_number = 0 ; self . game_data . player_turn = 0 ; self . game_data . spelling = None ; self . check_invalidate_for_all_components ( ) ; }
reset the data to replay the game
reset the data to replay the game
&mut self
&mut self