Pre-‐Project:High-‐Low
Card
GameDesign and implement an object-oriented solution to theHigh-Low card game, a two-player game that requires a deck of cards.Rulesof
the
game1.A card deck consists of 52 cards, each of which has a numeric value between 1 and 13, called the rank of card, and one of four suits (spades, hearts, diamonds, and clubs)2.The values 1, 11, 12, and 13 have special names: Ace, Jack, Queen, and King, respectively. See more [https://en.wikipedia.org/wiki/Suit_(cards)]3.To play the game we deal the entire deck of cards to two players.•The deck of cards needs to be shuffled before dealing4.Each player has a pile of 26 cards face down on the table.Each player has a name.5.Each turn, the players show the top cards from their playing piles, and the player with the higher ranking card wins both the cards, and putting them face up in theirwinning pile.•Aces count as highest rank.6.If the cards shown by the players have the same rank, then ...•each player places the number of cards equal to that rank face down on the table.•The last cards played by each player are then turned over and compared•The higher value wins all of the cards that have been played this turn.•If another tie occurs, both players get their cards back to their playing pile,reshufflethe pile and start a new turn.7.When one of the players finishes all of the cards from the playing pile, the game ends. The player with more cards in his or her winning pile wins.Simple way to identify the concepts that may become the objects of the program is to analyze the specification in terms of “part of speech”.•Nounsin the specification become objects in the solution, properties of objects, or values of properties.•Verbsin the specification frequently describe the behavior (methods) of the objects.Create a UML class diagram to model the game and implement itinC#according to yourdiagram.You should be able to explain your design and its corresponding implementation.•Why do you need this as a class?•What is the relationship between these two classes?•How many objects of this class are associated with an object of the other class?Why?•Doesthis class know about the other class?Why?Note: You need to have a Game objectand you should be able to test your High-Low game using this object
Pre - โครงการ: สูง -
ต่ำบัตร
Gamedesign และใช้วิธีการแก้ปัญหาเชิงวัตถุที่จะเล่นเกมการ์ด theHigh ต่ำ, เกมที่สองผู้เล่นที่ต้องใช้ดาดฟ้าของ cards.Rulesof สำรับไพ่ game1.A ประกอบด้วย 52 ใบแต่ละ ที่มีค่าตัวเลขระหว่างวันที่ 1 และ 13 เรียกว่าการจัดอันดับของบัตรและเป็นหนึ่งในสี่ชุด (จอบ, หัวใจ, เพชร, และคลับ) 2. ค่า 1, 11, 12, และ 13 มีชื่อพิเศษ: เอซ แจ็ค, Queen, และพระมหากษัตริย์ตามลำดับ ดูข้อมูลเพิ่มเติม [https://en.wikipedia.org/wiki/Suit_(cards)]3.To เล่นเกมที่เราจัดการดาดฟ้าทั้งหมดของบัตรที่จะเล่นสองคน. •ดาดฟ้าของบัตรจะต้องมีการสับก่อน dealing4.Each ผู้เล่นมีกอง 26 บัตรคว่ำหน้าลงบนเครื่องเล่น table.Each ได้เปิด name.5.Each ผู้เล่นแสดงบัตรชั้นนำจากกองการเล่นของพวกเขาและผู้เล่นที่มีบัตรชนะอันดับที่สูงขึ้นทั้งบัตรและวาง พวกเขาต้องเผชิญในกอง theirwinning. •เอซนับเป็นสูงสุด rank.6.If บัตรที่แสดงโดยผู้เล่นมีตำแหน่งเดียวกันแล้ว ... •ผู้เล่นแต่ละสถานที่จำนวนบัตรเท่ากับอันดับที่ใบหน้าลงบนโต๊ะ •บัตรสุดท้ายที่เล่นโดยผู้เล่นแต่ละคนแล้วหันไปและเมื่อเทียบกับ•มูลค่าที่สูงขึ้นชนะทั้งหมดของบัตรที่มีการเล่นเทิร์นนี้. •หากผูกอื่นเกิดขึ้นผู้เล่นทั้งสองได้รับบัตรของพวกเขากลับไปที่กองการเล่นของพวกเขากอง reshufflethe และ เริ่มต้น turn.7.When ใหม่หนึ่งในผู้เล่นเสร็จสิ้นทั้งหมดของบัตรจากกองการเล่นเกมจะจบลง ผู้เล่นที่มีบัตรเพิ่มเติมในการชนะของเขาหรือเธอวิธี wins.Simple กองการระบุแนวความคิดที่อาจจะกลายเป็นวัตถุของโปรแกรมคือการวิเคราะห์สเปคในแง่ของ "เป็นส่วนหนึ่งในการพูด". • Nounsin เปคกลายเป็นวัตถุในการแก้ปัญหา คุณสมบัติของวัตถุหรือค่าของคุณสมบัติ. • Verbsin ข้อกำหนดบ่อยอธิบายพฤติกรรม (วิธีการ) ของ objects.Create แผนภาพชั้น UML แบบเกมและใช้ itinC # ตาม yourdiagram.You ควรจะสามารถที่จะอธิบายการออกแบบของคุณ และการดำเนินการที่สอดคล้องกัน. •ทำไมคุณถึงต้องนี้เป็นชั้นหรือไม่•ความสัมพันธ์ระหว่างทั้งสองชั้นคืออะไร? •วิธีวัตถุจำนวนมากของชั้นนี้มีความเกี่ยวข้องกับวัตถุของคลาสอื่น ๆ ทำไม? •ระดับ Doesthis รู้เกี่ยวกับ ? ทำไมชั้นอื่น ๆ หมายเหตุ: คุณจำเป็นต้องมีเกม objectand คุณควรจะสามารถที่จะทดสอบเกมสูงต่ำของคุณโดยใช้วัตถุนี้
การแปล กรุณารอสักครู่..

ก่อนโครงการ‐ : สูง - ต่ำ
gamedesign ‐บัตรและใช้โซลูชั่นเชิงวัตถุเพื่อมากเกมบัตรต่ำ สองผู้เล่นเกมที่ต้องใช้ดาดฟ้าของบัตร กำหนด
game1 บัตรดาดฟ้าประกอบด้วย 52 ใบซึ่งแต่ละมีมูลค่าตัวเลขระหว่าง 1 และ 13 เรียกว่า อันดับ ของการ์ด และ 1 ใน 4 ชุด ( spades , หัวใจ , เพชร , และคลับ ) 2 ค่า 1 , 11 , 12และ 13 มีชื่อพิเศษ : เอซ , แจ็ค , ควีนและคิง ตามลำดับ ดูเพิ่มเติม [ https : / / en . wikipedia . org / wiki / suit_ ( บัตร ) เล่นเกม เราจัดการทั้งหมดดาดฟ้าของการ์ดผู้เล่นสองคน ] 3 . แต่ละสำรับจะต้องสับก่อน dealing4 ผู้เล่นแต่ละคนมีกอง 26 หน้าไพ่ลงบนโต๊ะ ผู้เล่นแต่ละคนได้ เป็น name.5.each เปิด ผู้เล่นแสดงบัตรด้านบนจากการลุ้นและผู้เล่นที่มีการจัดอันดับสูงบัตรชนะทั้งการ์ด และวางไว้หน้าขึ้นใน theirwinning กอง บวกเอซนับเป็นสูงสุด rank.6.if บัตรแสดงโดยผู้เล่นตำแหน่งเดียวกันแล้ว . . . . . . . แต่ละผู้เล่นแต่ละสถานที่ จำนวนบัตรเท่ากับอันดับที่หน้าลงบนโต๊ะ- เมื่อการ์ดที่เล่นโดยผู้เล่นแต่ละคน จะเปิดแล้ว และบริการมูลค่าที่สูงเมื่อชนะทั้งหมดของบัตรที่ได้รับการเล่นรอบนี้ ถ้าผูกบริการอื่นเกิดขึ้น ผู้เล่นทั้งสองได้รับบัตรของพวกเขากลับไปเล่นกอง กอง reshufflethe และเริ่ม turn.7.when ใหม่หนึ่งในผู้เล่นเสร็จสิ้นทั้งหมดของบัตรจาก กองเล่น เกมก็จะจบผู้เล่นที่มีบัตรมากขึ้น ใน ของเขาหรือเธอ ชนะ กองชนะ วิธีง่าย ๆเพื่อระบุแนวคิดที่อาจจะกลายเป็นวัตถุของโปรแกรมวิเคราะห์ข้อมูลในแง่ของ " ส่วนหนึ่งของการพูด " - nounsin สเปคเป็นวัตถุในการแก้ปัญหา , คุณสมบัติของวัตถุหรือค่าคุณสมบัติของแต่ละ verbsin สเปค . บ่อยครั้งที่อธิบายพฤติกรรม ( วิธีการ ) ของวัตถุสร้างแบบจำลอง UML แผนภาพคลาสในเกมและใช้ itinc #ตาม yourdiagram คุณควรจะสามารถที่จะอธิบายการออกแบบและการใช้งานที่สอดคล้องกันของของคุณ . - ทำไมต้องเป็นชั้น ? - อะไรคือความสัมพันธ์ระหว่างทั้งสองชั้นเรียน ? - วิธีการหลายวัตถุของคลาสนี้เกี่ยวข้องกับวัตถุของคลาสอื่น ๆ ? ทำไม ? บริการ doesthis ชั้นรู้ชั้นอื่น ๆ ? ทำไม ? หมายเหตุ :คุณต้องมีเกม objectand คุณควรจะสามารถทดสอบเกมต่ำสูงโดยใช้วัตถุนี้
การแปล กรุณารอสักครู่..
