Author Topic: Hi everybody  (Read 815 times)

Hi everybody
« on: July 26, 2017, 05:54:16 AM »
Hi everybody

fine to see that it is possible to talk and to share about QB64 out of the original website,
waiting the QB64.net coming back I'm glad to say hello to all you

Good Coding
TempodiBasic

Offline Petr

  • I am instructed.
Re: Hi everybody
« Reply #1 on: July 26, 2017, 10:54:42 AM »
Hi TempodiBasic, I am glad to see you again after a long time!

Offline Ashish

  • The joy of coding is endless.
Re: Hi everybody
« Reply #2 on: July 27, 2017, 07:10:38 AM »
Hi! Welcome Back!
if (Me.success) {Me.improve()} else {Me.tryAgain()}


aKFrameWork - http://bit.ly/aKFrameWork
Menu System - http://bit.ly/guiMenuBar
p5.js in QB64 - http://bit.ly/p5jsbas

@KingOfCoders

Re: Hi everybody
« Reply #3 on: July 27, 2017, 09:00:17 AM »
Hi TempodiBasic,

May I ask how you started with Basic?
B = B + ...
QB64 x 64 v1.2 2018 0228/86 git b30af92
QB64 v1.2 20180228/86 git 6fde149
QB64 v1.2 [dev build]_d84bb00

Re: Hi everybody
« Reply #4 on: October 21, 2017, 02:23:39 PM »
Oh, now maybe I get my question answered. :)

@ TempodBasic, what was reason you didn't like Fellippes fix to mouse click method to get player's move?

I mean it still works better than anything we've come up with. See how each square is cleared when doing mouse overs after first click.
« Last Edit: October 21, 2017, 02:42:11 PM by bplus »
B = B + ...
QB64 x 64 v1.2 2018 0228/86 git b30af92
QB64 v1.2 20180228/86 git 6fde149
QB64 v1.2 [dev build]_d84bb00

Offline FellippeHeitor

  • QB64 Developer
  • LET IT = BE
    • QB64.org
Re: Hi everybody
« Reply #5 on: October 21, 2017, 02:39:35 PM »
:D

Re: Hi everybody
« Reply #6 on: October 21, 2017, 04:24:16 PM »
Well I will try again to post 2_2-2 for comparison

Blah!  " message exceeds the maximum allowed length 20000 characters "
B = B + ...
QB64 x 64 v1.2 2018 0228/86 git b30af92
QB64 v1.2 20180228/86 git 6fde149
QB64 v1.2 [dev build]_d84bb00

B = B + ...
QB64 x 64 v1.2 2018 0228/86 git b30af92
QB64 v1.2 20180228/86 git 6fde149
QB64 v1.2 [dev build]_d84bb00

Re: Hi everybody
« Reply #8 on: October 21, 2017, 05:12:55 PM »
Hi TempodiBasic,

May I ask how you started with Basic?


Hi Bplus

as you see I have so much time, so I can log in so many forum.... If you can believe this....
However  I discover BASIC in DOS with Qbasic....
I went on when talking with friends that were learning programming as their path of school formation I took a challange....
they affirmed that BASIC was KO an unuseful old tool, taking these ideas by their school information and programming is very hard...while I said that tool is less important of idea and if each LanguageProgramming is a tool that brings to binary file then each LP can be used to translate that idea in binaryfile with the difference of less or more efforts...
And after two week I brought them my first program, a Qbasic program....and  they said Oh this is not BASIC, Where are the number  of lines of code?  What libraries do you use to make graphic?  External?  But this seems a dialect of C!   LOL

So I have told about me :-)

Re: Hi everybody
« Reply #9 on: October 21, 2017, 05:35:18 PM »
Oh, now maybe I get my question answered. :)


Yes you're right!

Quote
@ TempodBasic, what was reason you didn't like Fellippes fix to mouse click method to get player's move?

I mean it still works better than anything we've come up with. See how each square is cleared when doing mouse overs after first click.

