A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

Programming Contest #1 - Level: SuperEasy!

2.1k views · started by 323 ·
#1
Programming Contest #1 - Level: SuperEasy!
Programming Contest #1
Level: Super Easy!

Challenge: Create a HelloWorld program! It can say anything you want, all it has to do is print text.

Every person who submits a program will win, the reward is 30LGG. If you make your program do special little things like print to a text file or something like that, you'll get some bonus LGG!

This contest has an unlimited amount of winners, and is open to anyone! If you're just learning programming, it could be a fun little easy contest for you to do :)

Enjoy!

Some helpful tutorials for people who are looking to get into programming, or don't know how to complete this:

Python – Hello World | The CS God
Java 101 : Hello World
C++ Hello World tutorial
Your First VB.NET Project: Hello, World - Matt Ward
PHP: Your first PHP-enabled page - Manual

Current Winners List:

1.) The Unintelligible
2.) C0FFINCASE
3.) einstein95
4.) Zachafer
5.) Stapled
6.) Kitsune
7.) Smithno13
8.) Kitsune
9.) Kingz V
10.)
11.)
12.)
13.)
14.)
15.)

whisper:
To all of the advanced programmers who are going to hate on these contests, the point of them is to get more people into programming, and make it fun for the LG community. Using these contests, I'm going to gradually teach the people here that are interested in programming how to program Gaia bots, and it will be a slow, easy, self-taught and comprehensive tutorial through a contest-and-reward system :)

#2
// Delphi

WriteLn('Hello, World!');

30lgg pls.
#3
#include <iostream>

using namespace std;

int main()
{
printf ("Hello World!");
cout << '\a' << flush;
return 0;
}
#4
C0FFINCASE wrote:
#include <iostream>

using namespace std;

int main()
{
printf ("Hello World!");
cout << '\a' << flush;
return 0;
}


ur cool
#5
file = open('print.txt','w')
file.write('Hello, World!')
file.close()
print('Hello, World!')
#6
function giveMeLGG($msg)
{
file_put_contents('easyshit.txt', $msg);
echo $msg;
}

giveMeLGG('HELLO WORLD GIVE ME LGG!');
#7
lel php
#8
ur cool


#9
Good job guys! This contest is still open to more people if they want to do it :) Sending out LGG now!
#10
    class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
Console.ReadKey();
}
}


Something like that.
#11
Stapled wrote:
    class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
Console.ReadKey();
}
}


Something like that.


Good job!

Also, to everyone, be on the lookout for Programming Challenge #2! Should be posted either today or tomorrow, we'll start delving into a little bit more advanced stuff :)
#12

m db 'Hello World$'
mov dx, OFFSET m
mov ah, 9
int 21h;


8D

I don't know what I'm saying anymore.
#13
Stapled wrote:
    class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
Console.ReadKey();
}
}


Something like that.


Ever used .ReadKey(true); ?
#14
I got bored and did more... I think it's still a hello world.

Edit: Oh my god I hadn't even looked at the second challenge yet. I win.

Python 3.1, sorry.
import random
output = open('out.txt', 'w')
name = input('What is your name? ')
print('Why hello there ' + name + '.')
id = str(random.randint(100000, 999999))
print('You are no longer ' + name + '. You will now be known as Prisoner#' + id + '.')
answer = input('Do you accept? Type Yes or No ')
if 'yes' in answer.lower():
print('Enjoy your stay!')
x = 'compliant'
else:
print('Prisoner#' + id + ' is noncompliant. Beginning execution sequence.')
x = 'non-compliant. Prisoner #' + id + ' executed'
output.write('Subject is ' + name + '\n' + 'Subject will now be known as Prisoner#' + id + '\n' + 'Subject is ' + x)
output.close()
#15
Isonyx wrote:

I don't know what I'm saying anymore.


of course you don't
#16
Really?

<VB>
Console.Writeline("Hello World")
#17
Kitsune wrote:
Really?

<VB>
Console.Writeline("Hello World")


Syntax error. You mean ' VB

In all seriousness though, saying this 'challenge' was easy is a severe understatement.
#18
print("hello world!") #python3.xx
#19
Python 3.3.0
----------------
from tkinter import *

x=Label(text="Hello World")
x.pack()
#20
does this count ^_^


public class hi{

public static void main(String args[]){

while(1 > 0){


System.out.println("dlrow olleh");
//hello world backwards ;D im that fancy
}






}
}
#21
xxcookie wrote:
does this count ^_^


Actually no. It shouldn't run.

public static void main(String args[])

should be

public static void main(String[] args)
#22
either way, it still ran.
But thank you.
#23
<?php
echo "Hello world!\n";
?>

What's the challenge?
#24
Also, here it is in brainfuck:

+++++ +++++
[
> +++++ ++
> +++++ +++++
> +++
> +
<<<< -
]
> ++ .
> + .
+++++ ++ .
.
+++ .
> ++ .
<< +++++ +++++ +++++ .
> .
+++ .
----- - .
----- --- .
> + .
> .


And here in Reversible-2D:
>PHOPeOPlOPlOPoOP,OP OPWOPoOPrOPlOPdOP!ON¤


There are many funny languages you guys should check ;)
#25
document.write('Hello world');


I win.
#26

//Upon Button1 being clicked
MsgBox.Show("Hello World!")


I don't tend to do GUI applications in VB, so that could be wrong /shrug