intelligent-systems-course / schnapsen-old

OLD Codebase for Intelligent Systems 2020 and Project AI, Vrije Universiteit Amsterdam
12 stars 46 forks source link

fix: server with deterministic seed #8

Open m-rots opened 4 years ago

m-rots commented 4 years ago

Closes intelligent-systems-course/schnapsen#5

Seed is now set (globally) on the generation of each new game, causing each page refresh and refresh with SHIFT R to generate the exact same game.

The seed being set globally will probably affect the server from being able to run multiple games concurrently with full deterministic results (bot behaviour included). However, this should be a non-issue for most people as (usually) only one game is played in the browser at a time.