Re: [PHP] PHP P O K E R...... and JAVA (convert)

2007-06-29 Thread Ryan A
Hey Nathan, Cool! Thanks for taking the time to find and fix that error and your suggestions below... Will give you a buzz if I run into a programming stonewall. Cheers! R Nathan Nobbe <[EMAIL PROTECTED]> wrote: Ryan, if you want to port the java code to php it wouldnt be very difficult since

Re: [PHP] PHP P O K E R...... and JAVA (convert)

2007-06-29 Thread Ryan A
Thanks! Dont know if it will help but its nice of you to share becausei always feel good reading someone elses ways of doing things. Might help if I get bogged down somewhere. Cheers! R Guillaume Theoret <[EMAIL PROTECTED]> wrote: This isn't exactly what was asked for but when I TA'd the

Re: [PHP] PHP P O K E R...... and JAVA (convert)

2007-06-27 Thread Guillaume Theoret
This isn't exactly what was asked for but when I TA'd the principles of programming languages course, an assignment I gave was to write a simple poker game in Haskell. If anyone's interested here's the sample solution I gave: http://smokinn.tengun.net/comp348/poker.hs It's all console based of c

Re: [PHP] PHP P O K E R...... and JAVA (convert)

2007-06-27 Thread Nathan Nobbe
Ryan, if you want to port the java code to php it wouldnt be very difficult since this code doesnt rely heavily on much besides core language constructs. really you could just save it as a php file and start making changes where needed; it wouldnt take too long to port. as for the compilation iss

Re: [PHP] PHP P O K E R...... and JAVA (convert)

2007-06-27 Thread Tijnema
On 6/27/07, Stephen <[EMAIL PROTECTED]> wrote: Tijnema <[EMAIL PROTECTED]> wrote: Well, I find this a very interesting thing ;) I have played quite a lot poker, and I still play it sometimes, and this doesn't seems too hard for me :) My approach would be this: 1) Deal cards, rand(1,13) for the

Re: [PHP] PHP P O K E R...... and JAVA (convert)

2007-06-27 Thread Stephen
Tijnema <[EMAIL PROTECTED]> wrote: Well, I find this a very interesting thing ;) I have played quite a lot poker, and I still play it sometimes, and this doesn't seems too hard for me :) My approach would be this: 1) Deal cards, rand(1,13) for the numbers(1-> Ace, 11->Jack, 12->Queen, 13->King)

Re: [PHP] PHP P O K E R...... and JAVA (convert)

2007-06-27 Thread Ryan A
Paul Scott <[EMAIL PROTECTED]> wrote: On Wed, 2007-06-27 at 14:17 +0200, Tijnema wrote: > Not too hard to program right? As long as you keep on assuming that you are playing with infinite decks of cards, and not marking cards as dealt as you deal. --Paul Hey Paul, Actually, I have already f

Re: [PHP] PHP P O K E R...... and JAVA (convert)

2007-06-27 Thread Tijnema
On 6/27/07, Paul Scott <[EMAIL PROTECTED]> wrote: On Wed, 2007-06-27 at 14:17 +0200, Tijnema wrote: > Not too hard to program right? As long as you keep on assuming that you are playing with infinite decks of cards, and not marking cards as dealt as you deal. --Paul Hmm, good point I just fo

Re: [PHP] PHP P O K E R...... and JAVA (convert)

2007-06-27 Thread Paul Scott
On Wed, 2007-06-27 at 14:17 +0200, Tijnema wrote: > Not too hard to program right? As long as you keep on assuming that you are playing with infinite decks of cards, and not marking cards as dealt as you deal. --Paul All Email originating from UWC is covered by disclaimer http://www.uwc.ac.za/

Re: [PHP] PHP P O K E R...... and JAVA (convert)

2007-06-27 Thread Tijnema
On 6/27/07, Ryan A <[EMAIL PROTECTED]> wrote: <...> Tijnema, thanks for giving it a go... Sorry it didnt compile,with my limited (and old) rusty knowledge of java 1.1 i couldnt make out too much and i dont have any java server to run this on to check it. I pretty much left Java years back once

Re: [PHP] PHP P O K E R...... and JAVA (convert)

2007-06-27 Thread Ryan A
Hey all! So you expect PHP ppl to do your job and test a JAVA class to tell u if it's worth porting it to php? Nice thoughts... Andy... why be a moron? I just wanted someone with java knowledge to have a look at the code and see if it ran properly.. something that should take an experienced

Re: [PHP] PHP P O K E R...... and JAVA (convert)

2007-06-27 Thread Tijnema
On 6/27/07, Ryan A <[EMAIL PROTECTED]> wrote: Hey all! Was looking at trying some stuff with php and p oker (texas hold'em). After searching the net for some clues as to how i can do this, i came accross the class on the php classes site (but that codes to bruteforce-ish) so continued looking

Re: [PHP] PHP P O K E R...... and JAVA (convert)

2007-06-27 Thread Andrei
So you expect PHP ppl to do your job and test a JAVA class to tell u if it's worth porting it to php? Nice thoughts... Andy Ryan A wrote: > Hey all! > > Was looking at trying some stuff with php and p oker (texas hold'em). > > After searching the net for some clues as to how i can do

[PHP] PHP P O K E R...... and JAVA (convert)

2007-06-27 Thread Ryan A
Hey all! Was looking at trying some stuff with php and p oker (texas hold'em). After searching the net for some clues as to how i can do this, i came accross the class on the php classes site (but that codes to bruteforce-ish) so continued looking and came accross some valuable suggestions on h