예제 #1
0
        public void netscan()
        {
            Console.WriteLine("==================== NETSCAN ====================");
            Console.WriteLine("Computer(s) on the network:");
            int    temp = GameInstance.randomNumber(3, 10);
            string ip;
            string ipLocation;

            for (int i = 0; i < temp; i++)
            {
                ip         = GameInstance.ipGenerator();
                ipLocation = aiSaveLocation + "/" + ip + "/";
                if (Directory.Exists(ipLocation))
                {
                    Console.WriteLine(ip + "|..........|FireWall Level: " + AIManager.aiFirewallLevel(ipLocation));
                }
                else
                {
                    AIManager.generateAI(ip);
                }
                Console.WriteLine(ip + "|..........|FireWall Level: " + AIManager.aiFirewallLevel(ipLocation));
            }
            Console.WriteLine("");
        }//scan network for ip addresses, if found new ip create new ai with that ip