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

Unix plus Python 3.0 - FYI #3

Open
Manamama opened this issue Dec 21, 2023 · 2 comments
Open

Unix plus Python 3.0 - FYI #3

Manamama opened this issue Dec 21, 2023 · 2 comments

Comments

@Manamama
Copy link

I encountered a couple of issues that required code modifications. I’m detailing them below so that they can be addressed for better compatibility:

Print Function Syntax: In Python 3.x, print is a function and requires parentheses around the arguments. The existing code uses the Python 2.x syntax for print statements, which leads to a SyntaxError. For example, print len(squareCenters) should be updated to
print(len(squareCenters)).

File Path Syntax: The code uses backslashes () in file paths, which is not compatible with Unix systems. On Unix systems, file paths should be specified using forward slashes (/). For example, MEDIA\WhitePawn.png should be updated to MEDIA/WhitePawn.png
everywhere (for Linux)

@Manamama
Copy link
Author

Also - en passant does not work. (Forbidden).

@chattarajoy
Copy link
Owner

Hi @Manamama there's no one maintaining this repo right now. I see you already have figured out some of the fixes, I would appreciate it if you could create a PR with the fix. When we wrote this it was meant for Python2.7 that's why you faced this issue.

Also, what's en passant 😉 ?

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