From 2faf3acbde1118f68788624277b4554d94b87463 Mon Sep 17 00:00:00 2001 From: Anne Brouwers Date: Mon, 3 Oct 2022 14:43:46 +0200 Subject: [PATCH] Update game.cpp --- cpp-game-vs/game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp-game-vs/game.cpp b/cpp-game-vs/game.cpp index bea5e8e..27eb0b7 100644 --- a/cpp-game-vs/game.cpp +++ b/cpp-game-vs/game.cpp @@ -52,7 +52,7 @@ Rule::Choice Rule::GameLogic::operator()(const Rule::Choice lhs, const Rule::Cho if (lhs == rhs) throw std::domain_error("Do not handle same choice of symbol"); std::map, Rule::Choice> rule; - rule[std::make_tuple(Rule::Choice::ROCK, Rule::Choice::PAPER)] = Rule::Choice::PAPER; + rule[std::make_tuple(Rule::Choice::ROCK, Rule::Choice::PAPER)] = Rule::Choice::ROCK; rule[std::make_tuple(Rule::Choice::PAPER, Rule::Choice::ROCK)] = Rule::Choice::PAPER; rule[std::make_tuple(Rule::Choice::ROCK, Rule::Choice::SCISSORS)] = Rule::Choice::ROCK; rule[std::make_tuple(Rule::Choice::SCISSORS, Rule::Choice::ROCK)] = Rule::Choice::ROCK;