Search found 76 matches

by maksimKorzh
Sat Jun 08, 2019 11:48 am
Forum: Computer Chess Club: General Topics
Topic: Bare minimum chess program in javascript
Replies: 4
Views: 204

Re: Bare minimum chess program in javascript

RubiChess wrote:
Sat Jun 08, 2019 10:34 am
Pawn promotion seems missing.
Thanks for reporting bug, RubiChess, already fixed. I've overlooked that while porting code from C to JS
by maksimKorzh
Sat Jun 08, 2019 11:11 am
Forum: Computer Chess Club: General Topics
Topic: Bare minimum chess program in javascript
Replies: 4
Views: 204

Re: Bare minimum chess program in javascript

Good start! Not handling all legal moves while allowing illegal moves is undesirable. Also, after I (illegally) captured using a pinned pawn, the engine moved its (unprotected) Queen adjacent to my King and announced checkmate, ending the game. Not only could I have captured the Queen, but my King ...
by maksimKorzh
Sat Jun 08, 2019 7:42 am
Forum: Computer Chess Club: General Topics
Topic: Bare minimum chess program in javascript
Replies: 4
Views: 204

Bare minimum chess program in javascript

Hi, talkchess community! I'd like to introduce you the bare minimum chess program I've written in javascript that can be played online here: https://maksimkorzh.github.io/bmcp_js/ This won't be interesting to those who writes 2500+ Elo rated engines, but for beginners who wants to write simple and m...
by maksimKorzh
Mon Mar 11, 2019 10:40 pm
Forum: Computer Chess Club: General Topics
Topic: A tribute to chess programming community
Replies: 2
Views: 350

Re: A tribute to chess programming community

Text representation is also available, thanks for your feedback, Dann. Just uncomment the pieces[] = ",-pknrbkq-P-KNBRQ" array and the corresponding line in PrintBoard() function. To make it look like this: void PrintBoard() { for(int sq = 0; sq < 128; sq++) { if(!(sq % 16)) printf(" %d ", 8 - (sq /...
by maksimKorzh
Mon Mar 11, 2019 9:53 pm
Forum: Computer Chess Club: General Topics
Topic: A tribute to chess programming community
Replies: 2
Views: 350

A tribute to chess programming community

Hi, guys! The chess programming community gave me so much for the last three years and now I'd like to give it something back. I couldn't write a strong chess program so far and won't do that probably ever for many reasons, so I've chosen a different approach - minimalist chess. Being inspired by Bl...
by maksimKorzh
Wed Mar 06, 2019 9:16 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Chess engine in braifuck
Replies: 20
Views: 2885

Re: Chess engine in braifuck

The recursion is one of the biggest problems actually so I would really appreciate any detailed examples, you'd help a lot. The I was thinking to implement minimax is as follows: ++++++[//minimax_algorithm] where the number of pluses defines the search depth and the loop within square brackets is a...
by maksimKorzh
Wed Mar 06, 2019 5:44 pm
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Chess engine in braifuck
Replies: 20
Views: 2885

Re: Chess engine in braifuck

Hi Mike, it seems like you feel insulted. I didn't really mean to insult you and the reason for your first posts were left without answer is because first: I had some internet connection troubles for a couple of days and second: your posts didn't contain any questions. But still you make me feel a ...
by maksimKorzh
Wed Mar 06, 2019 11:30 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Chess engine in braifuck
Replies: 20
Views: 2885

Re: Chess engine in braifuck

Wouldn't it be best to just write an interpreter for a somewhat higher-level languange in brainfuck, and then write the Chess program in that? It seems to me that writing directly in brainfuck you would basically be unrolling the interpreter loop zillions of times, leading to excessive boiler-plate...
by maksimKorzh
Wed Mar 06, 2019 11:05 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Chess engine in braifuck
Replies: 20
Views: 2885

Re: Chess engine in braifuck

Wouldn't it be best to just write an interpreter for a somewhat higher-level languange in brainfuck, and then write the Chess program in that? It seems to me that writing directly in brainfuck you would basically be unrolling the interpreter loop zillions of times, leading to excessive boiler-plate...
by maksimKorzh
Wed Mar 06, 2019 10:58 am
Forum: Computer Chess Club: Programming and Technical Discussions
Topic: Chess engine in braifuck
Replies: 20
Views: 2885

Re: Chess engine in braifuck

Do you plan on using a minimax algorithm, a heuristic-based move selector, or simply a random move generator? I'd recommend using a much simpler game as a proof-of-concept. Even if you do eventually implement chess, you might want to use a simple variant of chess (e.g. los alamos chess, with forced...