Qbasicnews.com
December 08, 2019, 06:56:15 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: 1 [2]
  Print  
Author Topic: Next Challenge  (Read 11717 times)
na_th_an
*/-\*
*****
Posts: 8244



WWW
« Reply #15 on: March 03, 2003, 07:54:35 PM »

It is hard to obfuscate QB!!! It is a good challenge. LooseCaboose counts with my vote.
Logged

SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
red_Marvin
Na_th_an
*****
Posts: 1509



WWW
« Reply #16 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 Tongue )
Logged

/post]
LooseCaboose
I hold this place together
*****
Posts: 981



« Reply #17 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.
Logged

esus saves.... Passes to Moses, shoots, he scores!
na_th_an
*/-\*
*****
Posts: 8244



WWW
« Reply #18 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:
Logged

SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
red_Marvin
Na_th_an
*****
Posts: 1509



WWW
« Reply #19 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
Logged

/post]
Brandon Wigfield
New Member

Posts: 1


« Reply #20 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
Logged
Agamemnus
x/ \z
*****
Posts: 3491



« Reply #21 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?
Logged

Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
na_th_an
*/-\*
*****
Posts: 8244



WWW
« Reply #22 on: March 07, 2003, 12:52:49 AM »

I guess yes Smiley that makes the thing completely unreadable. Also use ON GOSUBs and the like Tongue
Logged

SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Roadkill
New Member

Posts: 19


WWW
« Reply #23 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!!!!!!!!!!!!
 Tongue  Tongue  Tongue  Tongue  Tongue
Logged

if somebody cuts of your hand you still have two sharp bones to stick in thier eyes"
oracle
*/-\*
*****
Posts: 3652



WWW
« Reply #24 on: May 25, 2003, 09:17:31 PM »

*Cough cough*... *date of last post*...

Did anyone get around to making any obfuscated code though?
Logged

Roadkill
New Member

Posts: 19


WWW
« Reply #25 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.
Logged

if somebody cuts of your hand you still have two sharp bones to stick in thier eyes"
oracle
*/-\*
*****
Posts: 3652



WWW
« Reply #26 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:
Logged

Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!