Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions cpp-game-vs/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::tuple<Rule::Choice, Rule::Choice>, 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;
Expand Down
1 change: 0 additions & 1 deletion cpp-game-vs/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ int main()
mypointer = NULL;
*mypointer = 30;

wchar_t w = L'Â';
double velocity;

char x = w;
Expand Down