Advertisement
D10d3

CPU Wars D10D3's House Rules

May 4th, 2015
683
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.64 KB | None | 0 0
  1. #CPU Wars D10D3's House Rules
  2. #http://us.cpuwarsthegame.com/
  3. #plain English rules at bottom
  4. #http://www.d10d3.net/
  5.  
  6. all_cards.shuffle
  7. Deck = 15 cards * Number_of_Players from all_cards
  8.  
  9. for I = Number_of_Players:
  10.     player.hand = deal 5 cards to player from Deck
  11.  
  12. all_players.review(player.hand)
  13.  
  14. 1st player = random.choice(Number_of_Players)
  15.  
  16. while player.hand = True:
  17.     player.announce Stat
  18.     all_players choose card and place face down on table
  19.     if Stat.arrow = Up:
  20.         player.card with highest Stat = Winner
  21.     elif Stat.arrow = Down:
  22.         player.card with lowest Stat = Winner
  23.     elif Stats are even:
  24.         discard cards
  25.     Winner takes cards as Score_Stack
  26.     if Deck = > 0:
  27.         all_players.take card from Deck
  28.     else:
  29.         all_players continue with player.hand
  30.        
  31. Game_Winner = player(highest Score_Stack)
  32.  
  33.  
  34. #Plain English Rules
  35. """
  36. Shuffle the cards
  37. Deal a deck of 15 cards per player, set unused cards aside, they will not be used
  38. Deal 5 cards face down to each player
  39. Players review their hands
  40. Decide who goes first and take turns:
  41.     1st Player announces a stat
  42.     All players choose a card and place one face down on the table
  43.     When all players have chosen a card turn them over and compare stats
  44.     The player with either the highs stat (if the stat has an UP arrow) or the lowest stat (if it has a DOWN arrow) wins the hand.
  45.     The winner collects all of the cards played in that hand and keeps them as a score stack.
  46.     Each player takes a card off the top of the deck and adds it to their hand.
  47.     Repeat steps with next player and so on.
  48. When the deck is gone, play continues until everyone is out of cards
  49. The player with the biggest score stack wins.
  50. """
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement