Taskmaster leg task

This game is based on Taskmaster Series 18 Episode 4. You each have a herd of 6 animals. You are trying to get the total number of legs in your herd to equal the target value. Each turn, you pick an animal to give to the other player. They simultaneously pick an animal to give to you. The first player to reach the target wins.

After playing for a little while, you will probably notice that the game is not very interesting with the target value that was used on the show (22). Can you see why? Some of the other target values are (slightly) more interesting, so you have the option to change to those if you want (17 and 25 are the most 'interesting' by one measure of interestingness). However, you are very unlikely to beat the computer with any target value (unless there's a bug in my code). It should always be playing a Nash equilibrium strategy.

Click on an animal in your herd to give it to the computer player. The computer does not know your decision when it decides which animal to give to you. If it looks like nothing is happening when you click one of your animals, then either the game has ended, or the computer is giving you an identical animal back!

Target:

Target:
Your herd:
Computer's herd: