The document proposes a priority-based charging and discharging coordination method for electric vehicles (EVs) in smart parking lots. EVs entering the parking lot are assigned scores based on their initial state of charge, required charge amount, and desired departure time, which determines their priority for charging. EVs are monitored every 15 minutes, and any EV with a charge exceeding its required amount following an epoch will have its excess power discharged to charge other EVs parked locally, bypassing the power grid. This method is found to improve performance over other methods in reducing total power consumption and demand spikes on the grid.