Search found 129 matches

by Muttonhead
Aug 26, 2018 17:47
Forum: Projects
Topic: Eschecs FreeBASIC (UCI chess GUI)
Replies: 445
Views: 64160

Re: Eschecs 1.2.1 (UCI chess GUI)

@ Roland and Paul Doe: if that is the cause of the bug I can offer a modified Version: 64Bit support and for the mouse buttons, mouse position and mouse wheel a ScreenEvent is now used. But that has not been extensively tested, either alone or with your chess program. https://1drv.ms/u/s!AsTPhVzcfzR...
by Muttonhead
Sep 09, 2017 17:11
Forum: Tips and Tricks
Topic: Average color function
Replies: 3
Views: 966

Re: Average color function

Hmmmm, look at row 17 in the code #include "fbgfx.bi" 'Average color function: 'given an array of rgb colors values as argument 'returns the average color using the arithmetic mean function average_color(rgb_values() as Ulong) as Ulong dim as integer r, g, b, c r = 0 : g = 0 : b = 0 for c ...
by Muttonhead
Sep 02, 2017 6:56
Forum: Projects
Topic: sGUI
Replies: 238
Views: 42993

Re: sGUI

Kot wrote:The link to short pdf reference gives 404 error :(

fixed
by Muttonhead
Jul 26, 2017 3:23
Forum: Projects
Topic: sGUI
Replies: 238
Views: 42993

Re: sGUI

oh it looks like a bug in sGUI_v0.8.56 open ListBox.bas in the sGUI folder at row 90 you will find this: sub DrawList (gad as Gadget ptr) dim as Gadget ptr listbox listbox=gad->subevent->GadgetList->GetFirst DrawGadget(listbox) end sub change it to: sub DrawList (gad as Gadget ptr) dim as Gadget ptr...
by Muttonhead
May 15, 2017 20:38
Forum: Tips and Tricks
Topic: Simulation of Glitches (GFX)
Replies: 5
Views: 1062

Re: Simulation of Glitches (GFX)

still not work: i see only glitches
:P
nice
by Muttonhead
May 02, 2017 17:52
Forum: General
Topic: Programming/math "puzzle" for you, guys
Replies: 57
Views: 6720

Re: Programming/math "puzzle" for you, guys

"Everything has an (one) end, only the sausage has two"... well done :)

Mutton
by Muttonhead
Apr 29, 2017 22:40
Forum: General
Topic: Programming/math "puzzle" for you, guys
Replies: 57
Views: 6720

Re: Programming/math "puzzle" for you, guys

My thinking tells me that this must have to do with the procedure you're using to pick them when you create the string. There is a large number of possible valid strings (which would be interesting to calculate and demonstrate too) and my guess is that the cumulative differences would change depend...
by Muttonhead
Apr 29, 2017 16:15
Forum: General
Topic: Programming/math "puzzle" for you, guys
Replies: 57
Views: 6720

Re: Programming/math "puzzle" for you, guys

I think it means the above proof doesn't show it to be necessarily possible (or impossible). I think I have understood what you said, not quite sure :) this little zip contains 10 files, 10003 bytes long and the code inside starts with 000,111....999 http://www.muttonhead.homepage.t-online.de/data/...
by Muttonhead
Apr 29, 2017 7:55
Forum: General
Topic: Programming/math "puzzle" for you, guys
Replies: 57
Views: 6720

Re: Programming/math "puzzle" for you, guys

- Finally, there is the case in which the string started with BCD and B=C=D. We can avoid this by simply never starting the string with three equal digits.

What does this mean? You will (or must) get stuck if you start with 000,111 ... 999?
Have you checked this?

Mutton
by Muttonhead
Apr 19, 2017 17:54
Forum: General
Topic: Programming/math "puzzle" for you, guys
Replies: 57
Views: 6720

Re: Programming/math "puzzle" for you, guys

the detector stops at 10002.... sometimes with patience.... i will prove it... :).... some code: dim as string AllCodes,PressedKeys dim as integer keycount,runvalue, found(9999) 'Fill a "pool" with all codes 'up ordered pool 'for i as integer=0 to 9999 ' AllCodes & = right("000&qu...
by Muttonhead
Apr 19, 2017 17:39
Forum: General
Topic: Programming/math "puzzle" for you, guys
Replies: 57
Views: 6720

Re: Programming/math "puzzle" for you, guys

... whats now the lowest count of pressed keys?

Mutton
by Muttonhead
Apr 06, 2017 17:33
Forum: Projects
Topic: sGUI
Replies: 238
Views: 42993

Re: sGUI

Nice to see a user :) At the moment I do not have much time for the further development of the new version. But if you are interested, you can take a look at the "current" development status: http://www.muttonhead.homepage.t-online.de/data/sGUI_v0.8.6.zip Mutton
by Muttonhead
Feb 18, 2017 9:22
Forum: Tips and Tricks
Topic: GetScreenMetrics - Utility
Replies: 5
Views: 1168

Re: GetScreenMetrics - Utility

Nice... i've replaced this section here: ' do all required calculation(s) cdvr = LargestCommDvr(hei, wid, (hei \ 2)) ' get largest common divisor, half-hei = start value ' reason: I've never so far, come across a odd pixeled screen. Therefore, *smaller value div 2*, ' seems a reasonable start value....
by Muttonhead
Dec 23, 2016 16:38
Forum: General
Topic: creating wav's
Replies: 16
Views: 1547

Re: creating wav's

Thanks dodicat for testing, sometimes it helps to compile a console app without the gui parameter... :D slightly revisted: 'based on http://www.topherlee.com/software/pcm-tut-wavformat.html const as double doublepi =atn (1) * 8 'converts an analog(single) value to a fitted sample value function GetS...

Go to advanced search