Search found 303 matches

by Luis Babboni
Dec 13, 2017 12:26
Forum: Beginners
Topic: Image. Is possible to add one?
Replies: 12
Views: 1019

Re: Image. Is possible to add one?

Nice, works perfect! :-)

I have a problem now.
If I maximized the window, I have now way to minimize it again.
How to do it or directly to not allow to maximize it?

Thanks!
by Luis Babboni
Dec 12, 2017 23:34
Forum: Beginners
Topic: Image. Is possible to add one?
Replies: 12
Views: 1019

Re: Image. Is possible to add one?

Thanks! I´ll try it tomorrow! :-)
by Luis Babboni
Dec 12, 2017 18:33
Forum: Beginners
Topic: Image. Is possible to add one?
Replies: 12
Views: 1019

Image. Is possible to add one?

Hi people!

Is possible to put an image loaded from somewhere as a background in the screen?

Thanks.
by Luis Babboni
Mar 14, 2017 1:11
Forum: Projects
Topic: Soberango 0.00.0 (chess engine) realized.
Replies: 44
Views: 6420

Re: Soberango 0.00.0 (chess engine) realized.

In talkchess.com http://talkchess.com/forum/index.php was made a tournament with 460 chess engines. Taking in account theire skill levels, the engines was divided in "A"; "B"; "C"; "D"; "E" and "Promotion" groups and version 0.09.8 of Sober...
by Luis Babboni
Jan 24, 2017 23:02
Forum: Beginners
Topic: How to "reverse" a byte?
Replies: 69
Views: 5733

Re: How to "reverse" a byte?

It seems I got it for diagonals!! :-)
by Luis Babboni
Jan 24, 2017 19:33
Forum: Beginners
Topic: How to "reverse" a byte?
Replies: 69
Views: 5733

Re: How to "reverse" a byte?

Mmm, sorry grindstone... I need some examples to see how diagonalAttacks and fileAttacks works. :-(

EDIT: mmmm, is needed to complete long number of data (the diagonals, antidiagonals, etc) to could make an example. Let me fight alone for a while. I´ll ask for help soon anyway I´m afraid! :-D
by Luis Babboni
Jan 24, 2017 18:56
Forum: Beginners
Topic: How to "reverse" a byte?
Replies: 69
Views: 5733

Re: How to "reverse" a byte?

Thanks grindstone.....trying to understand your posted code now... I couldn´t for the moment :-D
by Luis Babboni
Jan 23, 2017 22:36
Forum: Beginners
Topic: How to "reverse" a byte?
Replies: 69
Views: 5733

Re: How to "reverse" a byte?

Representing the position of a piece in a chessboard as the only 1 in a 64 bits byte, I could move that piece using shl or shr... my question now is that seems that when I go higher than bit 63 or lower than bit 0.... the 1 do not appear on the other side!!! :-O Looks nice for my purpose.... but cou...
by Luis Babboni
Jan 23, 2017 22:32
Forum: Beginners
Topic: How to "reverse" a byte?
Replies: 69
Views: 5733

Re: How to "reverse" a byte?

For the moment, thinking I do not need more speed right now, I´ll go for the FB that I understand a little more than assembler (my only experience in assembler was in 1987 with my Sinclair Spectrum making a Tetris and a 3d labyrinth!!!) Any way I feel, if I finally use it, is the first time I feel S...
by Luis Babboni
Jan 23, 2017 1:16
Forum: Beginners
Topic: How to "reverse" a byte?
Replies: 69
Views: 5733

Re: How to "reverse" a byte?

A combination of MrSwiss and counting_pine suggestions seems to work!! :-) Many thanks to all!! #define BYTEREV(n) (!"\0\128\64\192\32\160\96\224\16\144\80\208\48\176\112\240\8\136\72\200\40\168\104\232\24\152\88\216\56\184\120\248\4\132\68\196\36\164\100\228\20\148\84\212\52\180\116\244\12\140...
by Luis Babboni
Jan 21, 2017 13:59
Forum: Beginners
Topic: How to "reverse" a byte?
Replies: 69
Views: 5733

Re: How to "reverse" a byte?

Now that the chessprogramming - wiki is accessible again let me make an attempt to transcode the posted function to FB: Type smsk bitMask As ULongInt diagonalMaskEx As ULongInt antidiagMaskEx As ULongInt fileMaskEx As ULongInt End Type Dim Shared As String byteswap Dim Shared As smsk mask(64) Dim S...
by Luis Babboni
Jan 19, 2017 23:32
Forum: Beginners
Topic: How to "reverse" a byte?
Replies: 69
Views: 5733

Re: How to "reverse" a byte?

grindstone wrote:@Luis Babboni:

I can imagine approximately what you're trying to implement. What exactly is it for? Only to mark the fields the slider can move to? That could be coded in FB quite easy. (Alas, the linked wiki - site isn't accessible at the moment)


I did it using loops, but is a way too slow.
by Luis Babboni
Jan 18, 2017 20:44
Forum: Beginners
Topic: How to "reverse" a byte?
Replies: 69
Views: 5733

Re: How to "reverse" a byte?

What about it?: "...Thanks to the little-endian versus big-endian war, recent processors have appropriate instructions to swap bytes (ranks) inside a 64-bit word for the reverse arithmetic..." it refers to "reverse" a 64 bit word bit by bit or to another thing? What is "a re...
by Luis Babboni
Jan 18, 2017 20:32
Forum: Beginners
Topic: How to "reverse" a byte?
Replies: 69
Views: 5733

Re: How to "reverse" a byte?

MrSwiss wrote:Just coded an Endian-Inverter for 64bit INT ...
64bit conversion Big-/Little- Endian (here)
This is however, a Byte by Byte conversion (not bit by bit).


Mmmm, I need to combine this with invByte to do it bit by bit?
by Luis Babboni
Jan 18, 2017 20:00
Forum: Beginners
Topic: How to "reverse" a byte?
Replies: 69
Views: 5733

Re: How to "reverse" a byte?

@Luis, assembly language may be faster but, on the other hand, less compatible: you'd have to do separate ASM routines for FBC 32bit and FBC 64bit. With routines written in FB, you are able to use any of the compilers. You'll have to decide on which option to choose. Just now I saw his suggestion i...

Go to advanced search