diff --git a/Farhan_Towhid_Psuedocode b/Farhan_Towhid_Psuedocode index 09828fa..e3d2c56 100644 --- a/Farhan_Towhid_Psuedocode +++ b/Farhan_Towhid_Psuedocode @@ -1,5 +1,13 @@ -Farhan Towhid - 18 October, 2017 3rd Period +Farhan Towhid + +10/18/17 + +3rd Period + +Mr. Hudson + Psuedocode: Speed + We will be creating code to show the instructions for a game that is played with cards. This game only allows two people to play @@ -24,19 +32,16 @@ Each player can now look at their hand of 5 cards. If a player has any cards that can go in either ascending or descending order based on either of the middle piles; Said player will place all of the cards that they can on top of the middle pile that their card(s) correspond to. If the player has placed any cards; - Then the player will get a new card from their pile of 15 cards. - -Else they must wait for an opportunity where they can perfom said action based on any new cards that the opponent places on the middle pile + Said player gets new card from 15 card pile. + Else they must wait for opportunity to perfom said action based on any new cards that another player places in the middle. If both players are unable to place any cards based on the middle piles; - -Then they will draw a card from the "side" piles and will place them face up on top of the middle piles at the same time - -The players will continue performing said actions until one of the players runs out of cards to play. - - - - - - - + They will draw a card from the "side" piles and will place them face up on top of the middle piles at the same time. + +If a player runs out of cards; + If given player says, "speed"; + If they hit the cards in the middle before the other person; + Given player wins. + Else if other player is out of cards; + If other player slaps first; + Other player wins.+