Simulation of games

Hi,
I have to build a simulation of many 1vs1 games with the outcome that generates a ranking.
Could you point me in the right direction on what is the best way to build many random players with some stats attached to them and have them compete against one other?

Thank you,
Luis

Homework assignment?

Hi Luis, will this project involve an Arduino in any way? What kind of games are you describing?

Hi,
the ranking system is running on an Arduino, and works. So I thaught I could program a simulation on a Arduino as well since I already have the code for the calculations. Want to make sure no funny thing will happen when large numbers of games are played. Like ranking numbers exploding or beeing too flat.

Wouldn’t it be BEAUTIFUL if it still was homework? :heart_eyes:

When you are ready to share a lot more detail about what you want to do, the forum will be able to point you in the right direction.

I would like to create say a hundred of simulated players with a starting ranking value and games completed and won home and away.

Then the players should randomly compete against each other and have the updated ranking calculated.

The goal is to see what happens to the rankings over say 1000 games and so be able to choose a reasonable starting ranking

Thanks in advance for any advice :wink:

This is not an Arduino project. Good luck with it.

Oh my, depending on the complexity of the game, this may take minutes or hours even on a desktop workstation. I feel like an arduino is out of the question. Care to elaborate on what kind of game you have in mind (I hope it isn't chess)?

What does that mean?

I do not need to simulate the game, just how the rankings behave. In the simulation one could attribute a higher chance of winning to the player with higher rank and that’s it. Just a coin toss.

I wanted to know what a good broad framework would be to set up many players with some stats attached to them.
For letting them compete maybe some form of simple loop will do..

Well these days apparently everyone has one opinion on everything

I still don't see the case for an arduino here. Unless there is some form of interaction with the physical world, a computer program will do the job faster and more easily. With a computer, you have access to high level languages that more than halve the developping time.

The way you stated the problem, it's not a matter of opinion, but of common sense.

Ok thanks, I’ll do like you suggest

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.