Releases: DanielMiao1/chess
Releases · DanielMiao1/chess
v1.1.2-alpha.1
- Release the source code into the public domain
- Polyfill
str.isNumeric
for Python 2.x support
v1.1.1
- Added checks for fivefold repetition, insufficient material, and seventyfive move draw rules
v1.1.0
- Fixed en passant capture takebacks
- Linted files
v1.0.2
- Added
Piece.pinLine()
functionThe line in which the piece is pinned, orPiece.pinLine() -> False | Line
False
if the piece is not pinned - Added
Piece.pinned
variableWhether the piece is pinned or notPiece.pinned: bool
- Added
Piece.pinning
variablePiece.pinning: Optional[Type]
None
if the piece is not pinning another piece, otherwise the pinned piece - Added
blocks
parameter toMove( )
Whether the move is blocking a checkMove( ...promotion: bool = False, blocks: bool = False )
- Added
Move.blocks
variableTheMove.blocks: bool
blocks
parameter
v1.0.1
- Added en passant captures
- Updated
Move.is_capture
variable
v1.0.0
- Added
Crazyhouse( )
classThe crazyhouse chess variantCrazyhouse extends Game( fen: str = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1", raise_errors: bool = True, evaluate_openings: bool = False, pieces: Type = CrazyhousePiece )
- Updated
README.md
- Updated
functions.toSAN()
function - Added
promoted
property toPiece
class
promoted: bool = False
If the piece is a promoted pawn - Updated
ThreeCheck( )
class
v0.3.15.dev1
- Created
functions.toLAN()
functionReturns the given move in long algebraic notationfunctions.toLAN( move: str, game: Game ) -> str
- Updated
functions.toSAN()
function
v0.3.15.dev0
- Optimized
Game.legal_moves()
function - Optimized
Game.updateOpening()
function - Added check detection in
Game.takeback()
function - Added
evaluate_openings
andevaluate_checks
parameters inGame.takeback()
Game.takeback( self, evaluate_openings: bool = True, evaluate_checks: bool = True ) -> None
- Updated
Game.loadFEN()
function
v0.3.14-dev
- Updated openings
- Updated
minified_chess.py
v0.3.13-dev
- Added argument type hints in function docstrings
- Added base exception
errors.Error
parenting all othererror.*
exceptionserror.Error( message: str )
- Changed enumeration
all()
static method return values to tuples - Removed unused
square
local variable in some.visualized()
functions - Moved
fen
argument ofGame().__init__()
function to position 0Game( fen: str = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1", raise_errors: bool = True... )
- Added
return True
statement at the end ofGame.loadPGN()
- Updated
Game.move()
function - Optimized
Game.materialDifference()
function - Updated signature of variant class
__init__()
methods - Updated
Antichess.move()
function - Added
KingOfTheHill( )
,RacingKings( )
, andAtomic( )
classes