TiynGER
c4f7e3b98d
chess: improved documentation and deleted unused stuff
4 years ago
TiynGER
81d5d57e75
chess: refactoring getters
...
Getters are not needed according to the official nim documentation.
https://nim-lang.org/docs/manual.html#procedures-properties
Getters were replaced accordingly
4 years ago
TiynGER
75e804ef6f
chess/game: claimable draw at 50-Move-Rule added
4 years ago
TiynGER
9ed8b886db
chess/game: claimable draw at 3-fold repitition added
4 years ago
TiynGER
7caa4db120
game bugfix: game isnt stopped after stalemate
4 years ago
TiynGER
8e918aebb7
chess: draw by insufficient material added
4 years ago
TiynGER
2b4598785d
readme: added logo
4 years ago
TiynGER
1cc88f6bf9
game bugfix: after castling toMove wasnt changed
...
If you castle correctly the toMove attribute of the game object wasnt changed.
This is now fixed.
4 years ago
TiynGER
67a3ab4579
readme/license: updated/added
4 years ago
TiynGER
97406d4da3
tests: added unittests
...
Due to the official nim documentation the snake_case was now swapped
for camelCase.
Tests for nearly any move were added.
A new procedure can initialize a game with a given 8x8 board with pieces and determines if
they have been moved already.
4 years ago
TiynGER
f749f66c3c
chess: code reformatting
4 years ago
TiynGER
e30ff1f3ba
chess/game: base game completely implemented
...
All moves including en-passant and castling are implemented.
Game now features a proof of concept game.
Some cleanup still needs to be done.
4 years ago
TiynGER
b30aa89dc0
base: chess now basically works
...
The most important movements and even en passant and castling are implemented.
A cli game is not done for now.
An engine is the goal of the project, but will be focussed at the end of the basic development.
4 years ago
Marten
3747b1ae49
Initial commit
4 years ago