I am trying to make an ideological heir to Game Dev Tycoon on C # and started with the development of a prototype game and immediately ran into a problem, for the implementation of the basic processes, it is required that when a user releases a game, it is compared in a rating for example for week sales with the rest of the games released, but how to write an algorithm that imitates roughly the gaming market, which at certain intervals releases games with any genre, theme, rating, sets new popular genres, etc.

How can I implement a simple AI or some sort of similarity?

  • 3
    People specifically study the matrix, methods of analysis, search in depth-width (as a base unconditionally). For 3 days this task is not done. - nick_n_a
  • Do not focus on detailed "imitation." All that the player does not see should be done with minimally sufficient realism. And how it works inside - no one will ever know. And do not forget, the game in the first place should be interesting, not "realistic." - Kromster
  • @nick_n_a Yes, I understand, but the game provides for a fairly linear plot, so I think I should have enough of the basic knowledge that is available now. But anyway, thanks for the opinion, I will keep in mind - Andrew
  • @Kromster Yes, I understand, I was not going to work through such things in detail, because in this case, development will be delayed for many months, if it comes to the end at all - Andrew

1 answer 1

You can get by with several lists or arrays within which there will be classes — models. Inside them you can store the odds.

Something like this:

create a list of objects - game models

create a list of objects within which the success of each opponent is recorded (for example, the previous week)

randomly increase / change the probability of choosing a specific genre of this week from the list

randomly choose the genre of this week and so forth.

add an additional success rate of games that match the genre

randomly increase the rate of creating a certain game by an opponent in a popular genre

calculate success rivals

randomly staked out the success of your game

compare your game with the entire list of games rivals

divide profit by success rate

clear the whole story

repeat everything again