Search found 249 matches

by frisian
Feb 08, 2014 21:54
Forum: Projects
Topic: Chess game
Replies: 50
Views: 10708

Re: Chess game

First a macro that is used in the display routine. #Macro move_2_str(num) (Chr(num Mod 10 + 96) + Chr(num \ 10 + 47)) #EndMacro After level 4 I still have trouble with castling when castling is a allowed, when at the start no castling is allowed the is no problem. I didn't expect quite such a marked...
by frisian
Feb 04, 2014 20:48
Forum: Tips and Tricks
Topic: Greater distance between consecutive primes.
Replies: 5
Views: 1085

Re: Greater distance between consecutive primes.

for lrcvs. read careful. from wiki Primality of one Most early Greeks did not even consider 1 to be a number, and so they did not consider it a prime. In the 19th century however, many mathematicians did consider the number 1 a prime. For example, Derrick Norman Lehmer's list of primes up to 10,006,...
by frisian
Feb 04, 2014 20:25
Forum: Tips and Tricks
Topic: Conjecture of Goldbach (simulation)
Replies: 16
Views: 3023

Re: Conjecture of Goldbach (simulation)

Here some fast code 65565 in less then a second. Const max = 100000000 Dim Shared As Byte test_p(max) Dim As Integer x, r, s, t, count Dim As Double t1 '================================== ' set up sieve '================================== ' sieve for finding prime up to max ' 0 = prime, 1 = not prim...
by frisian
Feb 04, 2014 20:20
Forum: Projects
Topic: Chess game
Replies: 50
Views: 10708

Re: Chess game

removed, double posting.
by frisian
Feb 04, 2014 20:18
Forum: Projects
Topic: Chess game
Replies: 50
Views: 10708

Re: Chess game

Here some timings for Numpty_DD and NoMega compiled with FB .91 . [/list] 1.) rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1 depth 6 2.) 4k3/8/8/8/8/8/8/4K2R b K - 0 1 depth 8 3.) r3k2r/8/8/8/8/8/8/R3K2R w KQkq - 0 1 depth 6 4.) r3k2r/8/8/8/8/8/8/R3K2R w - - 0 1 depth 6 All are enter with ...
by frisian
Feb 02, 2014 19:05
Forum: Projects
Topic: Chess game
Replies: 50
Views: 10708

Re: Chess game

Programming a stable chess engine that plays a legal game consistently is not easy (certainly for an amateur hobbyist like me). But since at least 2009 I am confident that Numpty is fundamentally bug free in terms of move generation and basic search (eg it plays regularly without problem in compute...
by frisian
Feb 02, 2014 11:11
Forum: Tips and Tricks
Topic: Conjecture of Goldbach (simulation)
Replies: 16
Views: 3023

Re: Conjecture of Goldbach (simulation)

Hi, Integer: Certainly, your program is very fast.! Here are the comparison between your program and mine, I've used the number 65564. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Program of: lrcvs Time Table = 0.08201209930322295 <<< >>> ...
by frisian
Feb 01, 2014 22:27
Forum: Tips and Tricks
Topic: Conjecture of Goldbach (simulation)
Replies: 16
Views: 3023

Re: Conjecture of Goldbach (simulation)

The following method requires a few seconds less, but it found only 586199 sets. I have not determined the reason for the discrepancy. Integer Your problem is that you have some double counts. In some entry's p2 is bigger then p3 mostly the last entry before p1 changes. I have produced all possibil...
by frisian
Jan 28, 2014 19:08
Forum: Tips and Tricks
Topic: Conjecture of Goldbach (simulation)
Replies: 16
Views: 3023

Re: Question

Question: Because with the number 65565, the program does not work or is very, very slow? If it works well. fast with the numbers: 65564 and 65566 Note: 65656 is not a prime number, possibly either because it is odd and has three loops? No wonder, your function to check for prime does not work corr...
by frisian
Dec 27, 2013 22:47
Forum: Projects
Topic: Arbitrarily Big Integer Routines
Replies: 35
Views: 9299

Re: Arbitrarily Big Integer Routines

stephanbrunker First some rather small things not very important. Dim As Integer i, sign, sum, carry = 0 , dim sets a variable automatic to 0 so carry = 0 is not necessary, you can drop the = 0 part. Constructor bigint (ByRef a As String) Dim As Integer p, i, j, ch, blocks, sign If InStr(a, "-&...
by frisian
Dec 19, 2013 19:52
Forum: Projects
Topic: windows Multi-language Editor ( English;French;Spanish)
Replies: 71
Views: 21808

Re: windows Multi-language Editor ( English;French;Spanish)

colors & fonts I will try to clarify some issue with colors & fonts 1. I start the editor, all colors and fonts are as I want them to be. 2. I decide to change a color say the background color of the comment's. 3. I open the colors & fonts window. 4. It opens showing the fore and backgr...
by frisian
Dec 18, 2013 21:59
Forum: Projects
Topic: windows Multi-language Editor ( English;French;Spanish)
Replies: 71
Views: 21808

Re: windows Multi-language Editor ( English;French;Spanish)

Compile option. I'm not a fan of the option -v when invoking the compiler (in fact I have never used it). I try to get rid of it but it seems to be hard coded into the editor. Is there a way to remove it? I think, you can switch off Display Results in Compiler Results in Compiler Options and Paths....
by frisian
Dec 18, 2013 16:25
Forum: Projects
Topic: windows Multi-language Editor ( English;French;Spanish)
Replies: 71
Views: 21808

Re: windows Multi-language Editor ( English;French;Spanish)

Marpon Here a few more things I found. In a ASM … END ASM block the assembler command SUB also messes up indentation. Colors and fonts I have the colors and fonts nearly as I want them but I noticed that when start the editor the colors are correct, but when I open “colors and fonts” the default bac...
by frisian
Dec 17, 2013 18:48
Forum: Projects
Topic: windows Multi-language Editor ( English;French;Spanish)
Replies: 71
Views: 21808

Re: windows Multi-language Editor ( English;French;Spanish)

Marpon Thank you for the new version but I have still some issue with setting the colors and I found some new things that aren't quit right. The editor seems to reset default background color to white, I had changed the color in the ini file. (I could get it right with "color and fonts). Worked...
by frisian
Dec 13, 2013 16:06
Forum: Community Discussion
Topic: [SOLVED] Forum DB are broken ?
Replies: 14
Views: 2663

Re: Forum DB are broken ?

All seems to work normal.

thanks.

Go to advanced search