Don't resign, just offer a remise after moving a pawn. Only resign if no pawns are left.
I'd claim it would work on human opponents, but I think it would get banned from chess tournaments.