#๐Ÿ”’ How to create a simple graphical interface for my game

7 messages ยท Page 1 of 1 (latest)

cursive jayBOT
#

@novel plinth

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

fervent palm
#

Basically, I need to create a small, simple and effective graphical interface for my game "Bulls and Cows" (you can look up the aim of the game but basically you have to try and find a code which is a sequence of 4 numbers, all different, and each time you make a move you're told how many numbers are in the right place: the bulls and how many are in the wrong place: the cows) but I don't really know how to go about it. I've watched videos but it's not clear enough for what I want to do.

The game programs are very simple but I'd just like the game to be a graphical interface (with tkinter).

You wiil find the code and the model of my interface in the attachment.

So I'd like it to be in this form. So we have an input where we insert our valid code. Then we have a number of attempts (in my game it's limited to 5 attempts). And then at the bottom we have our code that we've typed in with the number of bulls and cows. If the player finds the number, the end message is displayed, telling them how many attempts it took to find it, otherwise they lose. And, of course, there's a replay button. The game is fairly simple and everything is understandable in my programme. So if anyone could help me with my interface, that would be great.

Sorry if some parts are written in French, i have my work in french.

#

@novel plinth please use our pastebin to share code files

novel plinth
#

ok

cursive jayBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.