how am I supposed to call the function?
- by user1816768
I wrote a program which tells you knight's movement (chess).
For example if I wanted to know all possible moves, I'd input:
possibilites("F4") and I'd get ['D3', 'D5', 'E2', 'E6', 'G2', 'G6', 'H3', 'H5'] as a result, ok I did that, next, I had to write a function in which you input two fields and if those fields are legal, you'd get True and if…