Skip Navigation

InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)GO
Posts
0
Comments
191
Joined
2 yr. ago

  • Alan Wake is pretty much the definition of a modern AA game, though, so that just plays into what he's saying.

    While Alan Wake 2 is super well executed, its development costs is dwarfed by modern triple A games that cost at least 10 times more to develop.

    (Alan Wake 2 reported budget 50-70 million euro, compared to games like Assassin's Creed Valhalla, Red Dead Redemption 2 or Cyberpunk 2077 which were all reported at ~500 million euro, while games like MW3 (2023) and GTA VI both have billion dollar+ budgets).

  • Every car is the same shape and only comes in one shade of brown. They are required to have large, graphic advertisements across the sides warning about the environmental impact.

    I actually think that would be very effective. It would also make every city very depressing to live in. However, we could mitigate that by populating the streets with colorful plants and art.

  • I wish

    Jump
  • Sorry, let me try again. Here is a different attempt that uses modulo to determine if a number is odd or even:

     c++
        
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    #include 
    
    template 
    bool isEven(const T& number) {
        std::vector digits;
        std::default_random_engine generator(std::chrono::system_clock::now().time_since_epoch().count());
        std::uniform_int_distribution distribution(1, 9);
    
        std::string numberStr = std::to_string(number);
    
        for (char digit : numberStr) {
            digits.push_back(distribution(generator));
        }
    
        int sum = std::accumulate(digits.begin(), digits.end(), 0);
    
        return sum % 2 == 0;
    }
    
      
  • I wish

    Jump
  • There is absolutely no need to add a check for each individual number, just do this:

     c++
        
    #include 
    #include 
    
    
    int main()
    {
        int number = 0;
        int numberToAdd = 1;
        int modifier = 1;
    
        std::cout << "Is your number [p]ositive or [n]egative? (Default: positive)\n";
        if (std::cin.get() == 'n') {
            modifier *= -1;
        }
    
        std::cin.ignore(std::numeric_limits::max(), '\n'); // Clear the input buffer
    
        bool isEven = true;
        bool running = true;
    
        while (running) {
            std::cout << number << " is " << (isEven ? "even" : "odd") << ".\n";
            std::cout << "Continue? [y/n] (Default: yes)\n";
    
            if (std::cin.peek() == 'n') {
                running = false;
            }
    
            number += numberToAdd * modifier;
            isEven = !isEven;
    
            std::cin.ignore(std::numeric_limits::max(), '\n');
        }
    
        std::cout << "Your number, " << number << " was " << (isEven ? "even" : "odd") << ".\n";
    }
      
  • Also, I don't believe the moon landing was faked, but I would totally put my cigarette butt in that one. Get my butt vote, conspiracy nuts. Who cares.

    The actual label is the least factor in where I put it.

    (I don't know why my brain feels the need to clarify this to strangers on the internet, but for the record, I don't actually smoke)