Simple chess bot

7

3

Inspired by this

Implement simple chess bot (with console or GUI) that has following features:

  1. [Pseudo-]graphically showing the board;
  2. Accepting user moves and making their own moves;
  3. Playing by basic chess rules (not doing illegal moves);
  4. Making at least minimally reasonable moves (no random moves, a player making random valid moves against the bot should lose most times).

In general, implement something like "SedChess" (linked above) in minimum number of bytes.

Optional:

  1. Advances rules like castling, stalemate detection, en passant, etc;
  2. Checking validity of user inputs;
  3. Analysing more than 1 move in depth;

Limitations:

  1. No networking;
  2. No dependance on chess-specific libraries (unless they are included in the language and language's standard library) or programs;
  3. No lame tricks like showing two boards and requesting user play two games (with himself).

Vi.

Posted 2013-08-25T13:46:27.260

Reputation: 2 644

3

Do you think anyone can compete with this?

– ugoren – 2013-08-25T13:59:17.680

Nice. Maybe somebody want to try more languages for this problem. – Vi. – 2013-08-25T14:13:46.693

3You describe a major undertaking, not a puzzle. – DavidC – 2013-08-25T14:27:55.677

2There are other major undertakings like golfing an x86 emulator here. – Vi. – 2013-08-25T14:35:42.167

1

This looks rather like an extension of Calculate all legal moves, which so far has no submissions. If you want anyone to attempt an answer, you might be better off restricting the question to the half which that one doesn't cover - i.e. estimating a board's value.

– Peter Taylor – 2013-08-25T15:28:31.193

@PeterTaylor Which btw was solved already here ;-) Unfortunately no one tried another solution in either question.

– Howard – 2013-08-25T16:14:15.757

1This one posted by ugoren doesn't recognize checkmate or castling or en passant. – Shirley Temple – 2017-05-14T19:00:20.520

@ugoren Yes I do believe so. I beat that chess bot in a match of chess. – Justin – 2014-02-23T01:56:41.173

See also: http://codegolf.stackexchange.com/questions/37251/chess-tournament

– Vi. – 2014-09-06T10:48:14.257

No answers