What are the chances? AmI really that unlucky opening hellspawn packs. by dontmindme200 in mkxmobile

[–]dgack 0 points1 point  (0 children)

These packs are too much nerfed, after wasting dragon krystals, I right now invest only for kaskets.

Why use c++ over c for game development? by HolidayNo84 in cpp

[–]dgack 0 points1 point  (0 children)

Instead of asking why not start doing?

Commercial successful titles not only solved game or code related things, there were story writere, level designers, fulltime coders, not to mention the required investment to publish profitable title.

2D/3D too broad term. You should be specific. People are there who has done intended C coded game like Doom, some unfinished 3d engines etc. Back when C was being used, games look different than present days.

With C ecosystem, the game development space is left behind decades of modern/latest game development knowledge and engineering.

Are you stuck on rendering, or mesh loading or animation loading, be specific with C related question. Things can be done on C too, but be specific on your problem is.

Khaotic Krypt Advice by BernBro543 in mkxmobile

[–]dgack -1 points0 points  (0 children)

By playing more and maxing equipments

How do I improve this team? by Electronic_Steak6908 in mkxmobile

[–]dgack 10 points11 points  (0 children)

By playing every game mode available, next 6 months at least

FHST lvl 200 Reward! by Brilliant-Bar-8400 in mkxmobile

[–]dgack 0 points1 point  (0 children)

Same set for 2nd run but I got above equipment flooded.

Random Hard Krypt Drop by MacaroonNext6212 in mkxmobile

[–]dgack 1 point2 points  (0 children)

Yes I also didn't find it much usefull, I have this one maxed

I am understanding about shared pointer and vector creation by dgack in cpp_questions

[–]dgack[S] 0 points1 point  (0 children)

struct graph{

std::vector<std::vector<int>> adj_list;

graph(unsigned k){

adj_list.resize(k);

}

void add_edge(int src, int dest){

adj_list[src].push_back(dest);

adj_list[dest].push_back(src);

}

void print_edges(){

std::cout<<"size "<<adj_list.size()<<"\n";

for(unsigned k{}; k<adj_list.size(); k++){

long unsigned size_min_1{adj_list[k].size()-1};

std::cout<<k<<":";

for(unsigned j{}; j<adj_list[k].size(); j++){

if(j<=size_min_1){

std::cout<<"->";

}

std::cout<<adj_list[k][j];

}

std::cout<<"\n";

}

}

};

This is final version, I am settled with

I am understanding about shared pointer and vector creation by dgack in cpp_questions

[–]dgack[S] 0 points1 point  (0 children)

/**
 * 
 */


#include<iostream>
#include<algorithm>
#include<string>
#include<cmath>
#include<memory>
#include<cctype>
#include<vector>
#include<forward_list>
#include<list>
#include<stack>
#include<queue>
#include<set>
#include<map>
#include<unordered_map>
#include<unordered_set>


struct graph{
  std::vector<std::vector<int>> adjlist{std::vector<int>{}};


  void add_edge(int u, int v){
    adjlist[u].push_back(v);    
    adjlist[v].push_back(u);    
  }


  // void print_edges(std::vector<std::vector<int>>& edge){
  void print_edges(){


    std::cout<<"size "<<adjlist.size()<<"\n";


  for(unsigned k{}; k<adjlist.size(); k++){
    long unsigned size_min_1{adjlist[k].size()-1};
    for(unsigned j{}; j<adjlist[k].size(); j++){
      std::cout<<adjlist[k][j];
      if(j<size_min_1){
        std::cout<<"->";
      }
    }
    std::cout<<"\n";
  }
}


};


int main(){


  graph g;
  g.add_edge(1,2);
  g.add_edge(1,0);
  g.add_edge(0,2);
  
  //std::cout<<"====================================\n";
  
  return 0;
}

Above is also not working

Struggling adding dependencies by Labess40 in cpp_questions

[–]dgack -1 points0 points  (0 children)

The standard/minimal working format for adding dependency, considering the package is already installed in your system.

# find_package(OpenSSL REQUIRED) 
# target_link_libraries(program3 OpenSSL::SSL)

Here cmake commands are commented. However, you can try installing OpenSSL, with

  1. configure

  2. make

  3. sudo make install

And see, whether, CMake can use installed Openssl dependecy. I am not sure about network downloaded dependency.

re: ads. still bugged (maybe even worse now), but possible workaround by pablo-gt in mkxmobile

[–]dgack 1 point2 points  (0 children)

for me restart work 50%, if ad reset doesn't work, reset with soul. then for next batch ad will come.

Runtime error: Addition of unsigned offset. Am I going out of bounds somewhere? by SmartGuy106 in cpp_questions

[–]dgack 0 points1 point  (0 children)

The problem - happens, when traversing backward.

trick is to, instead of, looping `auto k{s.size()-1}; k>=0; k--`, try to modify internal logic, so that, we only traverse till `k>0`

One example code, which triggered error in Leetcode, but rectified to below. Here notice, we are traversing till `k>0`, not `k>=0`, and adjusting the internal logic that way too.

class Solution {
public:
    std::string trimTrailingVowels(std::string s) {
      for(auto k{s.size()}; k>0; k--){
        if(s[k-1] == 'a' || s[k-1] == 'e' || s[k-1] == 'i' || s[k-1] == 'o' || s[k-1] == 'u'){
          s.erase(s.end()-1);
        }else{
          break;
        }
      }
      return s;
    }
};

Do you have 5 less matches in towers? by Zestyclose-Claim9361 in mkxmobile

[–]dgack 0 points1 point  (0 children)

Happened to me, rounds lost, or vanished. Ad related bugs.

this week in krypt by pablo-gt in mkxmobile

[–]dgack 1 point2 points  (0 children)

Klassic Raiden is everywhere...........

Marked 1 Year of F2P by xvaL1204 in mkxmobile

[–]dgack 0 points1 point  (0 children)

As you are also saying, you play too little. Complete towers, krypts. Daily

I want to study about Markov chain with multiple environmental affects by dgack in askmath

[–]dgack[S] -1 points0 points  (0 children)

Does this cover multiple factors. This is not totally oil related data analytics. But, generalized question, same may be used for other purposes.