@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4



Comments:

<0> regexp -all {<h4>([\w\s]+)</h4>\s*<h5>([\w\s]+)</h5>} $hdata junk test1 test2
<0> why does this sets test1 & test2 to only one value?
<1> hmmm i think i got it
<2> im stuck
<2> gimme more time
<1> lol
<1> i'm testing now
<1> oh no
<1> its wrong atm
<2> mh
<2> how do you get the player that gets out in a round
<2> a loop?
<2> or is there a mathematical expr
<1> using lreplace
<2> but if the rhyme is bigger then the group
<1> ok it kind of works



<1> except i get the wrong winner...
<2> :]
<1> ok
<1> i always get player 4 as winner
<1> i created a fixed game =)
<0> why does regexp get only the last value? and not all?
<1> RTFM!
<0> I ****ING DID
<0> lame tcl manual is crap
<3> YOU are crap
<2> :]
<0> lol
<1> regexp ?
<4> regexp -> http://www.tcl.tk/man/tcl8.4/TclCmd/regexp.htm
<5> regexp -> http://Tcl.Tk/man/tcl8.5/TclCmd/regexp.htm
<1> try reading that
<1> maybe there is an option that you DIDNT reasd
<2> hey
<1> *read
<1> i still havent got it
<2> with 3 players and a 4 rhyme
<2> who gets out first time?
<2> player 1 right?
<1> player 1
<0> already tryed inline
<0> but it dosent put values in var
<0> so im stuck :*(
<1> -all -inline --
<0> yeah but inline u have to remove the variables test1 test2
<1> yeh...
<1> not too hard
<1> damn __Gotisch, this is quite hard
<2> yes!
<2> i got a endless loop now
<1> me too
<1> % game 6 4
<2> :]
<1> player 5 wins
<1> % game 7 3
<6> http://tinyurl.com/zddyr <--- new site of portable console, next-gen console and gaming on pc
<0> lol
<1> __Gotisch, i'm starting over
<3> http://rainbow.sytes.net/test/temp/O02.txt <- that
<3> 's what you are doing atm ?
<1> yeah
<1> i think i got it
<1> i wrote out a trace table on paper
<2> damn
<2> i got player 2 wining always
<1> haha
<1> i had that but with player 4
<1> ok time to code what i got on paper
<1> ack
<1> i nearly got it too =|
<1> just slightly out
<3> u know, it goes back and forth when there's 2 players
<1> yes
<1> thats where my problem arises
<1> the final two it gets the wrong one
<3> they dont state how long a game is
<2> ?



<2> why?
<2> if there are two player there is only 1 round
<2> the game goes until there is one player left
<3> isnt it number of words ?
<3> which would be 1
<1> erm
<1> i got a list
<1> 5 6
<1> and i do
<1> set list [lreplace $list $index $index]
<1> i end up with 6
<1> $index = 1
<1> here:
<1> left: 5 6 starting@0 index:1
<1> player 6 wins
<1> OMG mine works
<1> lol
<1> puts "player [expr [join $list] + 1] wins"
<1> my final line was that
<3> "What is the smallest number of words that might be in the rhyme?" <- wouldnt that mean u should make up ur own rhyme ?
<1> ahahahaha
<1> mine works =)
<1> erm BL4DE that question is self explanatory
<3> i dont get your damn problem then
<1> lol
<1> do question 1)a) and 1)b) first
<2> oh
<2> damn!
<2> [GRiMMY]
<5> __Gotisch: #4716 (2204 clicks) Tcl error: invalid command name "GRiMMY"
<2> after a player is out
<1> yes
<2> do they start at first player again?
<1> no
<0> <td cl***=\"col1\">([\w]+)</td>\s\w\s*<h4>([\w\s]+)</h4>\s*<h5>([\w\s]+)</h5>
<2> like 1 2 3out 4 5 1 2 4 out 5 1 2 out
<2> damn
<0> is there anything wrong with my exp&
<3> 1 2 3 5 6 7
<0> ?
<1> starts at the same list index as befor
<2> sux
<2> :]
<1> i'm gonna test mine with the mark scheme tests
<2> mark scheme tests?
<1> woohttp://www.olympiad.org.uk/papers/2002/samples/bio02smk.doc.zip
<1> they test the program with certain data
<3> u just found the damn anywer ?
<1> and mine works 100% for part 1)a)
<2> got it :D
<2> ye mine too :)
<2> well
<2> it works with the test in the text
<2> tell me some other values
<2> ; proc GRiMMY {} { puts { [GRiMMY] [GRiMMY] [GRiMMY] } }
<5> __Gotisch: #4744 (354 clicks) Tcl:
<2> [GRiMMY]
<5> __Gotisch: #4745 (stdout) [GRiMMY] [GRiMMY] [GRiMMY]
<2> tell me some values :P
<1> lol
<1> 6 and 4
<1> 40 and 1
<1> 20 and 8
<1> 37 and 19
<1> 555 and 444
<2> 5
<1> 82 and 999
<2> 40
<2> 1
<2> 27
<2> 31
<2> correct?
<1> yes
<1> i'm doing part c now =)


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #tcl
or
Go to some related logs:

#politics
#windows
#linuxhelp
locate Pex/Text.pm
#unixhelp
#worldcup
atwt.pk
#ubuntu
hare krishna outfit
diverguy



Home  |  disclaimer  |  contact  |  submit quotes