New answers tagged

3 votes

Print all legal chess moves

Jelly,  140  130 bytes ạ/ṢµẠ⁻Ẹ;E;Ẹ$;JƑ;ỊẠ$ “ RBQNK”p⁾x-;þṖḊ”=pƲZḢW;mʋ2 7Ḋ;€-µjþØ+Ẏ,j€0ṠḤḢṭƲ$ 8p`⁺EÐḟµ_\FḊeⱮ¢+a¥FṪ⁼8Ʋ;ÑḤ2£ḣ€"ẎQ¹Ƈż€ị1¦€Øa$)Ẏ⁾O-ṁⱮ3,5¤;YFḟ⁶ A ...
Jonathan Allan's user avatar
2 votes

Print all legal chess moves

Charcoal, 166 144 139 bytes ...
Neil's user avatar
  • 170k
9 votes

Print all legal chess moves

JavaScript (V8), 249 bytes A full program that prints all possible moves for the white side. For pieces other than pawns, only regular moves are used. ...
Arnauld's user avatar
  • 192k
3 votes

Implement a 2-player version of 1D Chess

JavaScript (ES6), 341 bytes A full program that uses prompt() for I/O. ...
Arnauld's user avatar
  • 192k
3 votes

Implement a 2-player version of 1D Chess

Charcoal, 254 244 bytes ...
Neil's user avatar
  • 170k
4 votes

Implement a 2-player version of 1D Chess

Python 3, 836 513 bytes ...
Alec's user avatar
  • 121

Top 50 recent answers are included