P
ProjectGamesInc
Guest
Good morning guys!
I'm trying to do a little game based on colors.
What i have right now is an object that will choose the color you will play with.
every turn you will deploy this color inside the field and then another color will be choosen.
what i want to do :
I want the code that choose the color to understand how much of that color there is in the game field, and then choose more easly a color different from the most common in the game field.
Example : i have 20 green, 10 blue, 4 red. i want green color to be very difficult to get, blue medium and red common as the next color instead to be totally random.
What's the best way to achieve this?
Hope i explained well.
Thanks in advance!
I'm trying to do a little game based on colors.
What i have right now is an object that will choose the color you will play with.
every turn you will deploy this color inside the field and then another color will be choosen.
what i want to do :
I want the code that choose the color to understand how much of that color there is in the game field, and then choose more easly a color different from the most common in the game field.
Example : i have 20 green, 10 blue, 4 red. i want green color to be very difficult to get, blue medium and red common as the next color instead to be totally random.
What's the best way to achieve this?
Hope i explained well.
Thanks in advance!