[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 264: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 326: mysqli_free_result(): Couldn't fetch mysqli_result
Pete's QBASIC Site Discuss QBasic, Freebasic, QB64 and more 2007-12-23T07:51:37-05:00 http://petesqbsite.com/phpBB3/app.php/feed/topic/2519 2007-12-23T07:51:37-05:00 2007-12-23T07:51:37-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=16128#p16128 <![CDATA[Pete, are you going to release a new coding competition?]]>

Code:

RANDOMIZE TIMER? "1.rock"? "2.paper"? "3.scissors"INPUT ia:c = INT(RND(1) * 3) + 1IF c = i OR c < 1 GOTO aSELECT CASE cCASE 1    IF i = 3 THEN r = 1    if i = 2 then r = 2CASE 2    IF i = 1 THEN r = 1    if i = 3 then r = 2CASE 3    IF i = 2 THEN r = 1    if i = 1 then r = 2END SELECTIF r = 1 THEN ? "comp won!"IF r = 2 THEN ? "You Won!"SLEEP

Statistics: Posted by nkk_kan — Sun Dec 23, 2007 7:51 am


]]>
2007-12-16T16:04:09-05:00 2007-12-16T16:04:09-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=15973#p15973 <![CDATA[Pete, are you going to release a new coding competition?]]> Statistics: Posted by coma8coma1 — Sun Dec 16, 2007 4:04 pm


]]>
2007-12-16T14:41:48-05:00 2007-12-16T14:41:48-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=15968#p15968 <![CDATA[Pete, are you going to release a new coding competition?]]>

Statistics: Posted by bungytheworm — Sun Dec 16, 2007 2:41 pm


]]>
2007-12-16T14:31:09-05:00 2007-12-16T14:31:09-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=15966#p15966 <![CDATA[Pete, are you going to release a new coding competition?]]> Statistics: Posted by coma8coma1 — Sun Dec 16, 2007 2:31 pm


]]>
2007-12-16T06:32:21-05:00 2007-12-16T06:32:21-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=15956#p15956 <![CDATA[Pete, are you going to release a new coding competition?]]> that means that our program needs to be 0 char long? =P
ok
i'm trying it! =P

Statistics: Posted by nkk_kan — Sun Dec 16, 2007 6:32 am


]]>
2007-12-13T22:25:46-05:00 2007-12-13T22:25:46-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=15918#p15918 <![CDATA[Pete, are you going to release a new coding competition?]]> So if you use library, that library must be in that 255 characters ;)

Statistics: Posted by bungytheworm — Thu Dec 13, 2007 10:25 pm


]]>
2007-12-13T16:33:29-05:00 2007-12-13T16:33:29-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=15916#p15916 <![CDATA[Pete, are you going to release a new coding competition?]]> Statistics: Posted by Sinuvoid — Thu Dec 13, 2007 4:33 pm


]]>
2007-12-13T09:33:45-05:00 2007-12-13T09:33:45-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=15913#p15913 <![CDATA[Pete, are you going to release a new coding competition?]]>

Code:

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

Statistics: Posted by bungytheworm — Thu Dec 13, 2007 9:33 am


]]>
2007-12-13T07:50:58-05:00 2007-12-13T07:50:58-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=15911#p15911 <![CDATA[Pete, are you going to release a new coding competition?]]>

Statistics: Posted by Sinuvoid — Thu Dec 13, 2007 7:50 am


]]>
2007-12-13T05:28:34-05:00 2007-12-13T05:28:34-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=15909#p15909 <![CDATA[Pete, are you going to release a new coding competition?]]>
well...u can make some nice gfx i think ??

Statistics: Posted by nkk_kan — Thu Dec 13, 2007 5:28 am


]]>
2007-12-13T05:26:43-05:00 2007-12-13T05:26:43-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=15908#p15908 <![CDATA[Pete, are you going to release a new coding competition?]]> Statistics: Posted by bungytheworm — Thu Dec 13, 2007 5:26 am


]]>
2007-12-13T05:01:09-05:00 2007-12-13T05:01:09-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=15906#p15906 <![CDATA[Pete, are you going to release a new coding competition?]]> 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?

Statistics: Posted by nkk_kan — Thu Dec 13, 2007 5:01 am


]]>
2007-12-12T16:36:08-05:00 2007-12-12T16:36:08-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=15903#p15903 <![CDATA[Pete, are you going to release a new coding competition?]]> 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...

Statistics: Posted by Codemss — Wed Dec 12, 2007 4:36 pm


]]>
2007-12-11T16:30:18-05:00 2007-12-11T16:30:18-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=15901#p15901 <![CDATA[Pete, are you going to release a new coding competition?]]> 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

Statistics: Posted by bungytheworm — Tue Dec 11, 2007 4:30 pm


]]>
2007-12-11T14:51:45-05:00 2007-12-11T14:51:45-05:00 http://petesqbsite.com/phpBB3/viewtopic.php?p=15899#p15899 <![CDATA[Pete, are you going to release a new coding competition?]]>
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.

Statistics: Posted by Pete — Tue Dec 11, 2007 2:51 pm


]]>