Search found 375 matches

by Luis Babboni
Jan 08, 2024 14:00
Forum: Beginners
Topic: What is faster, calculate or search?
Replies: 1
Views: 302

Re: What is faster, calculate or search?

With "search" I refering to the hardware search of a variable, not a software search.
I just have the premade bitboards declared and loaded, just need to "name" them.
by Luis Babboni
Jan 08, 2024 13:54
Forum: Beginners
Topic: What is faster, calculate or search?
Replies: 1
Views: 302

What is faster, calculate or search?

Hi guys. May be there is no obvious answer, buy just in case there is. (As always, sorry for my poor english that made me use much more words than needed and even then explain myself less clearly than must be) I´m making a chess engine, my second version of Soberango. Best version is 618º out of 651...
by Luis Babboni
Jan 01, 2024 13:46
Forum: Beginners
Topic: Does #include works properly in IUP FB Editor?
Replies: 3
Views: 383

Re: Does #include works properly in IUP FB Editor?

Thanks SARG! :-)

Happy new year! :-)

I´ll try again so to see if I could make it work :oops:
by Luis Babboni
Dec 31, 2023 23:20
Forum: Beginners
Topic: Does #include works properly in IUP FB Editor?
Replies: 3
Views: 383

Re: Does #include works properly in IUP FB Editor?

Mmm, IUP FB Edit options have something like "INCLUDE path", FB Edit do not have it. FB Help says: For relative paths, or where no path is given at all, the include file is search for in the following order: -Relative from the directory of the source file -Relative from the current working...
by Luis Babboni
Dec 31, 2023 22:38
Forum: Beginners
Topic: Does #include works properly in IUP FB Editor?
Replies: 3
Views: 383

Does #include works properly in IUP FB Editor?

Thats.

I cant make #include "filename.bas" compile filename.bas code placed in the same directory as the source file.
by Luis Babboni
Dec 31, 2023 21:46
Forum: Beginners
Topic: Cant compile Sub with vector parameters
Replies: 10
Views: 686

Re: Cant compile Sub with vector parameters

As SARG showed. Because an array is passed to a procedure by reference, the procedure body can also modify the elements of the passed array. Sub InitArray(array() As Integer) array(1)=17 array(2)=21 array(3)=-10 array(4)=104 array(5)=12345 End Sub Dim Vector (1 to 5) as integer dim as integer i Ini...
by Luis Babboni
Dec 31, 2023 21:40
Forum: Beginners
Topic: Cant compile Sub with vector parameters
Replies: 10
Views: 686

Re: Cant compile Sub with vector parameters

Uff, I made the same question, 3 years ago!! :-(

viewtopic.php?t=29134

Let me see. Sorry.
by Luis Babboni
Dec 31, 2023 21:20
Forum: Beginners
Topic: Cant compile Sub with vector parameters
Replies: 10
Views: 686

Re: Cant compile Sub with vector parameters

In other words:

How to pass an array to a subroutine that calculate its components?
by Luis Babboni
Dec 31, 2023 21:03
Forum: Beginners
Topic: Cant compile Sub with vector parameters
Replies: 10
Views: 686

Re: Cant compile Sub with vector parameters

Type Vector x As Integer y As Integer z As Integer End Type Sub PrintVector(Byref v As vector) Print "(" & v.x & ", " & v.y & ", " & v.z & ")" End Sub Dim v As Vector = (1, 2, 3) PrintVector(v) Sleep Mmm, sorry. Or I do not understand ...
by Luis Babboni
Dec 31, 2023 14:24
Forum: Beginners
Topic: Cant compile Sub with vector parameters
Replies: 10
Views: 686

Re: Cant compile Sub with vector parameters

Thanks guys! As fast as always! :-)
by Luis Babboni
Dec 31, 2023 13:38
Forum: Beginners
Topic: Cant compile Sub with vector parameters
Replies: 10
Views: 686

Cant compile Sub with vector parameters

Hi! Here my first programming question of, I´m afraid, a lot to come :oops: I want to pass a "vector" to a subroutine and I do not know how to do it. Here the options I tried. Just works the Option 3, but is useless to use a vector if i need to pass each component of the vector one by one ...
by Luis Babboni
Dec 28, 2023 20:38
Forum: Beginners
Topic: About paths in FBEdit
Replies: 12
Views: 817

Re: About paths in FBEdit

Its working now!! :-)

I think last about Edit, later will come a lot about programming :D :
I discovered after some years that my programs are too large cause I always compile them to be able to debug.
To make them lighter I need to change this?:

Image
by Luis Babboni
Dec 28, 2023 19:09
Forum: Beginners
Topic: About paths in FBEdit
Replies: 12
Views: 817

Re: About paths in FBEdit

It seems I do not understand:
I do not know what is -gen; gas and gas64 :-(

Image
by Luis Babboni
Dec 28, 2023 16:45
Forum: Beginners
Topic: About paths in FBEdit
Replies: 12
Views: 817

Re: About paths in FBEdit

Hi all! Setup video Iup_FB_Editor: https://disk.yandex.ru/i/A3e-c7TwNoLv7Q Are you interested in how to set up help? Watch the video starting at 21m 41sec . In the video, 2 help files are configured at once. And although this video is for Linux, you can easily do the same for Windows. Thanks VANYA!...
by Luis Babboni
Dec 28, 2023 16:42
Forum: Beginners
Topic: About paths in FBEdit
Replies: 12
Views: 817

Re: About paths in FBEdit

In 'item menu' define the name you want then in 'command' define (as you did ) the path/name for help file and click ok. You can move the item with the small triangles. To use it click on any word then press F1. No need to select it. For debugging fill debugger path/name in options/customize the ed...