Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (TedMar), 1,420 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Page 4 of 22 1 2 3 4 5 6 21 22
Re: 100 lines contest [Re: gri] #199757
04/01/08 10:01
04/01/08 10:01
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
 Code:
while(1)
{
 temp++;
 if (temp > 23)
 {
  temp = 42;
 }
 wait (1);
}


That's 3 lines in the sense of the contest. The semicolons count.

Re: 100 lines contest [Re: rojart] #199762
04/01/08 10:22
04/01/08 10:22
Joined: Aug 2003
Posts: 2,011
Bucharest, Romania
George Offline

Expert
George  Offline

Expert

Joined: Aug 2003
Posts: 2,011
Bucharest, Romania
You can add anything you want as long as you don't use more than 100 semicolons. Basically, you can't hide functions, etc into another file - that wouldn't be fair. If you need another file use it, but make sure that the total number of semicolons stays below 101.

Re: 100 lines contest [Re: George] #199767
04/01/08 10:31
04/01/08 10:31
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
that pretty much means the semicolons in .fx files will be counted too, right?

julz

EDIT: awesome contest, btw.

Last edited by JulzMighty; 04/01/08 10:32.

Formerly known as JulzMighty.
I made KarBOOM!
Re: 100 lines contest [Re: JibbSmart] #199774
04/01/08 10:59
04/01/08 10:59
Joined: Jan 2007
Posts: 651
Germany
R
RedPhoenix Offline
User
RedPhoenix  Offline
User
R

Joined: Jan 2007
Posts: 651
Germany
 Quote:
You can add anything you want as long as you don't use more than 100 semicolons. Basically, you can't hide functions, etc into another file - that wouldn't be fair. If you need another file use it, but make sure that the total number of semicolons stays below 101.


What do you mean by this? That it wouldn't be fair for example to write a fx file converted to ascii code numbers into the rgb channels of a picture and deconvert it in the project using some simpel pixel_for_bmap and str_for_asc instructions?? ;\)

Re: 100 lines contest [Re: RedPhoenix] #199785
04/01/08 11:18
04/01/08 11:18
Joined: Aug 2003
Posts: 2,011
Bucharest, Romania
George Offline

Expert
George  Offline

Expert

Joined: Aug 2003
Posts: 2,011
Bucharest, Romania
The semicolons in .fx files will be counted too.
RedPhoenix: please stop giving them ideas \:\)

Re: 100 lines contest [Re: George] #199800
04/01/08 12:12
04/01/08 12:12
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
not that i have made plans to do so, but if we were to make a 100 line program that doesn't require any other content (throw it in SED, hit compile, and voila! it's finished!) can we just post it in a thread here
 Code:
like so?


julz


Formerly known as JulzMighty.
I made KarBOOM!
Re: 100 lines contest [Re: JibbSmart] #199875
04/01/08 15:50
04/01/08 15:50
Joined: Aug 2003
Posts: 2,011
Bucharest, Romania
George Offline

Expert
George  Offline

Expert

Joined: Aug 2003
Posts: 2,011
Bucharest, Romania
A demo is always better; you can forget a semicolon or I can paste only a part of your code in Sed.

Re: 100 lines contest [Re: George] #199896
04/01/08 17:16
04/01/08 17:16
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
by the way, notepad++ has has a counting function in its find dialog.

 Quote:
for example to write a fx file converted to ascii code numbers into the rgb channels of a picture and deconvert it in the project using some simpel pixel_for_bmap and str_for_asc instructions?
it still is a semicolon even when in disguise. \:\)

Re: 100 lines contest [Re: ventilator] #199903
04/01/08 17:22
04/01/08 17:22
Joined: Sep 2003
Posts: 9,859
F
FBL Offline
Senior Expert
FBL  Offline
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
ok, so
 Code:
for (x=0; x<7; x++) 
counts as two lines? I know, I'm getting on your nerves... \:D

Re: 100 lines contest [Re: FBL] #199927
04/01/08 18:52
04/01/08 18:52
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
 Originally Posted By: Firoball
ok, so
 Code:
for (x=0; x<7; x++) 
counts as two lines? I know, I'm getting on your nerves... \:D


since its same thing with

x=0;
while(x<7){

x++;
}

yes, it counted as two lines \:D


3333333333
Page 4 of 22 1 2 3 4 5 6 21 22

Moderated by  George 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1