I sacrificed my knight to open up an attack on the king in one of my games recently but the engine just counted it as losing material.
Engines are excellent at understanding tactics and likely your sacrifice wasn't good with best defense and that's why the engine didn't like it.
I sacrificed my knight to open up an attack on the king in one of my games recently but the engine just counted it as losing material.