By making the Diploma thesis I tried to put myself into the shoes of game developers. During this time I became acquainted with many problems that stand in the way while making a well-made game. Like all beginners, I have solved the problems in the simplest and probably not the most optimal way. One of the hardest problems was creating an opponent who is racing the track besides the player. In most computer games the concept of difficulty is used, since all players are not the same and differ greatly in their abilities. I solved the problem by limiting myself to three main difficulties, hard, easy and medium. Depending on the player's choice of difficulty, I then adjusted the opponent accordingly, thus allowing the opponent's level to be appropriate for the player.