Limit games to 3 gestures because GUI wallet only supports 3 gesture games currently. Note that cli-wallet also supports 5 gesture games in theory, and the code can be expanded to support any odd number of gestures by giving the gestures names.

This commit is contained in:
Dan Notestein 2017-04-10 15:45:26 +00:00 committed by Eric Frias
parent 1aad7e4b74
commit 3b36205555

View file

@ -96,6 +96,9 @@ namespace graphene { namespace chain {
"Time to reveal the move must not be greater than ${max}",
("max", maximum_time_per_reveal_move));
//cli-wallet supports 5 gesture games as well, but limit to 3 now as GUI wallet only supports 3 gesture games currently
FC_ASSERT(game_options.number_of_gestures == 3,
"GUI Wallet only supports 3 gestures currently");
return void_result();
} FC_CAPTURE_AND_RETHROW( (op) ) }