Qbasicnews.com

QbasicNews.Com => Challenges => Topic started by: Agamemnus on February 20, 2003, 11:25:50 PM



Title: Next Challenge
Post by: Agamemnus on February 20, 2003, 11:25:50 PM
I want a new contest. Preferrably non-screensaver.

18 line game?

24 line game?

 :-?

Do away with (insert small number here)-lines all together?

Maybe under 50 line something?

Dunno.


Title: Hmm
Post by: BinarySHOCK on February 21, 2003, 03:04:46 AM
i like the sound of <= 64 lines, but that's me


Title: Next Challenge
Post by: red_Marvin on February 21, 2003, 07:30:57 PM
64 is nice because it's a power of two witch all computers is built on
*dreams away in a pink computerromantic mist*


Title: Next Challenge
Post by: toonski84 on February 21, 2003, 07:38:28 PM
i'm tired of line limits.  how about this:

you must tweak the gameplay of one of the old ball/paddle games (pong, breakout, etc) to make it more interesting.  this contest will be based entirely on gameplay, not graphics, so low-res line/circle graphics will be judged on par with those with fancy sprites and are recommended.  milo sedlack's multikey and seav's timer are permitted for use to jump the hurdle, but no other external code (including libraries) may be used.  try to be as creative as you can, but dont let that limit how fun the game is.


Title: :|
Post by: Agamemnus on February 22, 2003, 12:19:37 AM
Maybe. I dunno.

I am thinking of redoing my pong game but I am having trouble with collision detection. Problems occur when the PADDLE moves INSIDE the ball...


Title: Next Challenge
Post by: R@dioman on February 22, 2003, 01:20:58 AM
Well since I've seen some pretty impressive stuff using only 9 lines where every line is valuable and unsparable, having even 2 or 3 more lines would will be like getting gold. But I would say 20 lines max because with up to 64 lines you can proabably construct a simple 3D raycaster. It defies the point of the challenge.


Title: Next Challenge
Post by: toonski84 on February 22, 2003, 10:12:20 AM
actually, rel designed a simple 3d raycaster in 13 lines :D


Title: Next Challenge
Post by: toonski84 on February 22, 2003, 07:18:09 PM
okay: poll time

a: 64 line game
b: 20 line game
c: ball/paddle remake
d: other (specify)

read the above threads before you post.  respond with a letter.  explain if you have another idea, it will be added to the poll.


Title: Next Challenge
Post by: R@dioman on February 22, 2003, 09:07:19 PM
like I said, 20 lines should be enough to see some pretty impressive stuff. Rel, show me that 13 line raycaster :bounce:


Title: Next Challenge
Post by: BlueKeyboard on February 23, 2003, 08:52:25 AM
b, 20.


Title: Next Challenge
Post by: Agamemnus on March 01, 2003, 12:32:13 AM
something having to do with cool algorithmiclyish stuff...


Title: ?
Post by: Mech1031 on March 01, 2003, 05:44:00 PM
does this include subs?


Title: Next Challenge
Post by: Neo on March 03, 2003, 07:54:44 AM
I choose D, other!

WT are you all murring about? About 20 uncompiled lines, or 64 ASCII characters? Why don't you just use FILE SIZE! I think that is much more relative.

How about sth like this ;-):
a. 1024 bytes BAS
b. 128 kB EXE
c. 64 kB EXE
d. Other (specify)


Title: Next Challenge
Post by: wizardlife on March 03, 2003, 05:16:01 PM
Quote from: "Neo"
I choose D, other!

WT are you all murring about? About 20 uncompiled lines, or 64 ASCII characters? Why don't you just use FILE SIZE! I think that is much more relative.

How about sth like this ;-):
a. 1024 bytes BAS
b. 128 kB EXE
c. 64 kB EXE
d. Other (specify)


Better to go by BAS... most of us have no idea how to control compiled size. The ASMers would dominate.

Rather than this size restriction, I think it would be more interesting to do make other sorts of restrictions:

"Make a game that takes only two controls... and is still fun"
"Make an entertaining graphical demo in screen 1"
"Make a game in which the player is an equilateral triangle..."
"Make a text-based ascii paint program in screen 0"
"Make a title screen for a fictitous game without using libs or external files (no image loading)"


Title: Next Challenge
Post by: LooseCaboose on March 03, 2003, 07:49:49 PM
Obfuscated QB contest!!

See if you can create a QB program that is as difficult to understand as possible. To make it a real contest of skill you cant use hardware access things like peek, poke, inp, large strings of hex code, etc.

Obfuscation techniques included code that does something different to what appears at first glance, misuse of variables and statements, clever use of things like the AND, OR and NOT operators, short obscure variable names, complex algorithms, lack of or misuse of indentation, etc.

An obfuscated program can do anything, but must be difficult for somebody else to convert to (unwind) clear, readable code.

Im not sure how well QB lends itself to obfuscation but its worth a try. The International Obfuscated C Code Contest has been running for several years now, check out http://www.ioccc.org/


Title: Next Challenge
Post by: na_th_an on March 03, 2003, 07:54:35 PM
It is hard to obfuscate QB!!! It is a good challenge. LooseCaboose counts with my vote.


Title: Next Challenge
Post by: red_Marvin on March 04, 2003, 08:29:02 AM
Obfuscated=hard-to-read?

Well take a look on those nineliners...
(mine is hard to read for me though I have coded it :P )


Title: Next Challenge
Post by: LooseCaboose on March 05, 2003, 06:02:33 PM
Not so much just difficult to read, but difficult to understand what the program does and how it works. For example this one line won the first ioccc competion:

Code:

int i;main(){for(;i["]<i;++i){--i;}"];read('-'-'-',i+++"hell\
o, world!\n",'/'/'/'));}read(j,i,p){write(j/p+p,i---j,i/i);}


Understanding that it prints "Hello World" on the console isnt too difficult at a glance, understanding how its done is slightly harder. Note that the string "HelloWorld" is a parameter to the read call (You would expect a write or a printf?)

Basic guidelines are an obfuscated program should still be difficult to understand once it has been indented correctly, useless lines removed, and variables renamed.

The real competition would be to see if anyone can actually obfuscate QB code, C in particular is easy to obfuscate but QB should require a bit more thought.


Title: Next Challenge
Post by: na_th_an on March 05, 2003, 10:55:12 PM
Yeah, for example, instead of

Code:

b = 10
INPUT a
IF a = 1 THEN
   PRINT a + b
ELSEIF a = 2 THEN
   PRINT b - a
ELSE
   PRINT b
END IF


something like

Code:

b=10:INPUT a:PRINT ABS(a = 1)*a + b - ABS(a = 2)


Is this?    :na_th_an:


Title: Next Challenge
Post by: red_Marvin on March 06, 2003, 05:35:26 PM
Contest Suggestion:
Make  a program that prints a gogolplex.
    A gogolplex is a "1" with a gogol
    zeros after, a gogol is 10^100


Code:
PRINT "10^(10^100)"

Doesn't count


Title: Next Challenge
Post by: Brandon Wigfield on March 06, 2003, 06:41:45 PM
Code:

PRINT 1
FOR a = 0 TO 10 ^ 10
FOR b = 0 TO 10 ^ 10
FOR c = 0 TO 10 ^ 10
FOR d = 0 TO 10 ^ 10
FOR e = 0 TO 10 ^ 10
FOR f = 0 TO 10 ^ 10
FOR g = 0 TO 10 ^ 10
FOR h = 0 TO 10 ^ 10
FOR i = 0 TO 10 ^ 10
FOR j = 0 TO 10 ^ 10
    PRINT 0
NEXT
NEXT
NEXT
NEXT
NEXT
NEXT
NEXT
NEXT
NEXT
NEXT


I wouldn't suggest running this as it's pointless but I think it gets the job done


Title: Next Challenge
Post by: Agamemnus on March 06, 2003, 07:19:32 PM
I like the obfuscated code idea. I'll try to make something.

Are we allowed to use colons?


Title: Next Challenge
Post by: na_th_an on March 07, 2003, 12:52:49 AM
I guess yes :) that makes the thing completely unreadable. Also use ON GOSUBs and the like :P


Title: or...
Post by: Roadkill on May 25, 2003, 05:05:04 PM
create a game that does not exceed more than 15 points

point values:
1 point for every keyboard control use (including exiting)
0.5 points for every line
0.5 points for every variable used
0.25 points for every time a CIRCLE , LINE or Pset is used

do not exceed 18 points!

get to it!!!!!!!!!!!!
 :P  :P  :P  :P  :P


Title: Next Challenge
Post by: oracle on May 25, 2003, 09:17:31 PM
*Cough cough*... *date of last post*...

Did anyone get around to making any obfuscated code though?


Title: Next Challenge
Post by: Roadkill on May 26, 2003, 01:11:34 AM
does it really quite matter when the time of last post is?
it is possible to teach an old dog new tricks so why not post a new message topic on an old post? brand new posts only drop once when an old post is bumped. if a new post is  important enough it will crawl back to the top.


Title: Next Challenge
Post by: oracle on May 26, 2003, 01:19:21 AM
Yeah, but if nobody has posted in this thread for such a long time it means that no one is interested anymore. It's better to start a new thread, cos a) people look at new threads and b) you can use a more relevant topic line. What's wrong with posting your idea in a new thread?

I have found out by experience, when I was a whippersnapper like you, that it's best to leave sleeping dogs lie  :wink: