Live data from Hacker News

Micro-Max, a 133-line Chess Source

home.hccnet.nl

21–25 of 25 posts

Re: Micro-Max, a 133-line Chess Source

#21

> Except for under-promotions ... since the program is unlikely to ever find itself in a situation where it would be useful to play one. Not my proudest moment but I did cheese out a tie in an otherwise lost game in jr. high by moving into what would be a stalemate if opp naively queened his pawn. It was extra ugly because he moved, picked up his previously captured queen from the side of the board, put it down, but…

Swindling is part of the game at all levels. Personally, I feel good about it even at 35 as long as I followed the rules.

I remember a kid changing the colour of his bishop by 'misplacing' it on a different colour square to get the same colour in a bishop-pawn endgame. That was not OK.

Re: Micro-Max, a 133-line Chess Source

#23
post #20

Why bother implementing rules at all? Just create an interface to move pieces around on a board wherever you want. If you play chess you should know the rules and how to move pieces.

I kind of agree, chess without promotions, castling and en passant is not chess. But the guy also made full version, with impressively small size:

For real purists: a close-to-minimal version that does understand full FIDE rules including under-promotion can be found here. It measures 1433 characters.

(although I don't know why people who adhere to chess rules are called "purists", but whatever. :-))

Re: Micro-Max, a 133-line Chess Source

#24
post #23
post #20

Why bother implementing rules at all? Just create an interface to move pieces around on a board wherever you want. If you play chess you should know the rules and how to move pieces.

I kind of agree, chess without promotions, castling and en passant is not chess. But the guy also made full version, with impressively small size: For real purists: a close-to-minimal version that does understand full FIDE rules including under-promotion can be found here. It measures 1433 characters. (although I don't know why people who adhere to chess rules are called "purists", but whatever. :-))

In Ultima Online we would play chess to pass time on long sea voyages while hunting for monsters or treasure.

There was no rules engine, it was just a simple board where you could drag and drop pieces around on any which way, which allowed for a lot of flexibility in how you played. We could even play random chess this way.

Re: Micro-Max, a 133-line Chess Source

#25
post #7

This is nice, I just compiled it, but how do I play it? I can't seem to find any instructions on the website...

The instructions say you must enter "algebraic notation," but I couldn't figure it out until I took a peek at the source code to see how it was trying to parse input. You always just enter source square to destination square. So to play an opening move 1. d4, you would type `d2d4` (move piece on d2 to d4) and press enter. Then if you want micromax to play the next move for black, just press enter again. It'll think f…

Right, that's the answer. I tried using regular algebraic notation without success, but this works fine. Thank you.
Post reply on HN