battleship game in python needs database or not [closed] - python

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'm going to design simple battleship game with Python and Pygame.
but I don't know whether I need database for this purpose or not , or generally which games need databases to be designed.
I'll be thankful for any kind of help!

You don't have to use a db to have a simple game if you're just storing everything when the program is run. If you want to save the progress after starting and stopping your game then perhaps a database would be required

Related

How do i code an anti-wizz / anti-nuke bot using python code [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 days ago.
Improve this question
I'm trying to code a fully customizable anti nuke bot but i'm not sure how. If anyone can help me with this, i'll be so grateful. Please n thanks.
To be clear, i want this anti-nuke / anti-wizz bot to have a whitelist command as well as a turn on and turn off command for the anti-nuke setup. please n thanks!

How can I get how long my computer's been idle (idle time) using python? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
The computer obviously stores it sense it knows when to put the screen saver on. Is there a python program that can get the computer's idle time?
This questions has already been answered several times it appears. A quick google search for this topic should give you other stack overflow Q's & A's for this question, but here is one of the previously answered links:
detecting idle time using python

How do you write applications in multiple languages? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
Sorry guys if this seems like a really basic question. I understand how to build applications using a programming language. Now, I read that tensorflow is written partly in C/C++ and Python. I'm wondering why this is done and how you can get multiple languages to interface with each other.

Can I make a application frontend for smartphones using Python? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I've done a little predictive program with Python and I would like to transform it in an application for smartphones. Can I accomplish it with Python itself, or should I use another language? If yes, what APIs would you recommend for that?
Thanks
You might be able to do this with Kivy.

Choosing which sound to play in Pygame [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
In Pygame how would I define which sound I want to play in certain "if" events? I've been able to load them both in I just hit the issue of not playing either on demand. Thanks for helping me in advance.
You need to use a sound object to play sounds.
if condition_one_true:
sound_one = Sound('sound1.mp3')
sound_one.play()
if condition_two_true:
sound_two= Sound('sound2.mp3')
sound_two.play()

Categories

Resources