Bartłomiej Wacko
6 deals
on 2022-02-24
I would like to write two functions for a chess game:
1. the function computes a list of all possible moves in a given situation and gives it as a String in notation. In all game situations all moves according to rules must be calculated correctly.
2. the function selects one of the possible moves and returns only this move back. The choice is made according to its own strategy. It can be random, for example.