The invention discloses a mahjong
matching game level generation method based on
reinforcement learning, a medium and equipment, and belongs to the technical field of
machine learning, game levels are randomly generated, then game problem solving is executed based on a
reinforcement learning network model, the level passing rate is obtained, and if the level passing rate is larger than or equal to a set threshold value, the game levels are output. In the
reinforcement learning network model, a neural network is used as a strategy network and a
value network to extract level features, and the
value network cooperates and simulates the time required for playing of a real player and the level passing rate. The game level can be generated according to the preset difficulty and
layout of the game, so that the game has the
level design of diversified card surface types, quantity and arrangement
modes under each difficulty level, and the playability and challenge of the game are remarkably improved. According to the invention, level challenge experience with invariable difficulty can be provided, and the problem of inconsistent user experience caused by inconsistent difficulty due to random generation of levels is avoided.