Comments (4)
Adding a flake8 test would help this codebase.
from sunfish.
I agree with you in general, and it's possible that the code should be rewritten that way. For this project I have instead tried to keep everything small, but consistent. Having longer variable names would make some lines too long, and I don't want to split them up.
I agree that some documentation would be nice though. Like wc means "white casting", bc "black castling", i and j are always "from square" and "too square", p and q are "from piece" and "too piece".
from sunfish.
I think names like i
and j
would be very easy to improve, would you be willing to accept a pull request that tries to improve readability without breaking the 80 character limit?
Also using black or autopep8 would make the code more consistent without impacting the line number
from sunfish.
Fair, better names for i
and j
are a good idea. Maybe fs
, ts
to fit with the convention? :-)
I think autopep8 and black will disagree with the use of inline if
s in sunfish.
But I'm happy to discuss any pull request.
from sunfish.
Related Issues (20)
- Support pondering
- ℹ SAINTGERMAIN
- chess.engine.EngineTerminatedError: engine process died unexpectedly (exit code: 127) HOT 12
- 111
- sunfish
- removed
- Can we change the rules a bit and then run the engine. How well would it work?
- Three Check Chess variant HOT 2
- TCEC version ?
- CPU % remains after game ended
- Does not run on my iMac HOT 2
- Unable to locate engines.json file.
- How to Run Sunfish... HOT 2
- illegal move and a potential solution HOT 2
- sunfish can't play white? HOT 6
- How much of the UCI protocol is implemented? HOT 1
- Sunfish severely slows down my PC HOT 9
- experimental NNUE HOT 15
- about using pypy HOT 1
- Lichess - I'm not accepting challenges with this time control. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sunfish.