Cactus Game Design Message Boards

Open Forum => Off-Topic => Topic started by: STAMP on December 17, 2010, 02:33:58 PM

Title: Guess the computer language/command
Post by: STAMP on December 17, 2010, 02:33:58 PM
Let's see how computer savvy we all are.  Guess the computer programming language or command below.  Correct answer comes up with their own "line of code".

//STEPLIB  DD DSN=FOCUS.PROD.FOCLIB.LOAD,DISP=SHR
Title: Re: Guess the computer language/command
Post by: Korunks on December 17, 2010, 03:14:21 PM
I could be wrong but is it Job Control Language?  If I am right here is mine:


var h = document.getElementById('header');
Title: Re: Guess the computer language/command
Post by: The Schaef on December 17, 2010, 03:42:58 PM
Javascript.  Don't make me yawn.

Code: [Select]
public override void Play()
        {
            if (this.isPlaying == false)
            {
                this.isPlaying = true;
                Console.WriteLine("The iPod is now playing.");
            }
            else
            {
                Console.WriteLine("The iPod is already playing.");
            }
        }
Title: Re: Guess the computer language/command
Post by: Korunks on December 17, 2010, 04:35:48 PM
looks like .Net
Quote
intersection([X|Y],M,[X|Z]) :- member(X,M), intersection(Y,M,Z).
intersection([X|Y],M,Z) :- \+ member(X,M), intersection(Y,M,Z).
intersection([],M,[]).
Title: Re: Guess the computer language/command
Post by: TheJaylor on December 17, 2010, 09:52:01 PM
i have no idea what you guys are doing with this weird code stuff. can you tell me what it is?
Title: Re: Guess the computer language/command
Post by: SomeKittens on December 17, 2010, 09:55:02 PM
They put up a couple lines of computer code (a programming language), and the next person has to guess which language it is.
I don't know many, but here's one of the two I know:
Code: [Select]
print("Spells a word")
word = input("Which word do you want to spell? ")
for i in word:
    print i
Title: Re: Guess the computer language/command
Post by: mjwolfe on December 18, 2010, 03:20:17 PM
How about this one?

//See if this character is being ignored or is immune itself
Boolean ignored = false;

// Check for ignore first
foreach(var IgnoreEffect in game.Effects )
{
    if ((IgnoreEffect.SourceEffect == EffectType.Ignore) &&
        (IgnoreEffect.IsInterrupted == false) && (IgnoreEffect.IsPrevented == false) &&
        (IgnoreEffect.IsRemoved == false) && (IgnoreEffect.IsBeingRemoved == false) )
    {
        // See if this character is a target of the ignore
        if( IgnoreEffect.TargetedCards.Contains(effect.SourceCard) )
        {
            battle.Status.IgnoredCharacters.Add( effect );
            ignored = true;
            break;
        }
    }
}

if( ignored == false )
{
    // Check to see if this character has immunity
    Boolean immune = false;
    foreach (CardEffect ImmuneEffect in game.Effects)
    {
        if ((ImmuneEffect.SourceEffect == EffectType.Immune) &&
            (ImmuneEffect.IsInterrupted == false) && (ImmuneEffect.IsPrevented == false) &&
            (ImmuneEffect.IsRemoved == false) && (ImmuneEffect.IsBeingRemoved == false))
        {
            // See if this character is a target of the immunity
            if (ImmuneEffect.TargetedCards.Contains(effect.SourceCard))
            {
                battle.Status.ImmuneCharacters.Add(effect);
                immune = true;
                break;
            }
        }
    }

    if( immune == false )
    {
        // The character must just be a normal character in battle
        battle.Status.NormalCharacters.Add(effect);

    }

}

Title: Re: Guess the computer language/command
Post by: The Guardian on December 18, 2010, 03:24:58 PM
Code for RedemptionLive?  :)
Title: Re: Guess the computer language/command
Post by: The Warrior on December 18, 2010, 03:25:31 PM
Code for RedemptionLive?  :)
Title: Re: Guess the computer language/command
Post by: SomeKittens on December 18, 2010, 03:43:38 PM
now that's just cheating.
Title: Re: Guess the computer language/command
Post by: Red Dragon Thorn on December 18, 2010, 04:21:54 PM
Looks like Java to me Mike.
Title: Re: Guess the computer language/command
Post by: Korunks on December 18, 2010, 04:39:59 PM
No java would be

for( IgnoreEffect ie : game.Effects() ) {

etc ....

I'm guessing C#
Title: Re: Guess the computer language/command
Post by: mjwolfe on December 18, 2010, 04:56:46 PM
C# it is!
Title: Re: Guess the computer language/command
Post by: Red Dragon Thorn on December 18, 2010, 05:16:08 PM
Dah, I missed that, they're somewhat similar languages.
Title: Re: Guess the computer language/command
Post by: TheJaylor on December 18, 2010, 11:58:19 PM
so you mean like 10010001011100100101001001010010011101011010010010000010101111010111010101001010010101
like that would be binary which is computer language?
Title: Re: Guess the computer language/command
Post by: SomeKittens on December 19, 2010, 01:11:02 AM
close enough.
SimplePortal 2.3.3 © 2008-2010, SimplePortal