Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Poker code-minus straights HELP!
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
berf




PostPosted: Sat Jun 24, 2006 9:41 pm   Post subject: Poker code-minus straights HELP!

Here is all my code everythign is done except for straights and straight flushes. I've thought a lot about how to to straights and its stumping me big time. I really need help on this one its due in a couple of days and I've tried a lot but my teacher is being an idiot and not helping me


Poker.zip
 Description:

Download
 Filename:  Poker.zip
 Filesize:  265.88 KB
 Downloaded:  71 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
upthescale




PostPosted: Sat Jun 24, 2006 10:57 pm   Post subject: (No subject)

its becuz computer science teachers dont no anything about turing, all they no is looping adn if statements
Cervantes




PostPosted: Sun Jun 25, 2006 6:13 am   Post subject: (No subject)

How about something like this:
code:

function straight (sorted_hand : array 1 .. 5 of card) : boolean
    var current := sorted_hand (1)
    for i : 2 .. 5
        if sorted_hand (i).value = current.value + 1 and sorted_hand (i).suit = current.suit
            current := sorted_hand (i)
        else
            result false
        end if
    end for
    result true
end straight


upthescale wrote:

its becuz computer science teachers dont no anything about turing, all they no is looping adn if statements

That is entirely untrue and offensive. There are plenty of computer science teachers who are phenomenal teachers and know a good deal of Turing. And then there are the even better computer science teachers who don't even teach Turing. Wink

The point is, you should consider carefully what you're saying before you say it. Furthermore, that was rather spam-ish.
McKenzie




PostPosted: Sun Jun 25, 2006 12:18 pm   Post subject: (No subject)

Cervantes, Although I agree with your critisism of "upthe" (for fairly obvious reasons) I have to question your knowledge of Poker. A straight does not need to be the same suit (that would be a straight flush)
Dan




PostPosted: Sun Jun 25, 2006 3:02 pm   Post subject: (No subject)

I deftaly agrea that some if not the magority of computer science teachers know what they are doing but sadly there are also an signficat number who have no teachable in a computer realted suject and are asigned to teach computer scince corse in high school. This is hardly there fault tho since some one has to teach it. If anything i whould lay falut with the school borad for thinking that a science, math or business teachable means they can teach computer science right away. I think the school borad should either try to get at least one theacher with a computer since teachable in each high school or offer a type of porfiesional devlopment corse for teaching computer since in high school.

Also i find fualt in the way the school borad makes the ciruclem for computer since corses. From what i have seen you could aucatly tach computer since with out any computers or a real progaming langue and still have it complie with the cricumlem. Inadtion i realy supect some bad plays if not corptuion in the way school borad slect what software to uses in there schools.

Turing and landschool and admazing examples of this. And you with any understand of progaming and education whould know that you could teach a computer since corse with out paying for the software at all, using free compliers and IDEs out there. Yet the school borad has choice to buy a langue that is sub par and cost the most other then some M$ crap. If you whonted a langue that is easy, ruby is easy when you ingore classes and free. Yet the school borad goses and buys tones of books, software and other costly items from holth soft. I have a hard time bliveing that peolepo in the school borad are this dumb, and am starting to think that there are under the table deals going on. Even if it is simple as "hey you guys are form u of t? so am i, here have a excusives contract on our childers education!".

Note: The bellow is opinion only and there flaw has been fixed in v7.0

Lanschool, another great one. This software is so fundementaly falwed that it shocks me that it whould be instaled on any computer, esptaly one at an educational instustion of any kind. And when contacted about thess problems in there software what dose lanschool say? They say they whould rather spend time and resorces prosucting studtens then fixing there software. And here i thought there software was supsoted to be helping studtnes....and yet the school borad keeps buying up there software.

Any how thats my rant, in short not the teachers falut but the peoleop higher up Razz
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
Cervantes




PostPosted: Sun Jun 25, 2006 6:03 pm   Post subject: (No subject)

McKenzie wrote:
Cervantes, Although I agree with your critisism of "upthe" (for fairly obvious reasons) I have to question your knowledge of Poker. A straight does not need to be the same suit (that would be a straight flush)

I, uh.. have no excuse. Embarassed
Guest




PostPosted: Mon Jun 26, 2006 1:44 pm   Post subject: (No subject)

upthescale wrote:
its becuz computer science teachers dont no anything about turing, all they no is looping adn if statements


I find they know just the basics to teach a programming language, and although can be minimilistic in Turing, know other languages. Turing is mostly used for teaching students the basics of programming and understanding the concepts.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 7 Posts ]
Jump to:   


Style:  
Search: