Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python - help for beginner
#2
Whether or not you need an SQL database depends on the number of positions and how result is calculated. If result is easily calculated, than you just write a function that does that calculation. For example, the value of a Blackjack hand is very easy to calculate, so you don't need to store anything. If the result can't be calculated for some reason, there are 1,326 possible two card combinations with a standard playing card deck. If you don't have too many positions, you could maybe store the results in a file and just read them into a dictionary. If there are a lot of positions, you might want a database to store them. Although if the game is that complicated, maybe it's too complicated?

If there was a "better" GUI for Python, that would be the only one left. It is in many ways a matter of personal preference/familiarity as to which GUI gets used.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
Python - help for beginner - by Kyriakospan - Mar-09-2019, 02:13 AM
RE: Python - help for beginner - by ichabod801 - Mar-09-2019, 03:09 AM
RE: Python - help for beginner - by Kyriakospan - Mar-09-2019, 03:14 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020