user15478: I am curious of the games that would arise if I changed the initial  value of a knight to -1 or make standing on e5 worth -10 points.  
How would I go about to create such an engine? Is it possible to alter an  existing engine in such a way and let it play against itself? 

user4418: Yes. You can download the source code for Stockfish here. Once you have done that you need to work out where the evaluation functions are and change them according to your requirements. Then recompile and run.

15478: <p>I am curious of the games that would arise if I changed the initial  value of a knight to -1 or make standing on e5 worth -10 points.  </p>

<p>How would I go about to create such an engine? Is it possible to alter an  existing engine in such a way and let it play against itself? </p>
 4418: <p>Yes. You can download the source code for Stockfish <a href="https://stockfishchess.org/files/stockfish-10-src.zip" rel="nofollow noreferrer">here</a>. Once you have done that you need to work out where the evaluation functions are and change them according to your requirements. Then recompile and run.</p>
