On 08/12/2025 21:18, Thomas Passin wrote:
On 12/8/2025 2:49 PM, John Smith via Python-list wrote:
Thanks for the tip. I'll do that here and in future games.
In addition to using constants to parameterize the strings, the whole
game can be made simpler and easier to change when you realize tha
On 2025-12-08 at 18:57:34 -0500,
Thomas Passin wrote:
> On 12/8/2025 6:16 PM, MRAB wrote:
> > On 08/12/2025 21:18, Thomas Passin wrote:
[...]
> > There's another way of determining who won.
> >
> > Give each of the choices a value, such as:
> >
> > OPTION_VALUES = {ROCK: 0, PAPER: 1, SCI
Thanks for the recommendations. I'm building a whole new version based on the
old one, with simpler code and functions to find win stats.
--
https://mail.python.org/mailman3//lists/python-list.python.org
On 12/8/2025 6:16 PM, MRAB wrote:
On 08/12/2025 21:18, Thomas Passin wrote:
On 12/8/2025 2:49 PM, John Smith via Python-list wrote:
Thanks for the tip. I'll do that here and in future games.
In addition to using constants to parameterize the strings, the whole
game can be made simpler and ea
Op 8/12/2025 om 4:40 schreef Michael Torrie via Python-list:
On 12/7/25 5:22 AM, Roel Schroeven wrote:
> Op 7/12/2025 om 1:54 schreef Thomas Passin:
>> As I explained in my last post, that's because in Windows 11 when
>> double-clicking, the working directory is the system's Windows
>> director
On Tue, 9 Dec 2025 at 05:29, via Python-list wrote:
>
> I coded Rock, Paper, Scissors. I added the randomness, made it loop at the
> user's request, added win code, no problems there. I changed some strings to
> F-strings to practice using them, and now the first "elif" in my if loop
> (player
On 12/8/2025 2:49 PM, John Smith via Python-list wrote:
Thanks for the tip. I'll do that here and in future games.
In addition to using constants to parameterize the strings, the whole
game can be made simpler and easier to change when you realize that the
if/else block has a regular construc
Ah! Found it. I had an extra space in "Rock". Thanks for the help!
--
https://mail.python.org/mailman3//lists/python-list.python.org
Hello!
I'm pleased to announce version 3.13.1, the first bugfix release of the
branch 3.13 of SQLObject.
What's new in SQLObject
===
The contributors for this release are:
* Igor Yudytskiy. Thanks for PR #194:
fix: connect to old mssql versions via set tds_version uri par
>
>
> I coded Rock, Paper, Scissors. I added the randomness, made it loop at the
> user's request, added win code, no problems there. I changed some strings
> to F-strings to practice using them, and now the first "elif" in my if loop
> (player chooses rock, bot chooses paper) doesn't work. Any hel
Thanks for the tip. I'll do that here and in future games.
--
https://mail.python.org/mailman3//lists/python-list.python.org
Op 8/12/2025 om 20:43 schreef Jason Friedman via Python-list:
One practice I follow is declaring strings, _especially_ those used more
than once, at the top:
In a case like this, an Enum could probably be even more fitting (or in
this case more specifically a StrEnum). See
https://docs.python.o
On 12/8/2025 8:14 PM, Dan Sommers wrote:
On 2025-12-08 at 18:57:34 -0500,
Thomas Passin wrote:
On 12/8/2025 6:16 PM, MRAB wrote:
On 08/12/2025 21:18, Thomas Passin wrote:
[...]
There's another way of determining who won.
Give each of the choices a value, such as:
OPTION_VALUES = {
I coded Rock, Paper, Scissors. I added the randomness, made it loop at the
user's request, added win code, no problems there. I changed some strings to
F-strings to practice using them, and now the first "elif" in my if loop
(player chooses rock, bot chooses paper) doesn't work. Any help ideas?
14 matches
Mail list logo