Commits

David Stone  committed 094b96c

Removed Technical Machine's random responses.

  • Participants
  • Parent commits 8423cb4

Comments (0)

Files changed (2)

File source/clients/network/client.cpp

 namespace {
 
 std::vector<std::string> load_highlights ();
-std::vector<std::string> load_responses ();
 std::vector<std::string> load_trusted_users ();
 void handle_exit_command();
 
 Client::Client(unsigned set_depth):
 	random_engine (rd ()),
 	highlights (load_highlights ()),
-	responses (load_responses ()),
 	trusted_users (load_trusted_users ()),
 	depth (set_depth)
 	{
 	return create_unsorted_vector ("settings/highlights.txt");
 }
 
-std::vector<std::string> load_responses () {
-	return create_unsorted_vector ("settings/responses.txt");
-}
-
 std::vector<std::string> load_trusted_users () {
 	return create_sorted_vector ("settings/trusted_users.txt");
 }
 
 void Client::handle_reload_settings_command () {
 	highlights = load_highlights ();
-	responses = load_responses ();
 	trusted_users = load_trusted_users ();
 	load_settings (true);
 	m_evaluation_constants.load();
 }
 
-std::string Client::get_response () {
-	if (!responses.empty()) {
-		std::uniform_int_distribution<size_t> distribution { 0, responses.size() - 1 };
-		return responses[distribution(random_engine)];
-	}
-	else {
-		return "";
-	}
-}
-
 bool Client::challenges_are_queued() const {
 	return battles.challenges_are_queued();
 }

File source/clients/network/client.hpp

 		void handle_send_pm_command (std::string const & request, size_t start);
 		void handle_reload_settings_command ();
 		virtual void send_battle_challenge (std::string const & opponent) = 0;
-		std::string get_response ();
 
 		boost::asio::io_service io;
 		Battles battles;