阅读背景:

当某些对象必须避免配对时,如何将一个数组的元素随机映射到另一个数组的元素?

来源:互联网 

I'm creating a game in which players will need to sort objects on the screen into the correct target locations. I'm looking for a way to shuffle the objects so that no object starts in a correct location. So we don't devolve into a mad world of double negatives, I'm going to call the "correct answer" locations "avoid" locations, and "incorrect answer" locations "valid" locations for this sort.I'm creating a game in which players will need




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: