Page 2 of 14 <12345>Last »
Topic Options
#183459 - 2007-12-10 01:55 PM Re: KiXgolf 2007: Taunt Generator - Private Round [Re: Benny69]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Nice ... those were very long varnames, aye?
_________________________



Top
#183460 - 2007-12-10 02:13 PM Re: KiXgolf 2007: Taunt Generator - Private Round [Re: Jochen]
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
DrillSargent:

The "|" symbol consititues an "OR". you would use the formula "((k-1) mod n) + 1" to decisde which of the n choices you have to use. So, in your example, it's the second taunt, thus the sercond time oyu make a choice which taunt to use. Thus the fomula will give you a return of ((2-1) mod 3)+1 = 2. You'd therefore use "<tount> <sentence>". Then, to further resolve <taunt>, you then end up with a resolved <noun>! which then resolves to "Coconut!".

In the end, it's just math \:\)
_________________________
There are two types of vessels, submarines and targets.

Top
#183461 - 2007-12-10 02:24 PM Re: KiXgolf 2007: Taunt Generator - Private Round [Re: Sealeopard]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Whoa,

now I can imagine the rules ... thanx Jens, working code will follow sooner or later
_________________________



Top
#183462 - 2007-12-10 02:40 PM Re: KiXgolf 2007: Taunt Generator - Private Round [Re: Jochen]
Benny69 Offline
Moderator
*****

Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
one last one, then i need to get some work done:

Your solution passed all tests

KiXtart
KiXtart Version = 4.53
KiXGolf Script = kixgolf_tg.kix

Computer
OS = Windows XP Professional
CPU = Intel(R) Pentium(R) D CPU 3.20GHz
Speed = 3200 MHz
Memory = 2048 MB

KiXGolf Scoring Engine
Scoring Engine = 3.3

KiXtart Golf Score
Tournament = Taunt Generator
Processing Start = 2007/12/10 07:39:10.726
Processing End = 2007/12/10 07:39:10.741
Duration = 0000/00/00 00:00:00.015
KiXGolf Score = 1175

Thank you for participating in KiXtart Golf!
Press any key to continue...
_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)

Top
#183463 - 2007-12-10 02:57 PM Re: KiXgolf 2007: Taunt Generator - Private Round [Re: Sealeopard]
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
 Originally Posted By: Sealeopard
In the end, it's just math \:\)


Math I can handle... it's the wierd coconuts and sordid chickens that confuse me...

But I'm glad for the extension. I think I really need all the time to get to a working solution...
_________________________
The Code is out there

Top
#183474 - 2007-12-11 01:08 AM Re: KiXgolf 2007: Taunt Generator - Private Round [Re: DrillSergeant]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
So how many points does Benny get for being the only one with working code by the end of the game? ;\)


Congrats on being on the green first there Benny. Good job.

Top
#183475 - 2007-12-11 01:29 AM Re: KiXgolf 2007: Taunt Generator - Private Round [Re: NTDOC]
Benny69 Offline
Moderator
*****

Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
thanks doc, the sad part is i don't have a life. lol
_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)

Top
#183476 - 2007-12-11 08:40 AM Re: KiXgolf 2007: Taunt Generator - Private Round [Re: Benny69]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
hmmm ... got me script growing. Have all the text parts defined, am stripping the input of double spaces and adding childish hand gestures on the correct places.

All this has already 598 strokes, and I am far away from adding rules \:o
_________________________



Top
#183477 - 2007-12-11 09:18 AM Re: KiXgolf 2007: Taunt Generator - Private Round [Re: Jochen]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
This is getting ridiculous ... coding the part that defines the number of taunts per sentence adds another 100 strokes
_________________________



Top
#183481 - 2007-12-11 01:22 PM Re: KiXgolf 2007: Taunt Generator - Private Round [Re: Jochen]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
hmm... not quite 100 strokes; The taunt quantity code was too long and logically wrong \:\)
Current score therefore is only 688 (not finished, failing 1 of 1 Tests of course!)
_________________________



Top
#183482 - 2007-12-11 01:44 PM Re: KiXgolf 2007: Taunt Generator - Private Round [Re: Jochen]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
In order to ignite your compassionateness and showing how this hurts, I'll just post my current $sResult.
This is all I got for 702 strokes


Knight: Hello!

Knight: Are you feeling alright?

Knight: Is there someone else I could talk to?

Knight: Anyone at all?

Knight: We seek the holy grail . . .
Taunter: (A childish hand gesture).

Knight: Camelot!

Knight: Burn her!

Knight: I feel happy!

Knight: Bring out your dead

Knight: With nasty big pointy teeth

_________________________



Top
#183483 - 2007-12-11 01:49 PM Re: KiXgolf 2007: Taunt Generator - Private Round [Re: Jochen]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Jens, according to the rules, this should be valid:

 Code:
Knight: Wet heh olyg rail?
Taunter: (A childish hand gesture).
Taunter: A second taunt following the rules.

Knight: etc...


Can you confirm this ?
_________________________



Top
#183484 - 2007-12-11 02:53 PM Re: KiXgolf 2007: Taunt Generator - Private Round [Re: Jochen]
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
shouldn't the gesture be followed by two taunts? (4 words)



Edited by DrillSergeant (2007-12-11 02:56 PM)
Edit Reason: nope, it shouldn't. The gesture counts as the first taunt.
_________________________
The Code is out there

Top
#183485 - 2007-12-11 03:09 PM Re: KiXgolf 2007: Taunt Generator - Private Round [Re: DrillSergeant]
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11164
Loc: Boston, MA, USA
Jochen: The childish hand gesture happens only when you seek the holy grail but your're not seeking in your example.
_________________________
There are two types of vessels, submarines and targets.

Top
#183486 - 2007-12-11 03:23 PM Re: KiXgolf 2007: Taunt Generator - Private Round [Re: Sealeopard]
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
Jens, are you sure?

In the explanation you say that you have to look for 'theholygrail' not 'seektheholygrail'...
_________________________
The Code is out there

Top
#183487 - 2007-12-11 03:34 PM Re: KiXgolf 2007: Taunt Generator - Private Round [Re: DrillSergeant]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Ooops ... do we have a problem now ?
_________________________



Top
#183488 - 2007-12-11 03:39 PM Re: KiXgolf 2007: Taunt Generator - Private Round [Re: DrillSergeant]
Benny69 Offline
Moderator
*****

Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
 Originally Posted By: Sealeopard
whenever the program finds the holy grail, which is to say, the letters t-h-e-h-o-l-y-g-r-a-i-l (case insensitive) in that order in a line of input, then the first taunt generated will be displayed by the program as "(A childish hand gesture)".


I would inturpit this as:

Knight: Give me the holy grail!
Taunter: (A childish hand gesture).
Taunter: Your godfather was a parrot.

Or

Knight: Look the holy grail!
Taunter: (A childish hand gesture).
Taunter: Your godfather was a parrot.

Or

Knight: Me take theholygrail!
Taunter: (A childish hand gesture).

Or

Knight: Me take theh olyg rail!
Taunter: (A childish hand gesture).
Taunter: Your godfather was a parrot.
_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)

Top
#183489 - 2007-12-11 04:08 PM Re: KiXgolf 2007: Taunt Generator - Private Round [Re: Jochen]
DrillSergeant Offline
MM club member
*****

Registered: 2004-07-09
Posts: 1164
Loc: Eijsden, the Netherlands
 Originally Posted By: Jochen
Ooops ... do we have a problem now ?


I shouldn't think so, it's just the question if you have to look for 'seektheholygrail' or 'theholygrail' and that's just 4 strokes diff...
_________________________
The Code is out there

Top
#183490 - 2007-12-11 04:14 PM Re: KiXgolf 2007: Taunt Generator - Private Round [Re: DrillSergeant]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
So, in opposite to what Jens state we do seek "the holy grail" but we do not "seek the holy grail"
_________________________



Top
#183493 - 2007-12-11 05:42 PM Re: KiXgolf 2007: Taunt Generator - Private Round [Re: Jochen]
Benny69 Offline
Moderator
*****

Registered: 2003-10-29
Posts: 1036
Loc: Lincoln, Ne
has anyone noticed that:

<taunt> ::= <sentence> | <taunt> <sentence> | <noun>! | <sentence>
is the same as:
<taunt> ::= <sentence> | <noun>! <sentence> | <sentence>
_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)

Top
Page 2 of 14 <12345>Last »


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 718 anonymous users online.
Newest Members
Timothy, Jojo67, MaikSimon, kvn317, kixtarts2025
17874 Registered Users

Generated in 0.174 seconds in which 0.019 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org