Commit 74e2c5e6 authored by Vivien Kraus's avatar Vivien Kraus
Browse files

Use a fuzzy player for the solo game

If all cards yield the same prediction, then at least we will avoid
boringly playing the hearts, then the clubs, then the diamonds, then
the spades.
parent 50a4aff2
...@@ -353,7 +353,7 @@ namespace Tarot { ...@@ -353,7 +353,7 @@ namespace Tarot {
for (long i = 0; i < my_seed.length; i++) { for (long i = 0; i < my_seed.length; i++) {
bytes[i] = my_seed[i]; bytes[i] = my_seed[i];
} }
my_game = new Tarot.Solo.alloc (); my_game = new Tarot.Solo.alloc_fuzzy (0.05, bytes, null);
retry++; retry++;
ok = (my_game.setup_random (n_players, with_call, bytes) == Tarot.GameError.OK); ok = (my_game.setup_random (n_players, with_call, bytes) == Tarot.GameError.OK);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment