Artificial intelligence is used in a variety of fields: planning operations, helping commanders make decisions, etc. However, the use of artificial intelligence in warfare faces to internationally recognized human rights, the Law of War and the Rules of Engagement. The purpose of this work is to attempt to highlight certain ethical, moral, and legal issues that may be relevant to the development and use of artificial intelligence for military purposes. Since there are not enough investigations related to such fields, this paper will be based on the analysis of the use of robots.