8011
QB64 Discussion / Re: Hi everybody
« on: October 22, 2017, 07:44:01 pm »
Hi TempodiBasic,
I have been researching origins of this code we are trying to improve, mostly from Chess Programs Board at TJP.
http://www.thejoyfulprogrammer.com/qb64/forum/forumdisplay.php?fid=374&rndtime=1508611534653852581
reply #48
http://www.thejoyfulprogrammer.com/qb64/forum/showthread.php?tid=63&page=5&rndtime=1508650499163919983
follow the link
http://www.petesqbsite.com/sections/express/issue23/Tut_QB_Chess.txt
My guess someone had it written in spaghetti and translated it to QBasic. Was Dean the translator and / or the original source ???
I also think because of the temporary nature (I hope the Net is down temporarily) we should continue discussion with screen shots and attachments at TJP.
BTW, (Since NET is down) I found OlDosLover changes at
http://www.teutoburgo.tk/misc/downloadFrame.html
that has code to replay a game. From my first experience it seems flawed. But nice tiny little chess piece graphics!
But OlDosLover's game recorder looks easy to install into what we've been doing.
Speaking of Chess piece graphics, I was very impressed here:
http://www.thejoyfulprogrammer.com/qb64/forum/showthread.php?tid=401&rndtime=1508625987687357559
Just plain old DRAW strings!!! And yet each piece is easy to ID for what it is.
I have also found a different Chess program in SmallBASIC samples files that works with mouse but draw strings need work.
It might be fun to translate back to QB64. I have never seen a sub written inside a Function nor SmallBASIC's use of square brackets, maybe for User Type Arrays without need for complementary User Type Definitions.
Do the 16 QB colors work in Screen 0?
I have been researching origins of this code we are trying to improve, mostly from Chess Programs Board at TJP.
http://www.thejoyfulprogrammer.com/qb64/forum/forumdisplay.php?fid=374&rndtime=1508611534653852581
reply #48
http://www.thejoyfulprogrammer.com/qb64/forum/showthread.php?tid=63&page=5&rndtime=1508650499163919983
follow the link
http://www.petesqbsite.com/sections/express/issue23/Tut_QB_Chess.txt
My guess someone had it written in spaghetti and translated it to QBasic. Was Dean the translator and / or the original source ???
I also think because of the temporary nature (I hope the Net is down temporarily) we should continue discussion with screen shots and attachments at TJP.
BTW, (Since NET is down) I found OlDosLover changes at
http://www.teutoburgo.tk/misc/downloadFrame.html
that has code to replay a game. From my first experience it seems flawed. But nice tiny little chess piece graphics!
But OlDosLover's game recorder looks easy to install into what we've been doing.
Speaking of Chess piece graphics, I was very impressed here:
http://www.thejoyfulprogrammer.com/qb64/forum/showthread.php?tid=401&rndtime=1508625987687357559
Code: QB64: [Select]
- 'DEFINE PIECES FOR DRAWING
- ROOK$ = "R26U5H2L5U7E3R4U10L6D3L4U3L6D3L4U3L6D10R4F3D7L5G2D5"
- KNIGHT$ = "R26U5H2U4E2U9H6L9G10D4F2R4E3R4G8L4G2D5"
- BISHOP$ = "R26U5H2L8E6U9H2G8H2E8H2L6G6D9F6L8G2D5"
- QUEEN$ = "R26U5H2L6E9U11G4H6G4H4G6H4D11F9L6G2D5"
- KING$ = "R26U5H2L5E7U6H4L5G3U5R2U2L2U2L2D2L2D2R2D5H3L5G4D6F7L5G2D5"
- PAWN$ = "R26U5H2L6U7E3U6H3L10G3D6F3D7L6G2D5"
I have also found a different Chess program in SmallBASIC samples files that works with mouse but draw strings need work.
It might be fun to translate back to QB64. I have never seen a sub written inside a Function nor SmallBASIC's use of square brackets, maybe for User Type Arrays without need for complementary User Type Definitions.
Do the 16 QB colors work in Screen 0?