db0 / godot-card-game-framework

A framework which comes with prepared scenes and classes to kickstart your card game, as well as a powerful scripting engine to use to provide full rules enforcement.
http://dbzer0.com/projects/godot-card-game-framework/
GNU Affero General Public License v3.0
907 stars 96 forks source link

use custom seed #46

Closed vmjcv closed 3 years ago

vmjcv commented 3 years ago
  1. use custom seed. This allows the same random number to lead to the same game
db0 commented 3 years ago

If you want the whole game to be the same, the random seed should be put in cfc. Otherwise each CardContainer has their own random seed, no?

vmjcv commented 3 years ago

Yes, I understand what you said, I will try the cfc module (I didn’t fully understand the meaning of the cfc module, so I put it in CardContainer)

vmjcv commented 3 years ago

I think shuffle_array should not be in CardContainer, but in another module. Can you tell me where it should be placed?

db0 commented 3 years ago

Ye as we discussed, let's move with a Utils.gd file. Put the array_shuffle() there and see if you can also put the seed there as well. When you push new commits in the same branch, they will appear here for me to review. Also merge the changes from the main in this branch first, as I see there's conflicts now.