An optimal fuzzy logic controller (FLC) tuning algorithm is reported in this paper. With the aid of generic algorithms (GA), optimal rules of fuzzy logic controller are designed. This is achieved by deriving a tailor-made encoding scheme, initialisation, crossover and mutation of rule table into chromosomes. The genetic algorithm incorporates as much existing knowledge of the system as possible to increase the speed of optimisation. For the linear system, the proposed algorithm shows a significant improvement in convergence. For non-linear system, the algorithm attempted the truck and truck-and-tailer backing up problems for the whole plan. If is concluded that the proposed algorithm can be applied effectively to solve variety of problems and can accommodate different performance criterion.