fuzzy code

I need to control a MOSFET transistor switching using fuzzy logic controller
is there is a fuzzy code for arduino uno that use atmega328p microcontroller for this purpose

Your question doesn't make sense, specifically your use of "fuzzy logic" and "fuzzy code".

What do you want to do?

"Fuzzy logic" is a general type of proportional control algorithms which can be used to function similarly to PID control systems. Unlike "PID", it can implement non-linear (or discontinuous) algorithms which probably more closely emulate the function of animal nervous systems. It can thus be more effective and indeed, computationally efficient.

But here we see yet again the archetypal "XY Problem" because what husseinUKM should be doing is to explain what he really wants to do. Whether or not "fuzzy logic" is in fact relevant, is moot.

I agree with Paul__B, we in the forum really like to know 'the problem to be solved' and then help the Op make the right choice.

But, assuming that the Op has made the right choice, this google will provide the existing library(ies):
Fuzzy Logic for Arduino

Ray