السلام عليكم ورحمة الله وبركاته ,,,,,
كيف الحال إن شاء الله طيبين
اني ابي مساعده في تصميم برنامج في البيثون طبعاً محتاجه ضروري الله يخليكم وانا الصراحه مو بقادر افهم شي في البرنامج
حاولت قريت في المنتدى بس دون جدوى ,,,,
طبعاً البرنامج مطلوب مني من الكليه الا ادرس فيها في بريطانيا ,,,
وهذه نص الطلب بالانجليزي ,,
Project 1: THE DICE GAME OF PIG
This unfortunately named dice game can be played by two people. A dice is repeatedly thrown by the players and two individual running totals kept of the scores thrown. The goal is to be the first player to reach a total of 101.
Each player can throw the dice as many times as they like but if they throw a 1 their score is reduced back to zero. To avoid this either player can decline to throw more than once and so make the other take over.
Your computer version of Pig should record the game between two players. The computer should 'throw the dice', keep track of the score, and declare which player has won. An 'artificial intelligence' version of the game, in which the computer itself is one of the players, is NOT required. (This would be more interesting, but goes beyond the computational level of this assignment!)
منتظر مساعدتكم الله يخليكم وشكراً