mirror of
https://github.com/MSWS/Chess.git
synced 2025-12-06 05:32:37 -08:00
- Comment out the main function implementation in `main.go` to disable functionality for now. - Remove the "indirect" comment from the dependency declaration in `go.mod`. - Add tests for the `testdata` directory. [main.go] - Commented out the entire main function implementation, including code for initializing the board, retrieving moves, iterating over moves, and printing outputs. - No functional code remains active in the main function. [go.mod] - Removed the "indirect" comment from the dependency declaration. [.github/workflows/go.yml] - Updated the "Set up Go environment" step to specify Go version 1.22.8. - Added an additional command to run tests specifically on the `testdata` directory. - Ensured consistency and expanded test coverage in the workflow. [board/board_test.go] - Removed an unnecessary log statement from an En Passant test case. - Tests verify UndoMove behavior: - Active player correctly switches between turns. - Original board position is restored after undoing moves. - Castling rights are properly updated upon undoing moves. - Improved En Passant test cases: - Validation that pawn restoration works after an undo. - Correctly marks and restores En Passant availability from moves and FEN configurations. - Verifies board state integrity after multiple moves and undos involving En Passant captures.
6 lines
81 B
Modula-2
6 lines
81 B
Modula-2
module github.com/msws/chess
|
|
|
|
go 1.22.8
|
|
|
|
require github.com/google/go-cmp v0.6.0
|