Baudsurfer information 713 glöps
- general:
- level: user
- personal:
- first name: Christian
- last name: Vincent
- portals:
- demozoo: profile
- 512b game MS-Dos BootChess by Red Sector Inc. [web]
- Found a very nifty online version for a virtual PC V86, courtesy of Mr. Fabian Hemmer :
here or there

- isokadded on the 2015-02-08 18:20:12
- 512b game MS-Dos BootChess by Red Sector Inc. [web]
- Quote:
Check mate! We have a NEW WORLD RECORD at 481 bytes.
And voilà. Oscar Toledo, author of many tiny chess programs, including the JS1k chess, made one "similar" to BootChess, in 481 bytes that he called AtomChess. Your turn ;)
added on the 2015-01-30 21:42:02 by p01
@p01 : you have to understand the code here is only the final outcome of much work done beforehand. For BootChess to be the first chess game ever in history to fit and launch in a bootsector no algorithm or code flow was copied, refurbished, refactored or inspiring : it was done from scratch. It is not a classic intro effect one just betters by copying what a previous person did before and call it yours because you saved a byte. WTFPL license is meant to free people from legal hassles (read Fred Fish PD) but maybe not ethically omit to inform your viewers about the origin of your "similar" code.
Nevertheless if I one insists on removing rank and file indexes BootChess becomes only 468 bytes (pic). The download archive and the .nfo were both updated with binaries and sourcode to reflect this added "feature" enabling 468 bytes.
BootChess... The original chess game in a bootsector - isokadded on the 2015-01-31 07:05:02
- 512b game MS-Dos BootChess by Red Sector Inc. [web]
- Quote:
made one similar to BootChess
p01: I looked at what Oscar did and it is interesting,
I will include his effort with Peter Ferrie's who has also brought some optimizing as I see 90% of the code is refactored our code. I know it was published under the WTFPL v2 license but this is just blatant code-ripping because nowhere is mentionned the original source used as skeleton.
I could maybe remove a byte from http://www.pouet.net/prod.php?which=8697, but I surely wouldn't say I created it and put my name on it.
Code:tab db p-tab,r-tab,n-tab,b-tab ; piece type mov offset array db q-tab,q-tab ; note original 1K ZX Chess q=k trick br0 db "rnbqkbnr",8,16,32,64,128 ; end rank pattern + beg piece values db 32,16,8,'p',4,'.',0,'.',0 ; end piece values + beg mid board reps db '.',0,'.',0,'P',4 ; ... end mid board reps p db 2,3,-10h,-15,-17,10h,15 ; bit#2 pf=04 p[6]=r[0] overlay r db 17,4,10h,-1h,-10h ; bit#3 ??=08 r[5]=n[0] overlay n db 1,8,1fh,21h,12h,-0eh,-1fh ; bit#4 af=16 n[9]=b[0] overlay db -21h,-12h ; ... end of knight moves list b db 0eh,4,-0fh,11h,-11h ; bit#5 ??=32 b[5]=q[0] overlay q db 0fh,8,10h,11h,0fh,1h,-10h ; bit#6 zf=64 k=q except k[0]=1 db -11h,-0fh,-1h ; ... end of queen/king moves list bf1 db "abcdefgh" ; gui file index string
Code:initial: db 2,5,3,4,6,3,5,2 scores: db 0,10,50,30,90,30 chars: db ".prbqnk",&0d,".PRBQNK" offsets: db 14,18,8,12,8,0,8 total: db 4, 4,4, 4,8,8,8 displacement: db -33,-31,-18,-14,14,18,31,33 db -16,16,-1,1 db 15,17,-15,-17 db -16,-32 db 15,17,16,32
Also he states "Your movements aren't checked for legality", where BootChess verifies movement legality.
You can remove an extra 10 bytes from Bootchess in textmode to oif you do not use a graphical mode and stick to textmode.
It seems easy to remove some 40 bytes too from bootchess if not displaying row and ranks coordinates like he does :
And finaly if I type H7h5 it just doesn't work it seems :
BootChess and 1K ZX Chess program flow are not copied one from another. BootChess was created from scratch. Here it was not, it's just removing barely the static data of ranks and files string, removing the graphic mode and not checking if moves are legal, from BootChess. I'm pretty sorry to see that from the author M. TOledo because I had great respect from him before he "hevaily borrowed" our code and most important the tiny game design that took us months to lay correctly.
So is there a need to republish a version that doesn't check legal chess moves ? I'm not certain, but we can release one to maybe bring BootChess down to way down under 400. - isokadded on the 2015-01-31 01:06:18
- demo Atari STe Baby, instant soup doesn't really grab me by KÜA software productions & Reservoir Gods [web]
- Lovely ! So fresh too, and the music is really fitting. Congratulations.
- rulezadded on the 2015-01-28 00:54:35
- 512b game MS-Dos BootChess by Red Sector Inc. [web]
- @britelite
Quote:ust to nitpick a bit, the 1k ZX Chess is actually 672 bytes big, not 1024 bytes
added on the 2015-01-27 22:01:50 by britelite
Not really britelite for the article written by David Horne, the author of 1k ZX Chess states clearly "in just 1000 bytes of memory" (top right of article scan).
Whether 1k ZX Chess is 1000 bytes of memory as he states vs. 672 bytes of memory as Wikipedia states, BootChess is still smaller for has a max padded to 512 bytes binary fingerprint (487 bytes on 16-bit DOS which already qualifies as "on any platform-ish") and uses max 512+2+128=642 bytes of memory (min 617 bytes).
What the Wikipedia author probably meant is that "once the data is loaded from the 1K ZX Chess tape" it has 672 bytes of memory (or 1000 bytes if you believe its author), but that preloaded data still of course counts in the overall final binary footprint which is the only real measure in sizecoding.
So...Do I get your thumb now britelite :) ? - isokadded on the 2015-01-27 22:29:07
- 512b game MS-Dos BootChess by Red Sector Inc. [web]
- Thanks for all the nice comments !
@ham : I do not claim to be an expert like you at programming chess engines, but I believe your vision is one of a rigorist for after all the Wikipedia entry for 1K ZX Chess still recognized as "the greatest program ever written" by some, clearly states "The game implements most chess rules (castling, queening, and en passant capture are missing)" thereby breaking at least 3 FIDE legal rules (don't know about moving king in mate position). It is still referred to still by Wikipedia as "the smallest implementation of chess on any computer".
Please read file bootchess.txt in release archive about choices and dilemas :
Quote:
from paragraph 5.1 - The TaxiMax ai used :
In the case of BootChess there is alas not enough space (512 bytes binary program size and 640 bytes RAM execution environment) for such level of sophistication. It uses a variant : while maximizing captures it tries to minimize the taxi/Manhattan distance to the opponent's black king rank. This weaker ai element combination will be named "TaxiMax" for the occasion and can be viewed as a half-ply plus. Note this half-ply thus cannot prevent the king to move in check position.
And to be honest, for the non-experts players, if you move really wish to move your king in check position, it will be captured by the computer opponent just behind thereby ending the game.
Would you really have the smallest strict FIDE legal chess program ever :
Quote:
from paragraph 2.2 - False claims abound :
"int main(void){puts("I resign");}
So all in all, it is just the smallest chess implementation program since 1982 if not totally implementing every single FIDE rule, like 1K ZX Chess (adding extra queening promotion) and I think you shouldn't have held yourself back to thumb it up. - isokadded on the 2015-01-27 21:28:11
- 32b procedural graphics MS-Dos Texture 16b by Desire [web]
- Nice
- rulezadded on the 2015-01-27 01:46:26
- 16k Amstrad CPC Battro by Batman Group
- Stylish (y)
- rulezadded on the 2015-01-27 01:46:12
- 512b game MS-Dos BootChess by Red Sector Inc. [web]
- BootChess is the smallest computer implementation of chess on any platform (487 bytes) for Windows / Linux / OS X / DOS / BSD / DOSBox / Bochs
Smaller than previous 33-year old record 1024 bytes 1K ZX Chess.
Cam video link : https://www.youtube.com/watch?v=mlLgOLmQg_g - isokadded on the 2015-01-27 01:44:46
- game Atari ST Unheart by Masters Of Electric City & Checkpoint [web]
- Bitmap Brothers quality graphics in 2014 ? Count me in !
- rulezadded on the 2015-01-10 23:40:27
account created on the 2008-07-05 19:33:52