No really do I let understand this from my posts?
I must follow a communication course ! :-(

About choose a piece and move it  I am still in alpha phase ... that of brainstorming.... so  I'm trying different way to implement mouse moving a piece....
about the two click method I have already affirmed that the code of Fellippe is better!  So in the following versions (all in alpha for me) I bring again my code only to find /fix error in it....while the news are build as an indipendent code to add to each previouse versions posted,  but for final version I have already said what is the best code to use! Sure not mine.
I don't think to be better than you to code, but when I mod some your code I do it for developing an idea about all we can talk to choose  an official version that can be developed and if it is so good it can be packed in the programs that travel together QB64 as examples...

I dislike very much codes that are in the package of QB64 not working...  is all that code  there to demonstrate how QB64 can run QB code or to demonstrate how professional programs can be coded in QB64?


Re: Hi everybody
« Reply #10 on: October 21, 2017, 06:49:03 PM »
Hi TempodiBasic,

Re Basic experience:
Ha, people still think Basic is line numbers and spaghetti code! bad rep... how long ago was this?

Me, I started with GW Basic. When I turned off my "Windows like Interface" on my 1st computer and ran straight from DOS with the help of a File Explorer like program, I discovered GW. Moved onto Quick Basic 4.5 (I think, I had to pay for it before MS added it to DOS for free but I got a compiler plus...) Then VB 2.0 then VB for MS DOS which was my favorite because Windows still quite slow with graphics back in early 90's, I was doing stuff for where I worked for a couple of years. Then big gap until 2014 when I got a hankering for some programming again.


Re: Mouse click methods
OK we are agreed to use Fellippe's method for mouse move? but it was great learning experience trying other methods.

And we can start adapting new changes around this,

but wait...
Oh, now I see what you might be after.

We need to go outside the board to select pieces for things like pawn promotion and maybe setting up positions for mid game study and such... aha! That is where/when that separate sub you were setting up would come into play! and yes, use it with the main thing for getting moves of chess pieces in game.


Re:All those broken samples in QB64 package...
Doesn't it make you want to use (and learn) QB64 to fix those up? better than ever!



« Last Edit: October 21, 2017, 07:01:36 PM by bplus »
B = B + ...
QB64 x 64 v1.2 2018 0228/86 git b30af92
QB64 v1.2 20180228/86 git 6fde149
QB64 v1.2 [dev build]_d84bb00

Re: Hi everybody
« Reply #11 on: October 22, 2017, 07:59:52 PM »
Yes Bplus
let's go on to make a professional program of chess starting from chess.bas

here attached the version of Fellippe (two click method with two different color to select pieces) powered with
1.castle by mouse,
2.promote by mouse, 
3. empowered rules of castle Kingside and Queenside,
4. fixed bug of Incheck for Black, or I hope so
5. fixed output lag after promotion in Fellippe's version.... here if you promote (as white) then you cannot see the promoted piece both using Keyinput both using mouse input because the program doesn't display the new... but a good _AUTODISPLAY at the right place put all  at right place.

For now that's all, folks

PS why does the author use so many GOTO and GOSUB and labels ???
It is a really spaghetti code rich of GOTO!!!
.....this AI doesn't recognize if King is under check in the actual position, it waits for White move first (BUG), if you take King of Black the AI continue to make calculation.... LOL We have many things to do

Re: Hi everybody
« Reply #12 on: October 22, 2017, 09: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
Code: [Select]
'DEFINE PIECES FOR DRAWING
ROOK$ = "R26U5H2L5U7E3R4U10L6D3L4U3L6D3L4U3L6D10R4F3D7L5G2D5"
KNIGHT$ = "R26U5H2U4E2U9H6L9G10D4F2R4E3R4G8L4G2D5"
BISHOP$ = "R26U5H2L8E6U9H2G8H2E8H2L6G6D9F6L8G2D5"
QUEEN$ = "R26U5H2L6E9U11G4H6G4H4G6H4D11F9L6G2D5"
KING$ = "R26U5H2L5E7U6H4L5G3U5R2U2L2U2L2D2L2D2R2D5H3L5G4D6F7L5G2D5"
PAWN$ = "R26U5H2L6U7E3U6H3L10G3D6F3D7L6G2D5"
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?

« Last Edit: October 22, 2017, 10:17:35 PM by bplus »
B = B + ...
QB64 x 64 v1.2 2018 0228/86 git b30af92
QB64 v1.2 20180228/86 git 6fde149
QB64 v1.2 [dev build]_d84bb00

Offline FellippeHeitor

  • QB64 Developer
  • LET IT = BE
    • QB64.org
Re: Hi everybody
« Reply #13 on: October 22, 2017, 09:51:32 PM »
You can do screenshots here if you want. Just attach them (as you can see below - click to see it larger).

Re: Hi everybody
« Reply #14 on: October 22, 2017, 10:00:46 PM »
Hi Fellippe,

There seems to be a limit to attachments that I ran into earlier today. Let's see if a png OK.

Yep! tried less than 800 x 600 png, Same error:

"The upload folder is full. Please try a smaller file and/or contact an administrator.
B = B + ...
QB64 x 64 v1.2 2018 0228/86 git b30af92
QB64 v1.2 20180228/86 git 6fde149
QB64 v1.2 [dev build]_d84bb00