Find Jobs
Hire Freelancers

mastermind with python / tkibter

€8-30 EUR

Lezárt
Kiadva ekkor: majdnem 4 évvel ezelőtt

€8-30 EUR

Teljesítéskor fizetve
In this mini-project, you will develop in Python the famous deduction game Mastermind. This game was created by Mordecai Meirowitz in 1970 and its license belongs to Hasbro, Inc. The rules are quite famous, but if you are not familiar with them you can consult for example wikipedia (Connexions vers un site externe.). We first restrain ourselves to a one player game, the hidden pattern being chosen randomly by the computer. You must use Tkinter to implement your GUI. An object-oriented approach is highly recommended. Here are some examples of attributes you can use: number of colors, numbers of pegs, number of trials, the hidden pattern, the current guessed pattern, the tkinter root, some tkinter widgets (canvas, buttons, etc.). This list is not exhaustive. Hint: model colors by integers greater than or equal to 1, and the hidden pattern by a list of such integers. Obviously, one of the first methods you will develop compare the hidden pattern to a guessed pattern. It returns the number of pegs in the guessed pattern which are correct in both color and position, and the number of pegs in the guess pattern which are correct in color but not in position. In a first time, we will use the classical rules, i.e. a game with six colors, a hidden pattern of four pegs and ten trials. Here is an example of visualization, feel free to customize it: [login to view URL] To add a peg to the current guessed pattern, the player clicks on a color disk at the top of the window. The erase button allows the player to delete the current line before it was tested. The test button allows the player to test the current line after it was completed. Here is an example of an ongoing game: [login to view URL] At the right of line, the number of pegs in the guessed pattern which are correct in both color and position are in red, and the number of pegs in the guess pattern which are correct in color but not in position are in white. Here is an example of a finished game: [login to view URL] The result is displayed with a message box. Here is another example: [login to view URL] The correct answer is then displayed at the bottom of the window. After that, a new game is proposed to the player with a message box: [login to view URL] In addition to the previous functionalities, you are free to implement one or several of the following bonuses: A two-player game, the first one choses the hidden pattern and the second one tries to find it. An artificial intelligence, see for example Knuth's one. A game with any numbers of colors, pegs in the hidden pattern and trials. The possibility to save an ongoing game and to resume it later.
Projektazonosító: 26026761

A projektről

8 ajánlat
Távolról teljesíthető projekt
Aktiválva: 4 évvel ezelőtt

Szeretne pénzt keresni?

A Freelancer oldalán történő árajánlatadás előnyei

Határozzon meg költségvetést és időkeretet
Kapja meg fizetését a munkáért
Vázolja ajánlatát
Ingyen regisztrálhat és adhat árajánlatot munkákra
8 szabadúszó adott átlagosan €57 EUR összegű árajánlatot erre a munkára
Felhasználó avatár
Hi there I have 5+ years of experience in python, and deep knowledge in tkinter. I have worked previously on many games such as snake game, tic tac toe, connect4... Let us have a chat.
€200 EUR 7 napon belül
5,0 (13 értékelés)
4,1
4,1
Felhasználó avatár
I have high specialization and experience in the Development of Desktop, Web and Mobile Applications. Programming languages: C, C ++, C#, Python, GO, Matlab, Java, VB, kotlin, JavaScript. Desktop application development: Win32, MFC, ATL, STL, Winforms, XAML. Web Framework: Django, CodeIgniter, Laravel, CAKEPHP, Yii. Web Development: Front-End, Back-End and Mobile Applications: - PHP, Aspx NET CORE, asp, HTML5, JSON, XML. - Node.js, Angular, React, JavaScript, Jquery, Ajax, REST, SOAP - CSS3, Bootstrap, Less, Sass, Scss, Responsive, Material. Mobile applications: Xamarin, Flutter, React, Swift. I work in the IDE: Visual Studio 2019, VSCode, Eclipse, Idle, phpstorm, GOland, Databases; - MsSQL, MySQL, MongoDB, Postgres. I am a specialized expert. I have 10 years of experience. Please check my independent profile. I can also send samples of my work by chat. can i start right away Best regards
€50 EUR 1 napon belül
5,0 (3 értékelés)
3,0
3,0
Felhasználó avatár
Hi, I've read the details carefully and checked the game rules. I also watched a video of gameplay and I believe i can do the job perfectly in the given time for the given price, both of which are we can discuss about. The fully finished project in my mind would have the following features alongside of default gameplay:: -ability to choose number of trials and which colors are allowed -score system if wanted Have a good day
€30 EUR 5 napon belül
0,0 (0 értékelés)
0,0
0,0
Felhasználó avatár
Hi there, I am a professional Python engineer who works in the industry writing data processing and web scraping code for research. I would be able to begin working on your project immediately and complete it faster than any other proposal. I am a native English speaker so there is no chance of miscommunication. Thanks, Kirk
€8 EUR 1 napon belül
5,0 (2 értékelés)
0,0
0,0
Felhasználó avatár
Hi, I am an experienced game developer. I will be pleased to do this project for you. Please inbox to discuss further details. Regards, Sharjeel
€99 EUR 7 napon belül
0,0 (0 értékelés)
0,0
0,0

Az ügyfélről

MOROCCO zászlója
Rabat, Morocco
0,0
0
Tagság kezdete: jún. 12, 2020

Ügyfél-hitelesítés

Köszönjük! E-mailben elküldtük a linket, melyen átveheti ajándék egyenlegét.
E-mailje elküldése során valami hiba történt. Kérjük, próbálja újra.
Regisztrált Felhasználók Összes Közzétett Munka
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Előnézet betöltése
Hozzáférést adott a helymeghatározáshoz.
Belépési munkamenete lejárt, és kijelentkeztettük. Kérjük, lépjen be újra.