Author Topic: [CHALLENGE] Rosetta Code - "Tasks not implemented in torquescript"  (Read 3553 times)

so I was browsing the web for stuff related to torquescript and I found this website:
http://rosettacode.org/wiki/Reports:Tasks_not_implemented_in_Torq ueScript

Lets prove them wrong fix some stuff, shall we?
I wrote this code in about 60 seconds.
Bottles of Beer:
Code: [Select]
for(%i = 99; %i > 0; %i--)
{
%n = %i-1;
if(%i == 1)
echo(%i SPC "bottle of beer on the wall ~");
else
echo(%i SPC "bottles of beer on the wall ~");
echo("Take one down, pass it around,");
if(%n == 1)
echo(%n SPC "bottle of beer on the wall.");
else
echo(%n SPC "bottles of beer on the wall.");
}

EDIT: A+B is not done? Bullstuff.
« Last Edit: June 17, 2012, 10:13:47 PM by Lugnut1206 »

So what do we do, write code for what they have listed below?

Yeah, that's what I'm suggesting.
we don't even have to update their list, just make a bigass resource here.

Cool, i'll be doing a few of these on my spare time, good find lugnut.

The page is wrong for a few things like inheritance, which is possible.

The page is wrong for a few things like inheritance, which is possible.
and A+B, and beers on the wall, etc etc etc

which is why I made the topic so we can prove them wrong and hopefully have a learning experience

We should make a checklist, and maybe a public repository

We should make a checklist, and maybe a public repository

Sounds good.



Here is one I've done so far. Apply a call back to an array.

http://rosettacode.org/wiki/Apply_a_callback_to_an_array#TorqueScript
« Last Edit: June 17, 2012, 10:21:42 PM by elm »

Woah woah woah:

"Minesweeper game"
I did this, with scripts and bricks.

Though, I guess it has to be without bricks and just code itself.

Sounds good.



I believe i did this correctly:

http://rosettacode.org/wiki/Apply_a_callback_to_an_array#TorqueScript

Apply a call back to an array.
would you mind putting this:
Code: [Select]
for(%i = 99; %i > 0; %i--)
{
%n = %i-1;
if(%i == 1)
echo(%i SPC "bottle of beer on the wall ~");
else
echo(%i SPC "bottles of beer on the wall ~");
echo("Take one down, pass it around,");
if(%n == 1)
echo(%n SPC "bottle of beer on the wall.");
else
echo(%n SPC "bottles of beer on the wall.");
}

here: http://rosettacode.org/wiki/99_Bottles_of_Beer
I'm not interested in going through the trouble of signing up, and you would be saving me a lot of trouble.

Oh also. They aren't wrong on anything. It's not a list of what's possible or not. It's a list of pages that do not have TorqueScript examples in them.

So don't say "prove them wrong."

Oh also. They aren't wrong on anything. It's not a list of what's possible or not. It's a list of pages that do not have TorqueScript examples in them.

So don't say "prove them wrong."
oooh. I misunderstood

would you mind putting this:
Code: [Select]
for(%i = 99; %i > 0; %i--)
{
%n = %i-1;
if(%i == 1)
echo(%i SPC "bottle of beer on the wall ~");
else
echo(%i SPC "bottles of beer on the wall ~");
echo("Take one down, pass it around,");
if(%n == 1)
echo(%n SPC "bottle of beer on the wall.");
else
echo(%n SPC "bottles of beer on the wall.");
}

here: http://rosettacode.org/wiki/99_Bottles_of_Beer
I'm not interested in going through the trouble of signing up, and you would be saving me a lot of trouble.

Sure.

Edit: Done.
« Last Edit: June 17, 2012, 10:18:59 PM by elm »

oooh. I misunderstood
The purpose of the site is to be something like the "Rosetta stone" but with code. Translating chunks of code from one language to another.

The purpose of the site is to be something like the "Rosetta stone" but with code. Translating chunks of code from one language to another.
oh stuff
now this site seems so much more useful to me