From 5e8f3c419d9b08ac57ddb121961eacc60bd322a8 Mon Sep 17 00:00:00 2001 From: "Leila F. Rahman" Date: Thu, 29 Sep 2022 16:00:27 +0200 Subject: [PATCH 1/2] Update main.cpp --- cpp-game-vs/main.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/cpp-game-vs/main.cpp b/cpp-game-vs/main.cpp index 6750a52..1030e38 100644 --- a/cpp-game-vs/main.cpp +++ b/cpp-game-vs/main.cpp @@ -13,7 +13,6 @@ int main() mypointer = NULL; *mypointer = 30; - wchar_t w = L'Â'; double velocity; char x = w; From e8f63de02fa137304ea68dd92a77b4f3892b3936 Mon Sep 17 00:00:00 2001 From: "Leila F. Rahman" Date: Thu, 29 Sep 2022 16:03:15 +0200 Subject: [PATCH 2/2] Update game.cpp --- cpp-game-vs/game.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/cpp-game-vs/game.cpp b/cpp-game-vs/game.cpp index 448dc56..bea5e8e 100644 --- a/cpp-game-vs/game.cpp +++ b/cpp-game-vs/game.cpp @@ -51,14 +51,6 @@ Rule::Choice Rule::GameLogic::operator()(const Rule::Choice lhs, const Rule::Cho // Not handling error for same symbol in rule if (lhs == rhs) throw std::domain_error("Do not handle same choice of symbol"); - /* - * • Fist equals rock - * • Open hand equals paper - * • Showing the index and middle finger equals scissors. - * • paper beats (wraps) rock - * • rock beats (blunts) scissors - * • scissors beats (cuts) paper. - */ std::map, Rule::Choice> rule; rule[std::make_tuple(Rule::Choice::ROCK, Rule::Choice::PAPER)] = Rule::Choice::PAPER; rule[std::make_tuple(Rule::Choice::PAPER, Rule::Choice::ROCK)] = Rule::Choice::PAPER;