Main forum > Competitions
Hello World - Contest
WPShadow:
Hi,
it's time for a new contest and it's time for a little action in the forum.
Here we go:
Definition
Write a hello world program in GLBasic as complicated as possible!!!
Rules
* Write the whole program only in GLBasic
* no third party libraries
* Don't use unnecessary code lines (like 1000 loops)
* Don't copy from an already published code
Goal
The output on the screen is black and it says "Hello World" and that's it. No Action, no fancy backgrounds, only a black screen with a few nice letters. =D
Submission
Just post your code here in a codeblock, so everybody can study your awesome work.
Winner
This is a fun contest and there is nothing to win... Nevertheless, together we can choose a winner...
Good luck and have fun.
=====
Winner of the contest:
:enc:Hemlos :enc:
Schranz0r:
Boy, i'm on the way! (Call me Mr. Complicated) :D
SnooPI:
:D Funny !
Just a question, can it be complicated and short or the number of lines of code is also important?
Hemlos:
Game on!
Compiled as a console program.
Note: only a few lines in main code, but what it does is pretty complicated.
--- Code: (glbasic) ---// --------------------------------- //
// Project: HelloWorld
// Start: Tuesday, March 12, 2019
// IDE Version: 15.238
// By Hemlos
// Instructions: compile as console
AUTOPAUSE FALSE
SYSTEMPOINTER TRUE
LOCAL HelloWorld AS lib_String_Object_
HelloWorld.is$ = "hElLo wOrLd"
LOCAL BGColor% = 0, TColor% = 15
STDCOLOR TColor,BGColor
STD_OUT( HelloWorld.is$ )
STD_OUT( HelloWorld._Capitalize$() )
STD_OUT( HelloWorld._Capwords$() )
STD_OUT( HelloWorld._Swapcase$() )
STD_OUT( HelloWorld._RFill$(3, "!") )
STD_OUT( HelloWorld._LFill$(3, "!") )
STD_OUT( HelloWorld._Left$(14) )
STD_OUT( HelloWorld._Right$(11) )
STD_OUT( HelloWorld._Swapcase$() )
STD_OUT( HelloWorld._Upper$() )
STD_OUT( HelloWorld._Lower$() )
STD_OUT( HelloWorld._Encrypt$("GLBasic") )
STD_OUT( HelloWorld._Decrypt$("GLBasic") )
STD_OUT( HelloWorld._Replace$("world","GLBasic") )
STD_OUT( HelloWorld._Replace$("GLBasic","world") )
STD_OUT( HelloWorld._Capitalize$() )
STD_OUT( HelloWorld._Capwords$() )
SLEEP 60000
END
FUNCTION STD_OUT: showThis$, restTimeMS% = 1000 // clearscreen, stdout, sleep. restTimeMS% = millseconds sleep time (integer) defaults one second
CLEARSCREEN
STDOUT "\n\n\n "
STDOUT showThis$
SLEEP restTimeMS%
RETURN 0
ENDFUNCTION
--- End code ---
Include this String object library lib_String_Object.gbas :
--- Quote ---The message exceeds the maximum allowed length (20000 characters).
--- End quote ---
You'll have to download the .rar to see it in action. :zzz:
Note: the string lib is mine own creation, based 100% on GLBasic command structures, and inspired by the Python Language.
WPShadow:
Awesome! I'm still working on my version... :D
Navigation
[0] Message Index
[#] Next page
Go to full version