#164921 - 2006-07-26 02:41 PM
Re: KiXgolf: Mayan Number Converter - Public Phase - 170
|
Benny69
Moderator
Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
|
I don’t think that any of us would use any script that takes days to run, most of us get frustrated with almost any program that does not react within seconds. I think that brute force has its place and if it can be used in practical situations it should be allowed, otherwise there should be penalties for the score that start adding up quickly after 20-30 seconds (the point of frustration).
|
Top
|
|
|
|
#164924 - 2006-07-26 05:19 PM
Re: KiXgolf: Mayan Number Converter - Public Phase - 170
|
Benny69
Moderator
Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
|
i don't think it would be that tough, jooel has been playing with something similar, and i think rogier has the right idea;
after stop time of script: Code:
If $runtime > $POF $strokes = $strokes + 2^($run_time - $POF) EndIf
|
Top
|
|
|
|
#164928 - 2006-07-26 05:32 PM
Re: KiXgolf: Mayan Number Converter - Public Phase
|
DrillSergeant
MM club member
Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
|
runtime divided by pof
Code:
If $runtime > $POF $strokes = $strokes + 2^($run_time / $POF) EndIf
so a POF of 20 secs gives:
running for 10 secs = 2^(10/20) = 0 running for 20 secs = 2^(20/20) = 2 running for 40 secs = 2^(40/20) = 2*2 = 4 running for 60 secs = 2^(60/20) = 2*2*2 = 8 etc...
|
Top
|
|
|
|
#164929 - 2006-07-26 05:36 PM
Re: KiXgolf: Mayan Number Converter - Public Phase
|
DrillSergeant
MM club member
Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
|
Quote:
2 xor (runtime - POF)?Quote:
^ = 2 raised to the power (runtime - POF)
|
Top
|
|
|
|
#164932 - 2006-07-26 06:03 PM
Re: KiXgolf: Mayan Number Converter - Public Phase
|
Benny69
Moderator
Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
|
i think that the POF would be set for each tournament depending on what is trying to be accomplished, and as far as 'Brute Force' I see that as any code that in any way or form that counts 1 by 1 until the result is found. if it can be accomplished inside the POF it should be allowed, if it is outside the POF then penalties should be applied.
|
Top
|
|
|
|
#164933 - 2006-07-26 06:29 PM
Re: KiXgolf: Mayan Number Converter - Public Phase
|
Lonkero
KiX Master Guru
Registered: 2001-06-05
Posts: 22346
Loc: OK
|
^2 does raise? damn, should have realised that mid-round.
|
Top
|
|
|
|
#164936 - 2006-07-26 08:11 PM
Re: KiXgolf: Mayan Number Converter - Public Phase
|
Benny69
Moderator
Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
|
POF may not be the way to go, but I do think we all are in agreement that time boundaries need to be set. I think 1 hour is a bit too long, but it is not unreasonable. I do think that the 1 hour time frame should be limited to what I would call a slow machine, say a PIII 800mhz, so if the same code was run on a machine like mine 2.8ghz dual core it should have to take less than 1 hour.
Edited by benny69 (2006-07-26 08:12 PM)
|
Top
|
|
|
|
#164939 - 2006-07-27 02:24 AM
Re: KiXgolf: Mayan Number Converter - Public Phase
|
Benny69
Moderator
Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
|
|
Top
|
|
|
|
Moderator: Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 686 anonymous users online.
|
|
|