3 ms·
Tried it. Typed e4. Got this: Traceback (most recent call last): File "sunfish.py", line 388, in <module> main() File "sunfish.py", lin
by grondilu 12y ago
Tried it. Typed e4. Got this:
Traceback (most recent call last):
File "sunfish.py", line 388, in <module>
main()
File "sunfish.py", line 365, in main
move = parse(crdn[0:2]), parse(crdn[2:4])
File "sunfish.py", line 345, in parse
fil, rank = ord(c[0]) - ord('a'), int(c[1]) - 1
IndexError: string index out of range
- WizzleKake 12y agoTry saying e2e4 instead.
- ff_ 12y agoYeah, that's the correct way.
- deleted 12y ago[deleted]
- davidghiz 12y agoThis is because of the way he coded. To move a pawn you have to append with a "P". (I think, I have not tried it yet to be sure)