| |
| |
| |
|
Page: 1 2
Comments:
<0> why do you need a c module for simple list operations? <0> what should getpermutations do? <0> [GRiMMY] <1> Gotisch: #1753 (3316 clicks) Tcl error: invalid command name "GRiMMY" <2> umm <2> look at that paste <0> what does getpermutations do? <2> towards the bottom <0> creates a list of all possible combinations of that list? <2> lets say i do this <2> no all possible permutations <0> show me an example <2> getPermutations {a b c} 2 <0> returns? <2> {a b} {a c} {b a} {b c} {c a} {c b} <0> ah
<0> and what happens on getPermutations "a b c" 4 <2> lol i forgot to add that criteria in <2> it would return -1 <2> hmmm <2> Safetcl ?? <0> ? <2> damn wheres the what is bot <2> ?? safetcl <3> [What-is safetcl] http://tcldrop.org/safetcl/ --defined by BL4DE on 08 Dec 2005 at 08:33 <4> [What-is safetcl] http://tcldrop.org/safetcl/ --defined by BL4DE on 08 Dec 2005 at 08:33 <0> why do you need recursive calls in getpermutations? <2> i dont <2> recursive or lexographically generating permutations is cool <2> also, recursively is better as it removes the limit on the number i can use <0> ye <0> but you already have the scrip there no? <2> yeah but goto the bottom of the paste <2> and look at the timings <2> i'm going to be using 48 elements <0> you want to generate all possible permutations on 48 elements? <0> with what length? <0> or you mean 5 elements with 48 length <2> yeah 5 elements on a 48 list <2> thats the maximum i will ever do <0> why do you need that? <2> poker script <2> minimum will be 29 with permutations of 2 <0> why do you need that much for a poker script oO <2> 52 cards in a deck <2> take out a minimum of 2 sets of hole cards for 2 players <2> 48 <2> deal a flop river and turn <2> thats 5 from 48 <2> then check who won each of the possible hands <2> and then create odds for it <0> i think my understanding of poker isnt good enough :] <0> dont you mean that % thats shown in tv too? <2> ;puts "hello" <1> [GRiMMY]: #1803 (stdout) hello <2> yeah thats what i mean Gotisch <2> there is a C library for it already but i cant find anyone willing to convert it to a tcl module for me <0> whats the c library and what funciton you need? <0> i can try <2> ok =) <0> but that would only run on linux i cant compile on windows <2> yeah no probs <2> http://download.gna.org/pokersource/poker-eval-130.0.tar.gz <2> what i need is whats in the examples folder <2> hcmpn.c <2> that is the binary example but i want a module =P <2> i think i'm gonna give up you know <2> and just use it as a binary <2> although i couldnt compile that library when i tried <2> ;puts hello <1> [GRiMMY]: #24 (stdout) hello <5> [GRiMMY]: #1 (stdout) hello <2> ;getPermutations {a b c} 2 <1> [GRiMMY]: #26 (3196 clicks) Tcl error: invalid command name "getPermutations" <5> [GRiMMY]: #3 (847 clicks) Tcl error: invalid command name "getPermutations" <2> bah! <2> ;::poker::getPermutations {a b c} 2
<1> [GRiMMY]: #29 (3265 clicks) Tcl error: invalid command name "::poker::getPermutations" <5> [GRiMMY]: #6 (1013 clicks) Tcl error: invalid command name "::poker::getPermutations" <0> ok <0> how do i get <0> the problem i see is <0> that thing wants **char <0> **argv <0> and we only have <0> tclobj :] <0> so we need to convert the tclobject array into an array of chars <0> well strings <2> hmm lol <0> lo? <2> i got no idea how to do that <0> i hate those stupid error messages not telling me anything <0> couldn't load file "poker.so": poker.so: cannot open shared object file: No such file or directory <0> why cant he just say what file is missing <0> i give up :) <0> just use the compile version works fine here :] <6> lexpr 100 - 15 * 15 + 600 <6> expr 100 - 15 * 15 + 600 <1> dreamss: #86 (17278 clicks) Tcl: 475 <6> ;expr (100 - 15 * 15) + 600 <1> dreamss: #87 (319 clicks) Tcl: 475 <6> ;expr (100 - 15) * 15 + 600 <1> dreamss: #88 (314 clicks) Tcl: 1875 <7> ;expr 10 * 10 <1> soulfly-: #96 (258 clicks) Tcl: 100 <7> :D <7> ;unset bla <1> soulfly-: #98 (431 clicks) Tcl error: can't unset "bla": no such variable <7> ;unset $bla <1> soulfly-: #99 (436 clicks) Tcl error: can't read "bla": no such variable <7> ;set bla [expr 1336 + 1] <1> soulfly-: #100 (5860 clicks) Tcl: 1337 <7> ;$bla <1> soulfly-: #101 (3222 clicks) Tcl error: invalid command name "1337" <7> :D <8> Hi, What does the "key" argument should represent when it's in the proc { } line <9> =) <10> hi FireEgl <10> do u have some knowledge with MYSQL <11> what are your questions, AoEKiller? <10> well its for regexp it make me insane :D <11> if you need Tcl-libraries that support MySQL, then you should get either Fbsql or mysqltcl <10> ok <10> ur good in regexp^ <9> AoEKiller: Nope.. I don't. <10> ok =) <11> no, not really <11> are you talking MySQL regexps or plain Tcl regexps? <11> FireEgl: you dont use DBs? <10> plain tcl regexp <11> i know some, yes <11> but i dont do advanced ones <11> but go ahead and ask <11> there are several others here that do regexps better than me, including fire <10> well I have this sentence: <9> hest: Nope.. I use array's and dict's in Tcl to work as my database. =P I've never needed anything more powerful.. <10> [ PRE ] MP3 [ OBC ] Juan_Diaz-Free-(MARFIL005)-Vinyl-2006-OBC <10> I want to remove some string now <10> I just wanna keep MP3 and the release name for exemple <11> hold on <11> got some visit <10> oki <10> Fire I know ur good u remeber me last day ;) <9> =) <2> AoEKiller no <2> firstly there is no need for another prebot in this world <10> lol <2> especially one that echos another prechan <2> since you obviously cant find your own sources <10> well ur very smart GrimmY <10> but all pre-bot are echoing from other pre
Return to
#tcl or Go to some related
logs:
#politics #gentoo Venezuala divorce rate
#beginner #asp variables in Flash 8Pro midgets politics #windowsxp #beginner #delphi
|
|