Advertisement
Guest User

Untitled

a guest
Nov 19th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.44 KB | None | 0 0
  1. Chanel'sUnderworld: https://www.hastebin.com/qomohevoye.cs
  2. Chanel'sUnderworld: card object
  3. Chanel'sUnderworld: class name is Card
  4. Chanel'sUnderworld: https://www.hastebin.com/febuzibawi.java
  5. Chanel'sUnderworld: Deck class
  6. Lifespandex: yep
  7. Chanel'sUnderworld: https://www.hastebin.com/riloqifutu.cs
  8. Chanel'sUnderworld: Driver class
  9. Chanel'sUnderworld: i added a tiny bit of functionallity, not much though
  10. Lifespandex: so i gotta shuffle the deck?
  11. Chanel'sUnderworld: yes
  12. Chanel'sUnderworld: you gotta do a lotta things.
  13. Chanel'sUnderworld: the first one, make me a simple blackjack game.
  14. Lifespandex: alright
  15. Chanel'sUnderworld: i wanna be able to place a bet using my current money stack. then im deal 2 cards, faceup. the dealer also gets a hand.
  16. Chanel'sUnderworld: i can see the SECOND card he's dealt, the first is facedown.
  17. Chanel'sUnderworld: i can choose to type 'hit' or 'stand'.
  18. Chanel'sUnderworld: if i choose hit, im given a new card. if my hand exceeds 21, i lose my chips.
  19. Lifespandex: and you can only hit 3 times, max 5 cards
  20. Chanel'sUnderworld: this goes on until i stand. then i compare hands with the dealer.
  21. Chanel'sUnderworld: no, you can hit forever.
  22. Lifespandex: alright
  23. Lifespandex: just cmd line?
  24. Chanel'sUnderworld: yes.
  25. Lifespandex: k
  26. Chanel'sUnderworld: make it nice though...for instance, [K] is much prettier than [king of diamonds]
  27. Chanel'sUnderworld: [A][Q] is easy to read.
  28. Chanel'sUnderworld: [X][4] if its the dealer for instance.
  29. Lifespandex: yep
  30. Lifespandex: what about suits?
  31. Chanel'sUnderworld: that's a design decision.
  32. Lifespandex: alright
  33. Chanel'sUnderworld: also, kinds, queens, jacks have a value of 10
  34. Chanel'sUnderworld: ace has a value of 11 until you bust. then it has a value of 1.
  35. Chanel'sUnderworld: i'd create a hand class if i were you. use that to keep track of hands.
  36. Lifespandex: alright
  37. Chanel'sUnderworld: also think of all the edge cases.
  38. Lifespandex: edge cases?
  39. Chanel'sUnderworld: whenever you plan something out in compsci there's different ways something could go
  40. Chanel'sUnderworld: edge cases = weird shit
  41. Chanel'sUnderworld: an edge case would be you getting blackjack on initial deal.
  42. Chanel'sUnderworld: typically, you win when you get 21. but if the dealer got blackjack too, you tie. but that only applies if the dealer gets blackjack, not just 21.
  43. Lifespandex: ok
  44. Chanel'sUnderworld: 21 = cards add up to 21. blackjack = cards add up to 21 AND you only have 2 cards
  45. Lifespandex: yep
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement