The paper presents the continuation of the author's research on ship track planning by means of Evolutionary Algorithms (EA). The presented method uses EA to search for an optimal set of safe tracks for all ships involved in an encounter. Until now the method assumed good visibility – compliance with standard rules of the Convention on the International Regulations for Preventing Collisions at Sea (COLREGS, 1972). However, in restricted visibility, when Rule 19 applies instead of Rules 11 to 18, the problem is a different one. Therefore this paper introduces the extended method, with a focus on compliance with Rule 19 and its implications. It includes descriptions of detecting, penalizing and eliminating violations of Rule 19. The method has been implemented and the paper contains sample results of computer simulation tests carried out for ship encounters in restricted visibility in both open and restricted waters. They confirm the effectiveness of the chosen approach and suggest that the method could be applied in on board decision support systems.