The production of games requires many factors and a lot of human labor, and still the emergence of artificial intelligence has changed this, the efficiency and precision of artificial intelligence makes it gradually more used in the field of games. This paper mainly discusses the application of AI in the field of games from four aspects: the intelligence of AI for opponents, helping to develop game strategies, the story and plot of the game and game generation. Artificial intelligence can be used to simulate opponents with intelligent behavior in games. This can add to the challenge and realism of the game. It can also be used to develop game strategies and optimize how tasks are completed. Artificial intelligence helps in promoting the story and plot of the game. Finally, AI can be used to generate game content and plot. Also, this paper gives an outlook on the hot spots and development prospects of this research topic.