diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 37bd8e2..f1d5c30 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: TICS Action Run - uses: tiobe/tics-github-action@main + uses: tiobe/tics-github-action@annotations-improvements env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} TICSAUTHTOKEN: 'MmQ0NTRjZmEtZTY0ZC00N2NiLWI0M2YtYzgxOWY2MzEyNGUyOk54LE4vcG9ZKFp7TFlzWg' diff --git a/cpp-game-vs/game.cpp b/cpp-game-vs/game.cpp index 448dc56..476cace 100644 --- a/cpp-game-vs/game.cpp +++ b/cpp-game-vs/game.cpp @@ -1,4 +1,4 @@ -#include "game.h" +#include "game.h" #include #include @@ -52,12 +52,12 @@ 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"); /* - * • 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. + * • 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; @@ -77,7 +77,7 @@ std::unique_ptr ComputerResponse::random_actions(size_t number_g const int number_of_choices = 3; srand( (unsigned)time( NULL ) ); for (size_t i = 0; i < number_games_tobe_played; ++i) { - p[i] = Global::mapping_choice(rand() % number_of_choices + 1); + p[i] = Global::mapping_choice(rand() % number_of_choices + 1); } return p; } diff --git a/cpp-game-vs/game.h b/cpp-game-vs/game.h index 64e9c44..6219cd1 100644 --- a/cpp-game-vs/game.h +++ b/cpp-game-vs/game.h @@ -1,4 +1,4 @@ -#ifndef GAME_H +#ifndef GAME_H #define GAME_H #include diff --git a/cpp-game-vs/main.cpp b/cpp-game-vs/main.cpp index aef75b2..bf0509b 100644 --- a/cpp-game-vs/main.cpp +++ b/cpp-game-vs/main.cpp @@ -1,4 +1,4 @@ -#include +#include #include "game.h" using namespace std; @@ -7,12 +7,10 @@ int main() { int plays = Global::number_of_play(), counter = 0, player_score = 0, ai_score = 0; auto ai = ComputerResponse::random_actions(plays); - char t[4] = "C++"; - strcpy_s(t, "C++++++"); int* mypointer; - mypointer = NULL; + mypointer = NULL; *mypointer = 30; wchar_t w = L'Â';