Author Topic: Guess the computer language/command  (Read 1919 times)

Offline STAMP

  • Tournament Host
  • Trade Count: (+19)
  • *****
  • Posts: 5014
  • Redemption brings Freedom
    • -
    • Northwest Region
Guess the computer language/command
« on: December 17, 2010, 02:33:58 PM »
0
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
Final ANB errata: Return player to game.

Offline Korunks

  • Tournament Host
  • Trade Count: (+11)
  • *****
  • Posts: 2271
    • -
    • Northeast Region
Re: Guess the computer language/command
« Reply #1 on: December 17, 2010, 03:14:21 PM »
0
I could be wrong but is it Job Control Language?  If I am right here is mine:


var h = document.getElementById('header');
In AMERICA!!

The Schaef

  • Guest
  • Trade Count: (0)
Re: Guess the computer language/command
« Reply #2 on: December 17, 2010, 03:42:58 PM »
0
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.");
            }
        }

Offline Korunks

  • Tournament Host
  • Trade Count: (+11)
  • *****
  • Posts: 2271
    • -
    • Northeast Region
Re: Guess the computer language/command
« Reply #3 on: December 17, 2010, 04:35:48 PM »
0
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,[]).
« Last Edit: December 17, 2010, 06:13:46 PM by Korunks »
In AMERICA!!

Offline TheJaylor

  • Trade Count: (+18)
  • Hero Member
  • *****
  • Posts: 3119
  • Fortress Alstad
    • -
    • North Central Region
    • Redemption with Jayden
Re: Guess the computer language/command
« Reply #4 on: December 17, 2010, 09:52:01 PM »
0
i have no idea what you guys are doing with this weird code stuff. can you tell me what it is?

Offline SomeKittens

  • Tournament Host
  • Trade Count: (+10)
  • *****
  • Posts: 8102
    • -
    • Northeast Region
Re: Guess the computer language/command
« Reply #5 on: December 17, 2010, 09:55:02 PM »
0
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
Mind not the ignorant fool on the other side of the screen!-BubbleBoy
Code: [Select]
postcount.add(1);

Offline mjwolfe

  • Tournament Host
  • Trade Count: (0)
  • *****
  • Posts: 442
  • The Wolfe Pack's Alpha Wolfe
    • -
    • Southwest Region
    • Redemption So. California Players Guild
Re: Guess the computer language/command
« Reply #6 on: December 18, 2010, 03:20:17 PM »
+2
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);

    }

}


Offline The Guardian

  • Playtester, Redemption Elder
  • Global Moderator
  • Trade Count: (+96)
  • *****
  • Posts: 12344
  • The Stars are coming out...
    • -
    • North Central Region
Re: Guess the computer language/command
« Reply #7 on: December 18, 2010, 03:24:58 PM »
+1
Code for RedemptionLive?  :)
Fortress Alstad
Have you checked the REG?
Have you looked it up in ORCID?

Offline The Warrior

  • Trade Count: (0)
  • Hero Member
  • *****
  • Posts: 2407
  • Resident of The Internet.
    • -
    • Midwest Region
Re: Guess the computer language/command
« Reply #8 on: December 18, 2010, 03:25:31 PM »
0
Wanderer of the Web.

Offline SomeKittens

  • Tournament Host
  • Trade Count: (+10)
  • *****
  • Posts: 8102
    • -
    • Northeast Region
Re: Guess the computer language/command
« Reply #9 on: December 18, 2010, 03:43:38 PM »
0
now that's just cheating.
Mind not the ignorant fool on the other side of the screen!-BubbleBoy
Code: [Select]
postcount.add(1);

Offline Red Dragon Thorn

  • Covenant Games
  • Global Moderator
  • Trade Count: (+10)
  • *****
  • Posts: 5373
    • -
    • North Central Region
    • Covenant Games
Re: Guess the computer language/command
« Reply #10 on: December 18, 2010, 04:21:54 PM »
0
Looks like Java to me Mike.
www.covenantgames.com

Offline Korunks

  • Tournament Host
  • Trade Count: (+11)
  • *****
  • Posts: 2271
    • -
    • Northeast Region
Re: Guess the computer language/command
« Reply #11 on: December 18, 2010, 04:39:59 PM »
0
No java would be

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

etc ....

I'm guessing C#
In AMERICA!!

Offline mjwolfe

  • Tournament Host
  • Trade Count: (0)
  • *****
  • Posts: 442
  • The Wolfe Pack's Alpha Wolfe
    • -
    • Southwest Region
    • Redemption So. California Players Guild
Re: Guess the computer language/command
« Reply #12 on: December 18, 2010, 04:56:46 PM »
0
C# it is!

Offline Red Dragon Thorn

  • Covenant Games
  • Global Moderator
  • Trade Count: (+10)
  • *****
  • Posts: 5373
    • -
    • North Central Region
    • Covenant Games
Re: Guess the computer language/command
« Reply #13 on: December 18, 2010, 05:16:08 PM »
0
Dah, I missed that, they're somewhat similar languages.
www.covenantgames.com

Offline TheJaylor

  • Trade Count: (+18)
  • Hero Member
  • *****
  • Posts: 3119
  • Fortress Alstad
    • -
    • North Central Region
    • Redemption with Jayden
Re: Guess the computer language/command
« Reply #14 on: December 18, 2010, 11:58:19 PM »
0
so you mean like 10010001011100100101001001010010011101011010010010000010101111010111010101001010010101
like that would be binary which is computer language?

Offline SomeKittens

  • Tournament Host
  • Trade Count: (+10)
  • *****
  • Posts: 8102
    • -
    • Northeast Region
Re: Guess the computer language/command
« Reply #15 on: December 19, 2010, 01:11:02 AM »
0
close enough.
Mind not the ignorant fool on the other side of the screen!-BubbleBoy
Code: [Select]
postcount.add(1);

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal