Connect 4 Program Python Windows
I'm making a simple connect four game that I will eventually extend by creating an AI that the player can play against. Given that AI algorithms are reasonably complex, I find myself wanting to reduce the algorithmic complexity of my win-checker in order to maximize performance once the entire thing is built. Client: all Python platforms; Server: Windows, Linux Python versions 2.5 - 2.7. MxODBC Connect is a commercial client-server product that allows connecting Python to ODBC compatible databases running on remote servers without requiring an ODBC driver on the client side.
Using Windows 10.
First I uninstall any existing versions of Python 3 or Python 2.0
Then I run the above program, Windows seems to install it OK (I choose 'Add Python 3.6 to the path'). I hit 'Install now'.
I run Windows Powershell.
I type python3 and nothing happens.
Can anyone suggest what I can do to get Python 3.6 to install?
1 Answer
For those who follow, in order to make Python work on Windows, it was not enough to select the default options during installation.
You MUST select custom - I don't know exactly which option I selected in custom but I installed to c:python36 and installed for all users and told it to set the path and after that it worked.
Duke DougalDuke DougalNot the answer you're looking for? Browse other questions tagged windowswindows-10powershellpython or ask your own question.
This is the path where python is installed on my computer A:software installationpython
and the same path has been added to the system path in Environment variables.My scripts are stored in A:python programs
but when I try to execute from the Windows command prompt (cmd) there is no output as shown below.
2 Answers
Just set your environment variable path, like C:Python27
.
- Check your system for the installation path
- Copy the path
- Go to my computer properties => advance system setting
- In the Advanced tab => Environment variable => click on the path, then click on
new
and paste the path - Click
ok
and restart the cmd
All done :) Ajay yadav anaesthesia pdf creator pdf.
vichI had a similar problem and solved it using the following steps:
Python Connect 4 Code
- Right-click the file you want to run.
- Select 'always run using this program' to make this default, to avoid doing this again for other running other python files.
- Browse and select the python 3.6 (or 2.7) interpreter file.