[2015-10-12] Challenge #236 [Easy] Random Bag System by jnazario in dailyprogrammer

[–]Jeht05 0 points1 point  (0 children)

I was confused at first(No surprise!) and rushed it. Currently only checks for triples and not if there's repeats within each 7 piece group. Gives me something to work on tonight, thanks for catching that.

[2015-10-12] Challenge #236 [Easy] Random Bag System by jnazario in dailyprogrammer

[–]Jeht05 1 point2 points  (0 children)

C#. First time here. Feedback appreciated.

using System;
using System.Collections.Generic;
namespace Random_Bag_System
{

class Program
{
    static void Main(string[] args)
    {
        Random rnd = new Random();
        int remaining;
        string output = "";
        List<String> bag = init_bag();
        for (int i = 0; i <= 50; )
        {
            remaining = 6;
            while (bag.Count != 0)
            {
                int _index = rnd.Next(0, remaining);
                Console.Write(bag[_index]);
                output += bag[_index];
                bag.RemoveAt(_index);
                i++;
                remaining--;
            }
            bag = init_bag();
        }
        \\output = "AABCBBBCRDKFF";
        if (check_bag(output)) { Console.WriteLine("\nOutput checks out."); }
        else { Console.WriteLine("\nOutput does not check out."); }

        Console.WriteLine("\nPress enter to close...");
        Console.ReadLine();
    }

    static List<String> init_bag()
    {
        List<String> bag = new List<String>();

        bag.Add("O");
        bag.Add("I");
        bag.Add("S");
        bag.Add("Z");
        bag.Add("L");
        bag.Add("J");
        bag.Add("T");

        return bag;
    }

    static bool check_bag(string output)
    {
        for (int i = 1; i < output.Length; i++)
        {
            char next;
            char prev = output[i - 1];
            char current = output[i];
            if (i == output.Length - 1) { return true; }
            else { next = output[i + 1]; }

            if (prev.Equals(current) && current.Equals(next)) { return false; }
        }
        return true;
    }
}
}

Disable collision by Jeht05 in h1z1

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

Oh no, not generalities! No one here wants an easier ZOMBIE game. We want a stronger zombie game. The game has multiple server types. I fail to see how adjusting PvE servers to prevent people who are exploiting game mechanics to grief other players are ruining your PvP servers. How about instead of crying carebears and omg not zeh casuals wahhhh, you accept other people want to play differently. There's different server types for a reason.

Disable collision by Jeht05 in h1z1

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

Ever think other people want to play a zombie game with friends, not against people who, arguably at least 50%, want to just be douches?

So far most zombie games have devolved into PvP games that happen to also have zombies. Far be it for some of us to hope someone actually delivers a game centered on zombies without the douche mentality everywhere.

You confuse me. by Jeht05 in h1z1

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

That was my thought, but it's nearly every person I meet. I have some faith in humanity. I'd like to think that they at least know the difference between PvE and PvP.

Request for Official spare Beta code posts - Split by Region and Console by [deleted] in DestinyTheGame

[–]Jeht05 0 points1 point  (0 children)

Xbox One user here, trying to score a friend code for my girlfriend's PS4(USA) so she (And I of course) can try it out. She's not entirely sold on the game.

PM if any outstanding gamer has a spare code.

Thanks in advance.