Cactus Game Design Message Boards
Open Forum => Off-Topic => Topic started 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
-
I could be wrong but is it Job Control Language? If I am right here is mine:
var h = document.getElementById('header');
-
Javascript. Don't make me yawn.
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.");
}
}
-
looks like .Net
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,[]).
-
i have no idea what you guys are doing with this weird code stuff. can you tell me what it is?
-
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:
print("Spells a word")
word = input("Which word do you want to spell? ")
for i in word:
print i
-
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);
}
}
-
Code for RedemptionLive? :)
-
Code for RedemptionLive? :)
-
now that's just cheating.
-
Looks like Java to me Mike.
-
No java would be
for( IgnoreEffect ie : game.Effects() ) {
etc ....
I'm guessing C#
-
C# it is!
-
Dah, I missed that, they're somewhat similar languages.
-
so you mean like 10010001011100100101001001010010011101011010010010000010101111010111010101001010010101
like that would be binary which is computer language?
-
close enough.