Page 1 of 2

Pete, are you going to release a new coding competition?

Posted: Sat Dec 08, 2007 5:22 pm
by Codemss
Please? Serious, I would like a new coding competition. It would be really nice. I am very interested in it. I searched and acidentally came across one in 2004 or something to code a game in four lines. That kind of stuff is really nice, and it could help to fill some space in QBE, for if you have little sended in tutorials and artilces.

Posted: Sun Dec 09, 2007 1:05 pm
by coma8coma1
+1

You have my vote. Sounds like fun!

What all have they been about in the past? I;m feeling the itch to code something

Posted: Sun Dec 09, 2007 1:55 pm
by Codemss
Well I only know about the contest to code a game in 4 lines, but I have seen no contests in the last QBE. But it soundslike fun indeed. I really hope on a new contest.

Posted: Sun Dec 09, 2007 2:41 pm
by bungytheworm
Yah, something like that would sound neat. Create a game in 255 characters?
Naturally we need seperated categories for QB and FB sources.

E.K.Virtanen

Posted: Mon Dec 10, 2007 6:00 am
by coma8coma1
how about making a specific output requirement in the shortest amount of code? A required output is given and participants must figure out the quickest way to achieve that output using the least amount of code. Size matters.

Posted: Tue Dec 11, 2007 2:48 pm
by Pete
coma8coma1 wrote:how about making a specific output requirement in the shortest amount of code? A required output is given and participants must figure out the quickest way to achieve that output using the least amount of code. Size matters.
That's a very cool idea. Any ideas on what the "output" could be?

A specific graphical pattern, or perhaps a pattern of text?

Posted: Tue Dec 11, 2007 2:51 pm
by Pete
PS: I would like to run a QB Express coding competiton every month, but the reason I don't have enough time to come up with the idea, and then collect / rate each entry and write up the results.

If somebody else would like to organize the competition and write up the articles, I'd be glad to let you write about it in QB Express.

Also, check out ciw1973's competitions in the "Community" section of the freebasic.net forums.

Posted: Tue Dec 11, 2007 4:30 pm
by bungytheworm
Put up a competition and let readers decide which one wins.
Simple and short ones are best.

Best game in max. 255 characters.
Best output created in max. 500 chars. No third party libraries or image files allowed.

Or then, something that really helps peoples like.
Best way to solve math formula from a string.

E.K.Virtanen

Posted: Wed Dec 12, 2007 4:36 pm
by Codemss
The competition could either be about coding something specific the shortest way, or it could be about the "best" program. In that case, a poll or something should be in the QBE.
I would like to organize the competition, but I don't know how to make a poll in QBE. It would be great if someone could do this. Or I could use a poll in the topics here... I think this is the best idea

I don't think that anyone want's to offer his money, so the price will be honour.

There also needs to be something to avoid that QB programs are chanceless. Two competitions? One competition with two winners? Or use rules so that the result doesn't really depend on what you use...

I have already a great idea, but I don't know if it's possible. You know the Doppler effect? Could that be done with SOUND? maybe an idea to make the competition who can makes this sound the best(preferable with some graphics to demonstrate where the "ear" and where the sounds somes from).

Or is this too hard? I don't believe the math behind it is so hard(look at wikipedia for it)... Or is SOUND not good for this? I will give it a try myself when I've got some time.
Well tell me what you think...

Posted: Thu Dec 13, 2007 5:01 am
by nkk_kan
lurah's 255 char gaming idea is appealing one..
i'd try that one..
oh and by the way..will it be only QB or both qb/fb?

Doppler effect idea's also mind tingling..
math behind it isn't that hard..basically physics' stuff

or rather held a competition in which a certain problem is given and we've to solve it with the help of our program?

for example..

Problem : The Next Palindrome

A positive integer is called a palindrome if its representation in the decimal system is the same when read from left to right and from right to left. For a given positive integer K of not more than 1000000 digits, write the value of the smallest palindrome larger than K to output. Numbers are always displayed without leading zeros.

Input

The first line contains integer t, the number of test cases. Integers K are given in the next t lines.

Output

For each K, output the smallest palindrome larger than K.

Example

Input:
2
808
2133

Output:
818
2222


They ask such problems in coding compos where i live..
interesting?

Posted: Thu Dec 13, 2007 5:26 am
by bungytheworm
In this post, there is 255 characters. As you can see, it is not much so no clue can anyone create a game with this limitations. Maybe a simple guess the number or dice game is possible to create but not much more. Im running out of chars allready here..

Posted: Thu Dec 13, 2007 5:28 am
by nkk_kan
lol you tried it? cool =p

well...u can make some nice gfx i think ??

Posted: Thu Dec 13, 2007 7:50 am
by Sinuvoid
Ill try making a game with 255 chars :P

Posted: Thu Dec 13, 2007 9:33 am
by bungytheworm
202 characters :P

Code: Select all

randomize timer
a=int(rnd * 100)+1
r=0
cls
do
input "Try guess number between 1-100 ",b
if b>0 and b<101>a then ?"Too high"
if b<a then ?"Too low"
r=r+1
end if
loop until b=a
?"You got it in ";r;" rounds"

Posted: Thu Dec 13, 2007 4:33 pm
by Sinuvoid
Ha, are we aloud our own libraries?

Posted: Thu Dec 13, 2007 10:25 pm
by bungytheworm
Write your won language if you like to but __everything__ must be in that 255 characters.
So if you use library, that library must be in that 255 characters ;)

Posted: Sun Dec 16, 2007 6:32 am
by nkk_kan
but if the library's 255 char long
that means that our program needs to be 0 char long? =P
ok
i'm trying it! =P

Posted: Sun Dec 16, 2007 2:31 pm
by coma8coma1
might be more fun to try and keep it under a given amount of kB.

Posted: Sun Dec 16, 2007 2:41 pm
by bungytheworm
Less than 0.255kB? :lol:

Posted: Sun Dec 16, 2007 4:04 pm
by coma8coma1
hehehe