susanBuck / e2-fall22

0 stars 0 forks source link

question about seed #54

Closed JacquiFreeElectron closed 1 year ago

JacquiFreeElectron commented 1 year ago

When seeding, must the dummy data comply with the game logic? For example, can I have something looks like this:

截屏2022-12-09 下午8 24 28

That will cause a situation where both tie and win are true. Is this allowed in seeding?

richiecarey commented 1 year ago

I was wondering that too ... in the end I chose to hard code some 'real' game data so the seeded games would display correctly.

susanBuck commented 1 year ago

Yes, the data should comply with the game logic. You want it to most accurately represent the kind of real data you will be working with.

JacquiFreeElectron commented 1 year ago

@susanBuck Got it. So can I use hard-coded data to make it comply with the game logic?

susanBuck commented 1 year ago

Hi @JacquiFreeElectron - Absolutely. Generating random seed data can be useful for efficiency, especially if you want to seed a non-trivial amount of data. But there's nothing to say you can't hard-code your data.

JacquiFreeElectron commented 1 year ago

@susanBuck Got it. Thank you so much!