Re: Compiling Python Simple Pig Audio Game
When using AO2 and Pyinstaller, I use a try and except routine to change screen readers. In a bundle 6 out of 7 work fine, window eyes being the exception. In a single file distribution, I am usually down to around 3. I have taken the easy opt
Re: newbie tips
I use Jaws and python 3.4, which is easy to instal and paths and such work better than python 2.7 which I had previously used. Python 3.4 works well with AO2 for screen reader output, and pygame for GUI and audio. I keep things simple with writing all my scripts in
Re: Looking for Help Learning How to Code
Jade and folks, I would encourage you to write a little game with what you have got already. Programming is not my background, I was where you are at around a year ago, and have probably moved on just a little bit. However I decided to make
ttsRecorder and QuickRecorder tool for developers
Guess folks have seen my posts on new releases about my software and in particular my ttsRecorder for recording a wav file from tts. There is now a QuickRecorder version up on www.rockywaters.co.uk - this is a command line version
Re: How to create pygame menus
Thanks for post 30 Camlorn, I was wondering why my menus worked fine with code such as(if event.key == K_DOWN: " but in other instances the arrows were an issue with Jaws. TJ.Breitenfeldt perhaps consider the folloing couple of ideas: first:class Menu():
Re: how to start out with making a game
Orin, I completed the Learn Python the Hard Way tutorial as a novice back in September. since then I have uninstalled 2.7 and installed Python 3.4, partly for Accessible Output2, and partly for an easier time with Pyinstaller. Using Python 3 with
Re: How to create pygame menus
I came across exactly this Jaws arrow key hook problem on my first Pygame game in October. As a newbie I just put in alternatives such as a, d, w, x. It's nice to get this explanation, and great to see a fix in production. I play swamp with Jaws and used
Re: creating a hierarchy
Given the number of hands, ranking them looks tricky. Perhaps as suggested, test for the 9 differing hand types then assign a value on the hand. this value will differ for each hand type.perhaps:def testFlush(hand): if hand[0][1] == hand[1][1] and hand[0][1] ==
Re: creating a hierarchy
Perhaps for the pack, list comprehension is your friend:ranks = [str(i) for i in range(2,11)] + ["jack", "queen", "king", "ace"]suits = ["clubs", "diamonds", "hearts", "spades"]pack = [(r,s) for r in ranks for s in suits]
URL:
Re: creating a hierarchy
You can shuffle the deck, but it's not actually necessary:I like the simple:hand1 = []hand2 = []for i in range(0,5): card = random.choice(pack) hand1.append(card) pack.remove(card) card = random.choice(pack) hand2.append(card) pack.remove(card)But
Re: creating a hierarchy
As an aside, the number of different 5 card hands is given by the formula:hands = (52!*51!*50!*49!*48!)/(2!*3!*4!*5!)where the symbol ! is pythons math.factorialThis equates to 2,598,960 different hands.
URL:
Re: Python and accessible text
Thanks SoundMUD. Very happy to hear working combinations. Trying WX with pygame is now on my to do list. The text that I want is for review, in a turn based scenario. Perhaps location plus the last 3 actions by the player. Shorter text messages such as
Re: Accessible_output2 does not compile
Made progress. The fault is connected with the autos module. I can get the AO2 module working and compiling, but not the auto() method from the autos module I was using. Code to follow, if anyone has a fix for the auto() method let me
Re: Accessible_output2 does not compile
Yes, there are 2 dependencies, I installed both platform_utils and libloader before installing AO2. AO2 is up and working fine. Pyinstaller produces a distribution folder, it calls dist, for each of my projects that it compiles. Each project
Re: Python and accessible text
Ethin, thanks, though I'm not quite understanding you. Are you saying that accessible_output2 works and compiles with python3x? I have a separate thread on accessible_output2 issues, probably best for us to discuss AO2 there. I am happy to convert to python
Accessible_output2 does not compile
I am using python 2.7, and so far all my projects are compiling fine with pyinstaller. Accessible_output2 is working fine in my python scripts and works fine using pygame. However it does not compile properly for me. Is this a known issue? and is
Re: Python and accessible text
Thanks, I see WX certainly has text boxes and a whole lot more. I am reading stuff that assumes more knowledge than I have. As a relative newby, anyone with some tips would be appreciated. For example can I use WX to write to the pygame GUI? My goal at
Python and accessible text
I am using python 2.7 with pygame and accessible_output2. I can put text on the window as a font object for the reader and I can output the same text as speech. I would prefer an access solution where I produced accessible text, available for review by screen
Been quietly browsing this forum, time for a big thankyou.
I started on Python 2 months ago, and worked my way through "Learn Python the hard way". I installed Pyinstaller and some friends gave me kindly encouragement on my tiny programs, such as pig, solving quadratics, a tiny strategy
19 matches
Mail list logo