Jump to content

Need help with python game

Go to solution Solved by Celious,

Well my teacher just told me it doesn't have to be in tkinter so I just made it with no problem

6 minutes ago, Celious said:

Any help with be greatly appreciated

So this more or less translates to: Do my homework for me.

 

No. You can put in at least some amount of effort yourself. I suggest that you let us know what specifically you are stuck with and then maybe we will help you to solve it yourself.

The single biggest problem in communication is the illusion that it has taken place.

Link to post
Share on other sites

20 hours ago, Celious said:

import Tkinter 

window = Tk()

window.title(“Grid-Game”)

window.geometry(“720x460”)

window.mainloop()

so basically nothing. 

 

you'll need to roll a number so look at import random documentation. Then some programmable way to store your plays position maybe a list or a dictionary.

 

then a way to end the game once you reason the last number. 

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to post
Share on other sites

Does it have to be python? The document just says "a suitable high-level language", so could you cheese it and use scratch? I mean, this type of game is really what Scratch is for. Your teacher may not be happy, though.

it's time

 

Link to post
Share on other sites

2 hours ago, RollTime said:

Does it have to be python? The document just says "a suitable high-level language", so could you cheese it and use scratch? I mean, this type of game is really what Scratch is for. Your teacher may not be happy, though.

I wouldn't accept scratch as a high level language. 

 

You could use angular for the front end and node for the back. Use socket.io and make it a real time game that can be played from any computer. You would have to make a way to only allow two plays in and a way to limit who's turn it is. 

 

also the spec doesn't say you HAVE to have a gui so you could simply print the board to the console in python. 

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to post
Share on other sites

7 hours ago, vorticalbox said:

I wouldn't accept scratch as a high level language. 

 

You could use angular for the front end and node for the back. Use socket.io and make it a real time game that can be played from any computer. You would have to make a way to only allow two plays in and a way to limit who's turn it is. 

 

also the spec doesn't say you HAVE to have a gui so you could simply print the board to the console in python. 

So I googled it:

A high-level language (HLL) is a programming language such as C, FORTRAN, or Pascal that enables a programmer to write programs that are more or less independent of a particular type of computer. Such languages are considered high-level because they are closer to human languages and further from machine languages.

 

If this is correct, Scratch is most definitely a HLL.

it's time

 

Link to post
Share on other sites

52 minutes ago, RollTime said:

So I googled it:

A high-level language (HLL) is a programming language such as C, FORTRAN, or Pascal that enables a programmer to write programs that are more or less independent of a particular type of computer. Such languages are considered high-level because they are closer to human languages and further from machine languages.

 

If this is correct, Scratch is most definitely a HLL.

I guess then lol, still I would definitely verify first if it's allowed. 

                     ¸„»°'´¸„»°'´ Vorticalbox `'°«„¸`'°«„¸
`'°«„¸¸„»°'´¸„»°'´`'°«„¸Scientia Potentia est  ¸„»°'´`'°«„¸`'°«„¸¸„»°'´

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×