Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tuples not taken in as parameters for methods #1

Open
A-ElMahmi opened this issue Jan 19, 2019 · 1 comment
Open

Tuples not taken in as parameters for methods #1

A-ElMahmi opened this issue Jan 19, 2019 · 1 comment

Comments

@A-ElMahmi
Copy link

Hello

I was just trying to test your game on my machine when I came across an error.
I cloned the repository to my machine using the command git clone.

When I tried the to run the file checkers.py, this happened:

File "checkers.py", line 318 
  def rel(self, dir, (x,y)):
                          ^ 
SyntaxError: invalid syntax

It seems that the problem is passing in a tuple. I'm quite a beginner with python. I tried to find a solution to this problem somewhere else but couldn't find any.

Can you please help!
Thank you.

I'm using windows 10.
My python version is 3.6.1

@Patlatus
Copy link

Patlatus commented Apr 1, 2023

This game was implemented for Python 1/2.
I had the same issue and started upgrading the syntax to Python 3 myself but then I have found that there are two forks available where the code was upgraded to Python 3.

quyq / Pygame-Checkers This fork just updated the code to the Python 3 version.

wament / Pygame-Checkers This fork not only updated the code to the Python 3 version, but also added some AI opponent.

I have forked the quyq's fork and add some changes to avoid some crash error on closing the app and modularized this solution and split it into several files https://github.com/Patlatus/quyq-Pygame-Checkers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants