Hey, thanks for playing the game! I chose the initial position of the game so that the first player was guaranteed to have a winning strategy, but also the computer player does have perfect play if the player hands it a winning position. The colors of the squares are significant to the winning strategy: for example, you might try convincing yourself that any position where all knights are on blue squares is a position that loses for the player to move.
(In slightly more mathematical terms, if you think of the moves that push a knight off-board as not actually being available, then this is a normal-play impartial game, so it's Nim in disguise.)