Find Jobs
Hire Freelancers

Write an algorithm and a program that plays the game of NIM

$10-30 USD

Kapalı
İlan edilme: 2 yıldan fazla önce

$10-30 USD

Teslimde ödenir
Write a detailed algorithm and a program that plays the ancient Chinese game of NIM. Actually, this is a simplified version of the original game. In this game, the person who runs your program will be one of the two human players, the program should act as the other player, as well as provide the narrative for the game and keep score, invite a friend to be the third player. Your program must keep score impartially while participating in the game. The program must perform the following: • Introduce and describe the game, the computer shall introduce itself as the AI player, and prompt the human players for his or her names along with MIT Ids. • Program is to be interactive to receive and display the response. • To display a greeting to the human player that incorporates the name provided in response to the prompt: Welcome <user’s name> to the game of Taking Stones. • The user’s name must be output in proper name case (i.e., mixed case starting with upper case for the first letter) regardless of the case the user types in. • The users shall input the number of stones to be picked either by using a standard random number generator function or may input according to their own strategy but the number should be less than or equal to three (3) and more than zero. • The program must reject and display a valid message if the number of stones to be removed are either less than one (1) or more than three (3) and remind them of the game constraints. In case of invalid entries program to prompt that player to re-enter an appropriate number. • The program should have the computer use the optimal playing strategy. The optimal strategy is as follows: Divide the remaining number of stones by three. If the remainder is zero, then two stones are removed, or else one stone is removed. For example, if the remaining number of stones is nine or fifteen, then two stones are removed; if the remaining number of stones is eight or ten, then one stone is removed. • Both the human players shall have their own strategies to play. • When one of the players has won a game, the program must output a congratulatory message naming the winner along with ID. • The program should allow the users to play additional games of NIM as long as he/she enters a “y” or “yes” (lowercase or uppercase) in response to a “Do you want to play again?” prompt.
Proje No: 31838242

Proje hakkında

10 teklif
Uzaktan proje
Son aktiviteden bu yana geçen zaman 2 yıl önce

Biraz para mı kazanmak istiyorsunuz?

Freelancer'da teklif vermenin faydaları

Bütçenizi ve zaman çerçevenizi belirleyin
Çalışmanız için ödeme alın
Teklifinizin ana hatlarını belirleyin
Kaydolmak ve işlere teklif vermek ücretsizdir
10 freelancers are bidding on average $27 USD for this job
Kullanıcı Avatarı
javaHi I have checked your project description. I have excellent programming and development skills. Contact me with all the details and requirements for your project for further discussion. I will provide you with dedicated support and follow-up. Regards Farah Khan
$50 USD 1 gün içinde
4,9 (28 değerlendirme)
4,6
4,6
Kullanıcı Avatarı
Hi! I am expert in Python, Matlab, ML, C++, C, C# and have 12 years experience. I work according to your requirement to provide the best quality and customer satisfaction. Thank you!
$20 USD 1 gün içinde
5,0 (2 değerlendirme)
1,7
1,7
Kullanıcı Avatarı
PHD IN SOFTWARE DEVELOPMENT AND ARCHITECTURE. EXPERT IN ABOVE NAMED SKILLS. HELLO DEAR CLIENT! Thank you for sharing your project details, I have read and understood them. Am interested in your project and I would like to take part in making it a success. Please consider me. I will work to your satisfaction by providing the best quality and communicate throughout the project. Please send me a message we discuss more about your project. CHEERS.
$25 USD 7 gün içinde
1,0 (1 değerlendirme)
2,7
2,7
Kullanıcı Avatarı
===== C/C++/Java/Python ===== Dear Client! I am Andrei, experienced programmer from Russia. I have read your requirement and I noticed that I am appropriate to this project. As a skillful software developer, I have rich experience with C/C++, Java, Python and built many projects like this. I promise I will finish this project with high quality on time. I hope you to contact me so that we have a full discuss with the project. Best regards!
$25 USD 3 gün içinde
0,0 (0 değerlendirme)
0,0
0,0
Kullanıcı Avatarı
MASTERS IN SOFTWARE DEVELOPMENT AND ARCHITECTURE. EXPERT IN ABOVE NAMED SKILLS Hi there! Thank you for sharing your project requirement, I have carefully read the project description and I would like to take part in this project. I am a nice guy to work with, very determined and self-motivated. I work according to your requirement to provide the best quality and customer satisfaction. I hope you will benefit from my services I can assurance that I will live up to your expectations. CHEERS.
$25 USD 7 gün içinde
0,0 (0 değerlendirme)
0,0
0,0
Kullanıcı Avatarı
hello, I have seen that you need an experienced python expert for algorithm and a program that plays the game of NIM . I am a professional python expert with more than 10 years experience. I have carefully understood your project requirements am sure that, I can do your project in very professional way. I have some more questions ,lets discuss the details in chatbox thank you
$30 USD 7 gün içinde
0,0 (3 değerlendirme)
0,0
0,0
Kullanıcı Avatarı
MASTERS IN SOFTWARE DEVELOPMENT AND ARCHITECTURE. EXPERT IN JAVASCRIPT, HTML5, CSS C, C++, PYTHON, JAVA AND PHP, BOT MAKING AND SCRIPTING, AUTOMATION. Hi there! Thank you for sharing your project requirement, I have carefully read the project description and I would like to take part in this project. I will work according to your requirement to provide the best quality and customer satisfaction. I hope you will benefit from my services I can assurance that I will live up to your expectations. CHEERS.
$25 USD 7 gün içinde
0,0 (0 değerlendirme)
0,0
0,0
Kullanıcı Avatarı
Hello Sir/Madam I have development experience in various Programming Languages, OOP, Data Structures, Database Driven applications, APIs, Files handling and Data Transformation, ETL and various frameworks. I assure you an excellent solution of your project within the time frame and exactly according to the requirements. Thanks @CodingHelpLine
$30 USD 1 gün içinde
0,0 (0 değerlendirme)
0,0
0,0
Kullanıcı Avatarı
Im Hardworkin aspirant and i assure you do this work as my first priority. Hi, I've read your description carefully. I have full experience with Python I've also worked on several similar projects. So I can complete your project with high quality on time. Looking forward to hear more about the project from you via chatting. Thanks & Best regards!
$25 USD 7 gün içinde
0,0 (0 değerlendirme)
0,0
0,0
Kullanıcı Avatarı
Hi there ! I am an expert in Python,programming and have 5 years of experience. I also have few Python projects like this project. I work according to your requirement to provide the best quality and customer satisfaction. Do let me know if you are interested. Thank you !
$15 USD 7 gün içinde
0,0 (0 değerlendirme)
0,0
0,0

Müşteri hakkında

   AUSTRALIA bayrağı
Melbourne, Australia
0,0
0
Eki 17, 2021 tarihinden bu yana üye

Müşteri Doğrulaması

Teşekkürler! Ücretsiz kredinizi talep etmeniz için size bir bağlantı gönderdik.
E-postanız gönderilirken bir şeyler yanlış gitti. Lütfen tekrar deneyin.
Kayıtlı Kullanıcı İlan Edlien Toplam İş
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Ön izleme yükleniyor
Coğrafik konum için izin verildi.
Giriş oturumunuzun süresi doldu ve çıkış yaptınız. Lütfen tekrar giriş yapın.