From e6486403441215b7bddc552ae81bc0ecd76cf89e Mon Sep 17 00:00:00 2001 From: Dan Notestein Date: Mon, 10 Apr 2017 15:45:26 +0000 Subject: [PATCH] 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. --- libraries/chain/tournament_evaluator.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/chain/tournament_evaluator.cpp b/libraries/chain/tournament_evaluator.cpp index 1422c5dd..493ab6da 100644 --- a/libraries/chain/tournament_evaluator.cpp +++ b/libraries/chain/tournament_evaluator.cpp @@ -95,6 +95,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) ) }