Files
Chess/go.mod
MSWS 54d81edb33 test: Refactor tests and workflows; comment out main function
- 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.
2025-03-22 17:55:32 -07:00

6 lines
81 B
Modula-2

module github.com/msws/chess
go 1.22.8
require github.com/google/go-cmp v0.6.0