Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

To communicate is the beginning of understanding. -- AT&T


computers / comp.os.linux.advocacy / Re: A Problem To Solve :-)

SubjectAuthor
* A Problem To Solve :-)Physfitfreak
+* Re: A Problem To Solve :-)Farley Flud
|+* Re: A Problem To Solve :-)Physfitfreak
||`* Re: A Problem To Solve :-)rbowman
|| `* Re: A Problem To Solve :-)Physfitfreak
||  `* Re: A Problem To Solve :-)rbowman
||   `* Re: A Problem To Solve :-)Physfitfreak
||    `* Re: A Problem To Solve :-)rbowman
||     +* Re: A Problem To Solve :-)Chris Ahlstrom
||     |`- Re: A Problem To Solve :-)rbowman
||     `* Re: A Problem To Solve :-)Physfitfreak
||      `* Re: A Problem To Solve :-)rbowman
||       `* Re: A Problem To Solve :-)Physfitfreak
||        `* Re: A Problem To Solve :-)rbowman
||         `* Re: A Problem To Solve :-)Physfitfreak
||          +* Re: A Problem To Solve :-)Physfitfreak
||          |`* Re: A Problem To Solve :-)Physfitfreak
||          | `* Re: A Problem To Solve :-)rbowman
||          |  `- Re: A Problem To Solve :-)Physfitfreak
||          `* Re: A Problem To Solve :-)rbowman
||           `- Re: A Problem To Solve :-)Physfitfreak
|`* Re: A Problem To Solve :-)Physfitfreak
| +* Re: A Problem To Solve :-)Farley Flud
| |+- Re: A Problem To Solve :-)DFS
| |`- Re: A Problem To Solve :-)Physfitfreak
| `* Re: A Problem To Solve :-)Physfitfreak
|  +* Re: A Problem To Solve :-)Farley Flud
|  |`* Re: A Problem To Solve :-)Physfitfreak
|  | +* Re: A Problem To Solve :-)Farley Flud
|  | |+- Re: A Problem To Solve :-)Physfitfreak
|  | |+* Re: A Problem To Solve :-)DFS
|  | ||`* Re: A Problem To Solve :-)Physfitfreak
|  | || +* Re: A Problem To Solve :-)Stéphane CARPENTIER
|  | || |`* Re: A Problem To Solve :-)DFS
|  | || | `* Re: A Problem To Solve :-)DFS
|  | || |  `* Re: A Problem To Solve :-)Farley Flud
|  | || |   +* Re: A Problem To Solve :-)Farley Flud
|  | || |   |`- Re: A Problem To Solve :-)DFS
|  | || |   `- Re: A Problem To Solve :-)DFS
|  | || `* Re: A Problem To Solve :-)DFS
|  | ||  +* Re: A Problem To Solve :-)Physfitfreak
|  | ||  |+* Re: A Problem To Solve :-)Physfitfreak
|  | ||  ||+- Re: A Problem To Solve :-)DFS
|  | ||  ||`- Re: A Problem To Solve :-)Physfitfreak
|  | ||  |`- Re: A Problem To Solve :-)DFS
|  | ||  `* Re: A Problem To Solve :-)DFS
|  | ||   +* Re: A Problem To Solve :-)Physfitfreak
|  | ||   |+- Re: A Problem To Solve :-)rbowman
|  | ||   |`- Re: A Problem To Solve :-)DFS
|  | ||   `* Re: A Problem To Solve :-)Lord Master
|  | ||    +- Re: A Problem To Solve :-)DFS
|  | ||    `- Re: A Problem To Solve :-)Physfitfreak
|  | |`- Re: A Problem To Solve :-)Physfitfreak
|  | `- Re: A Problem To Solve :-)Stéphane CARPENTIER
|  +- Re: A Problem To Solve :-)Chris Ahlstrom
|  `* Re: A Problem To Solve :-)Physfitfreak
|   +* Re: A Problem To Solve :-)Farley Flud
|   |+* Re: A Problem To Solve :-)Physfitfreak
|   ||+* Re: A Problem To Solve :-)DFS
|   |||`* Re: A Problem To Solve :-)Physfitfreak
|   ||| `- Re: A Problem To Solve :-)DFS
|   ||`- Re: A Problem To Solve :-)DFS
|   |`- Re: A Problem To Solve :-)Stéphane CARPENTIER
|   +* Re: A Problem To Solve :-)DFS
|   |`* Re: A Problem To Solve :-)DFS
|   | `- Re: A Problem To Solve :-)Physfitfreak
|   +* Re: A Problem To Solve :-)Physfitfreak
|   |`* Re: A Problem To Solve :-)DFS
|   | `* Re: A Problem To Solve :-)Physfitfreak
|   |  `* Re: A Problem To Solve :-)DFS
|   |   +* Re: A Problem To Solve :-)DFS
|   |   |`* Re: A Problem To Solve :-)Physfitfreak
|   |   | `* Re: A Problem To Solve :-)DFS
|   |   |  `* Re: A Problem To Solve :-)Physfitfreak
|   |   |   +* Re: A Problem To Solve :-)DFS
|   |   |   |+* Re: A Problem To Solve :-)DFS
|   |   |   ||+* Re: A Problem To Solve :-)vallor
|   |   |   |||`- Re: A Problem To Solve :-)DFS
|   |   |   ||`- Re: A Problem To Solve :-)Physfitfreak
|   |   |   |`* Re: A Problem To Solve :-)Lord Master
|   |   |   | +* Re: A Problem To Solve :-)Physfitfreak
|   |   |   | |+- Re: A Problem To Solve :-)Lord Master
|   |   |   | |`* Re: A Problem To Solve :-)DFS
|   |   |   | | `- Re: A Problem To Solve :-)Physfitfreak
|   |   |   | +* Re: A Problem To Solve :-)DFS
|   |   |   | |`* Re: A Problem To Solve :-)Physfitfreak
|   |   |   | | `* Re: A Problem To Solve :-)DFS
|   |   |   | |  `* Re: A Problem To Solve :-)Physfitfreak
|   |   |   | |   `* Re: A Problem To Solve :-)DFS
|   |   |   | |    `- Re: A Problem To Solve :-)Physfitfreak
|   |   |   | `* Re: A Problem To Solve :-)Lord Master
|   |   |   |  `- Re: A Problem To Solve :-)Physfitfreak
|   |   |   `* Re: A Problem To Solve :-)Stéphane CARPENTIER
|   |   |    `* Re: A Problem To Solve :-)Physfitfreak
|   |   |     `* Re: A Problem To Solve :-)Stéphane CARPENTIER
|   |   |      `* Re: A Problem To Solve :-)Physfitfreak
|   |   |       `* Re: A Problem To Solve :-)Stéphane CARPENTIER
|   |   |        `* Re: A Problem To Solve :-)Physfitfreak
|   |   |         `- Re: A Problem To Solve :-)Physfitfreak
|   |   `- Re: A Problem To Solve :-)Physfitfreak
|   `* Re: A Problem To Solve :-)Physfitfreak
`- Re: A Problem To Solve :-)%

Pages:12345678910
Re: A Problem To Solve :-)

<i7jwN.204289$yEgf.184650@fx09.iad>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=9242&group=comp.os.linux.advocacy#9242

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx09.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Betterbird (Windows)
From: nospam@dfs.com (DFS)
Subject: Re: A Problem To Solve :-)
Newsgroups: comp.os.linux.advocacy
References: <uog01l$mi9n$1@solani.org>
<17ac13c4ae353932$16712$1979536$802601b3@news.usenetexpress.com>
<uohk04$ndab$2@solani.org> <up4385$11vs3$1@solani.org>
<upl2ru$19kpu$1@solani.org> <uppf2e$1bq1i$1@solani.org>
<BtYvN.258793$Ama9.10754@fx12.iad> <upptbh$1c2oi$1@solani.org>
<PbewN.54194$Iswd.37220@fx05.iad> <NiewN.54195$Iswd.40483@fx05.iad>
<uprv8a$1d50k$2@solani.org> <TzgwN.298224$Wp_8.39947@fx17.iad>
<ups5io$1d50k$4@solani.org>
Content-Language: en-US
In-Reply-To: <ups5io$1d50k$4@solani.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 306
Message-ID: <i7jwN.204289$yEgf.184650@fx09.iad>
X-Complaints-To: abuse@blocknews.net
NNTP-Posting-Date: Tue, 06 Feb 2024 05:06:22 UTC
Organization: blocknews - www.blocknews.net
Date: Tue, 6 Feb 2024 00:06:23 -0500
X-Received-Bytes: 9986
 by: DFS - Tue, 6 Feb 2024 05:06 UTC

On 2/5/2024 9:29 PM, Physfitfreak wrote:

> No.
>
> You must understand the problem first. Any code monkey has good reading
> comprehension, otherwise they're just useless cause they won't know what
> it is that the employer wants them to do.

I think this is what you're looking for.

For any non-pawn piece, starting at any position on the board, it shows
2 values:
* the longest single move available
* the sum of all the squares covered by all available moves

This board is helpful to look at when trying the program:
https://en.wikipedia.org/wiki/Algebraic_notation_(chess)#/media/File:SCD_algebraic_notation.svg

You know how to compile and run it, right?

======================================================================

//This program determines the max number of squares 2 random non-pawn
chess pieces can
//possibly cover with one move each, and with all available moves, from
any random
//starting position on the board.
//Code assumes one piece cannot block the other.

//This code is hereby donated to the public domain

//usage:
//$ ./prog <leave blank and system will generate 2 random pieces>
// or
//$ ./prog <piece1> <piece2> no brackets
//$ ./prog Qe6 Ka1

//pieces and starting position must be entered using standard
// chess algebraic notation: Ba3 Kg1 Ne8 etc
//pieces : K king, Q queen, R rook, B bishop, N knight
//columns: abcdefgh
//rows : 1-8

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>

//K king, Q queen, R rook, B bishop, N knight
char *pieces[] = {"K","Q","R","B","N"};
char *pieceslong[] = {"King","Queen","Rook","Bishop","Knight"};

//build random piece and starting position
//column,row is converted to algebraic notation
char *genpiece(char newpiece[])
{ char piece[2], col[2];
sprintf(piece,"%s",pieces[rand() % 5]);
sprintf(col,"%c",(rand() % 8) + 97);
int row = (rand() % 8) + 1;
sprintf(newpiece,"%s%s%d",piece,col,row);
}

//find largest value
int getmax(int a, int b, int c, int d)
{ int max = 0;
if (a > max) {max = a;}
if (b > max) {max = b;}
if (c > max) {max = c;}
if (d > max) {max = d;}
return max;
}

//find smallest value
int getmin(int a, int b, int c, int d)
{ int min = 9;
if (a < min) {min = a;}
if (b < min) {min = b;}
if (c < min) {min = c;}
if (d < min) {min = d;}
return min;
}

// determine max number of squares that can be moved from the starting
position
int calcsquares(char piece[], char *cntmoves) {

//cntmoves flag:
// 'one' means piece can make only 1 move - find max squares covered
// 'all' means piece can make all possible moves - sum them all

//min and max square moves by piece
//king 1,1
//queen 1,7
//rook 1,7
//bishop 1,7
//knight 3,3

int squares = 0;

//convert algebraic notation to col,row
//a1 = col 1,row 1 white, bottom left
//h8 = col 8,row 8 black, top right
int pcol = piece[1]-96;
int prow = atoi(&piece[2]);

//left and right edges of board are 1 and 8
//bottom and top of board are 1 and 8

//kings and knights will always be able to make at least one move of
//1 and 3 squares respectively, no matter the starting position
if (cntmoves == "one")
{
if (piece[0] == 'K') { squares += 1; }
if (piece[0] == 'N') { squares += 3; }
}
if (cntmoves == "all")
{
//king
if (piece[0] == 'K')
{
//positioned in a corner (3 moves of 1 square each)
if (pcol==1 && prow==1) {squares += 3;}
if (pcol==1 && prow==8) {squares += 3;}
if (pcol==8 && prow==1) {squares += 3;}
if (pcol==8 && prow==8) {squares += 3;}

//positioned along an edge but not in a corner (5 moves of 1
square each)
if (pcol==1 && prow>1 && prow<8) {squares += 5;}
if (pcol==8 && prow>1 && prow<8) {squares += 5;}
if (prow==1 && pcol>1 && pcol<8) {squares += 5;}
if (prow==8 && pcol>1 && pcol<8) {squares += 5;}

//positioned at least one square inside all edges (8 moves of 1
square each)
if (pcol>1 && prow>1 && pcol<8 && prow<8) {squares += 8;}
}

//knight
if (piece[0] == 'N')
{
//positioned in a corner (2 moves of 3 squares each)
if (pcol==1 && prow==1) {squares += 6;}
if (pcol==1 && prow==8) {squares += 6;}
if (pcol==8 && prow==1) {squares += 6;}
if (pcol==8 && prow==8) {squares += 6;}

//positioned along an edge but not in a corner (3 moves of 3
squares each)
if (pcol==1 && prow>1 && prow<8) {squares += 9;}
if (pcol==8 && prow>1 && prow<8) {squares += 9;}
if (prow==1 && pcol>1 && pcol<8) {squares += 9;}
if (prow==8 && pcol>1 && pcol<8) {squares += 9;}

//positioned one square in from a corner (4 moves of 3 squares
each)
if (pcol==2 && prow==2) {squares += 12;}
if (pcol==2 && prow==7) {squares += 12;}
if (pcol==7 && prow==2) {squares += 12;}
if (pcol==7 && prow==7) {squares += 12;}

//positioned one square in from an edge, rows 3-6 or cols 3-6
//(6 moves of 3 squares each)
if (pcol==2 && prow>2 && prow<7) {squares += 18;}
if (pcol==7 && prow>2 && prow<7) {squares += 18;}
if (prow==2 && pcol>2 && pcol<7) {squares += 18;}
if (prow==7 && pcol>2 && pcol<7) {squares += 18;}

//positioned at least two squares inside all edges (8 moves of 3
squares each)
if (pcol>2 && prow>2 && pcol<7 && prow<7) {squares += 24;}
}
}

//rooks and queens move on rows or columns (left, right, forward,
backward)
int l=0,r=0,f=0,b=0;
if (piece[0] == 'R' || piece[0] == 'Q')
{
l = pcol - 1;
r = 8 - pcol;
f = 8 - prow;
b = prow - 1;
if (cntmoves == "one")
{ squares += getmax(l,r,f,b); }

if (cntmoves == "all")
{ squares += (l + r + f + b); }

//printf("%s: left %d, right %d, fwd %d, bwd %d
max=%d\n",piece,l,r,f,b,getmax(l,r,f,b));
}

//bishops and queens move on diagonals (down left, down right, up
left, up right)
//but don't use the diagonal moves when searching for the Queen's
longest single move - //that's accounted for in the previous section
(left,right,forward,backward)

//https://www.geeksforgeeks.org/count-the-total-number-of-squares-that-can-be-visited-by-bishop-in-one-move/
//hack: 99 and -99 are used just to send 4 args to the min/max functions
int dl=0, dr=0, ul=0, ur=0;
if (piece[0] == 'B' || piece[0] == 'Q')
{
dl = 8 - getmax(prow, 9-pcol, -99, -99);
dr = getmin(prow, 9-pcol, 99, 99) -1;
ul = getmin(prow, pcol, 99, 99) - 1;
ur = 8 - getmax(prow, pcol, -99, -99);
if (cntmoves == "one" && piece[0] == 'B')
{ squares += getmax(dl,dr,ul,ur); }
if (cntmoves == "all")
{ squares += (dl + dr + ul + ur); }

//printf("%s: down left %d, down right %d, up left %d, up right %d
max=%d\n",piece,dl,dr,ul,ur,getmax(dl,dr,ul,ur));
}

return squares;

}

int main(int argc, char *argv[]) {
//TODO maybe:
// 1. handle piece blocking
// 2. allow 3+ pieces using an array
// 3. capture and display ending position

//random
srand(time(NULL));

//pieces
char p1[4], p2[4];

//no input from user, so system generates 2 random pieces
if (argc == 1)
{ genpiece(p1);
genpiece(p2);
while (strcmp(p1,p2)==0) { genpiece(p2); } //ensure 2 different pieces
}

//invalid entry
if ((argc == 2) || (argc > 3))
{ printf("Enter 2 valid pieces\n");
exit(0);
}
//user inputs
if (argc == 3)
{ sprintf(p1,"%s",argv[1]);
sprintf(p2,"%s",argv[2]);
if (strcmp(p1,p2)==0)
{ printf("You entered 2 of the same piece \n");
exit(0);
}
}

//pieces and algebraic notation must be len(3)
if (strlen(p1)!=3 || strlen(p2)!=3)
{ printf("Enter 2 valid pieces\n");
exit(0);
}

//calc max squares moved per piece
int p1one = calcsquares(p1,"one");
int p1all = calcsquares(p1,"all");
int p2one = calcsquares(p2,"one");
int p2all = calcsquares(p2,"all");


Click here to read the complete article
Re: A Problem To Solve :-)

<sarwN.44027$9cLc.38825@fx02.iad>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=9248&group=comp.os.linux.advocacy#9248

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx02.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Betterbird (Windows)
Subject: Re: A Problem To Solve :-)
Newsgroups: comp.os.linux.advocacy
References: <uog01l$mi9n$1@solani.org>
<17ac13c4ae353932$16712$1979536$802601b3@news.usenetexpress.com>
<uohk04$ndab$2@solani.org> <up4385$11vs3$1@solani.org>
<upl2ru$19kpu$1@solani.org> <uppf2e$1bq1i$1@solani.org>
<BtYvN.258793$Ama9.10754@fx12.iad> <upptbh$1c2oi$1@solani.org>
<PbewN.54194$Iswd.37220@fx05.iad> <NiewN.54195$Iswd.40483@fx05.iad>
<uprv8a$1d50k$2@solani.org> <TzgwN.298224$Wp_8.39947@fx17.iad>
<ups5io$1d50k$4@solani.org> <i7jwN.204289$yEgf.184650@fx09.iad>
Content-Language: en-US
From: nospam@dfs.com (DFS)
In-Reply-To: <i7jwN.204289$yEgf.184650@fx09.iad>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 32
Message-ID: <sarwN.44027$9cLc.38825@fx02.iad>
X-Complaints-To: abuse@blocknews.net
NNTP-Posting-Date: Tue, 06 Feb 2024 14:15:52 UTC
Organization: blocknews - www.blocknews.net
Date: Tue, 6 Feb 2024 09:15:54 -0500
X-Received-Bytes: 2046
 by: DFS - Tue, 6 Feb 2024 14:15 UTC

On 2/6/2024 12:06 AM, DFS wrote:
> On 2/5/2024 9:29 PM, Physfitfreak wrote:
>
>
>> No.
>>
>> You must understand the problem first. Any code monkey has good
>> reading comprehension, otherwise they're just useless cause they won't
>> know what it is that the employer wants them to do.
>
>
> I think this is what you're looking for.
>
> For any non-pawn piece, starting at any position on the board, it shows
> 2 values:
> * the longest single move available
> * the sum of all the squares covered by all available moves
>
> This board is helpful to look at when trying the program:
> https://en.wikipedia.org/wiki/Algebraic_notation_(chess)#/media/File:SCD_algebraic_notation.svg

You want to see real chess software?

https://stockfishchess.org
https://en.wikipedia.org/wiki/Stockfish_(chess)

It's GPL3 licensed, command line, and the strongest computer chess
engine in the world.

The C++ code is only 622KB.

Re: A Problem To Solve :-)

<upu4qm$11m3c$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=9268&group=comp.os.linux.advocacy#9268

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: vallor@cultnix.org (vallor)
Newsgroups: comp.os.linux.advocacy
Subject: Re: A Problem To Solve :-)
Date: Tue, 6 Feb 2024 20:29:10 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 40
Message-ID: <upu4qm$11m3c$1@dont-email.me>
References: <uog01l$mi9n$1@solani.org>
<17ac13c4ae353932$16712$1979536$802601b3@news.usenetexpress.com>
<uohk04$ndab$2@solani.org> <up4385$11vs3$1@solani.org>
<upl2ru$19kpu$1@solani.org> <uppf2e$1bq1i$1@solani.org>
<BtYvN.258793$Ama9.10754@fx12.iad> <upptbh$1c2oi$1@solani.org>
<PbewN.54194$Iswd.37220@fx05.iad> <NiewN.54195$Iswd.40483@fx05.iad>
<uprv8a$1d50k$2@solani.org> <TzgwN.298224$Wp_8.39947@fx17.iad>
<ups5io$1d50k$4@solani.org> <i7jwN.204289$yEgf.184650@fx09.iad>
<sarwN.44027$9cLc.38825@fx02.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 6 Feb 2024 20:29:10 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0576bc6d3525f8b3f9c08e709c00a65f";
logging-data="1103980"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+1uIB5hqwDyp2z81rZiYmR"
User-Agent: Pan/0.155 (Kherson; c0bf34e gitlab.gnome.org/GNOME/pan.git;
x86_64-pc-linux-gnu)
Cancel-Lock: sha1:gu2BM/BD+FiTJjWiHVwd3N+RiHI=
X-Face: \}2`P"_@pS86<'EM:'b.Ml}8IuMK"pV"?FReF$'c.S%u9<Q#U*4QO)$l81M`{Q/n
XL'`91kd%N::LG:=*\35JS0prp\VJN^<s"b#bff@fA7]5lJA.jn,x_d%Md$,{.EZ
 by: vallor - Tue, 6 Feb 2024 20:29 UTC

On Tue, 6 Feb 2024 09:15:54 -0500, DFS <nospam@dfs.com> wrote in
<sarwN.44027$9cLc.38825@fx02.iad>:

> On 2/6/2024 12:06 AM, DFS wrote:
>> On 2/5/2024 9:29 PM, Physfitfreak wrote:
>>
>>
>>> No.
>>>
>>> You must understand the problem first. Any code monkey has good
>>> reading comprehension, otherwise they're just useless cause they won't
>>> know what it is that the employer wants them to do.
>>
>>
>> I think this is what you're looking for.
>>
>> For any non-pawn piece, starting at any position on the board, it shows
>> 2 values:
>> * the longest single move available
>> * the sum of all the squares covered by all available moves
>>
>> This board is helpful to look at when trying the program:
>> https://en.wikipedia.org/wiki/Algebraic_notation_(chess)#/media/File:SCD_algebraic_notation.svg
>
>
> You want to see real chess software?
>
> https://stockfishchess.org
> https://en.wikipedia.org/wiki/Stockfish_(chess)
>
> It's GPL3 licensed, command line, and the strongest computer chess
> engine in the world.
>
> The C++ code is only 622KB.

That's what Relf used when we had our chess game a while back.
It's not bad.

--
-v

Re: A Problem To Solve :-)

<17b161c4f98e6e88$45456$1979536$802601b3@news.usenetexpress.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=9269&group=comp.os.linux.advocacy#9269

  copy link   Newsgroups: comp.os.linux.advocacy sci.physics
From: ff@linux.rocks (Farley Flud)
Subject: Re: A Problem To Solve :-)
Newsgroups: comp.os.linux.advocacy,sci.physics
References: <uog01l$mi9n$1@solani.org> <17ac13c4ae353932$16712$1979536$802601b3@news.usenetexpress.com> <uohk04$ndab$2@solani.org> <up4385$11vs3$1@solani.org> <upl2ru$19kpu$1@solani.org> <upq42l$1c60v$1@solani.org> <ups2ld$1d50k$3@solani.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Lines: 93
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!news.usenetexpress.com!not-for-mail
Date: Tue, 06 Feb 2024 21:00:32 +0000
Nntp-Posting-Date: Tue, 06 Feb 2024 21:00:32 +0000
X-Received-Bytes: 3292
Organization: UsenetExpress - www.usenetexpress.com
X-Complaints-To: abuse@usenetexpress.com
Message-Id: <17b161c4f98e6e88$45456$1979536$802601b3@news.usenetexpress.com>
 by: Farley Flud - Tue, 6 Feb 2024 21:00 UTC

On Mon, 5 Feb 2024 19:39:57 -0600, Physfitfreak wrote:

>
> If the drone calculated coordinates of the two points on that line of
> sight as (x_1, y_1) and (x_2, y_2), with x being the distance and y the
> height, then the distance of the target to launch area would have any of
> the two forms below:
>
> x . y - x . y
> 1 2 2 1
> x = -----------------
> y - y
> 2 1
>
> or:
>
>
> /x - x \ . y
> \ 2 1/ 1
> x = x - --------------
> 1 y - y
> 2 1
>
>
> And the Americans in charge being cro-magnons (and Nazi), seeing that
> one of the above formulas can be derived from the other one, were
> assuming it didn't matter which one to use for calculating x-intercept
> for their missiles to hit Houthis targets. But Houthis, being Modern
> Humans, always chose one of the above, and never the other.
>
> So Physfit found out why about half of American missiles narrowly miss
> their targets, while Houthis missiles always hit the targets.
>
> 1- Verify that the two formulas are correct, and algebraically related.
>
> 2- Assuming the drone calculated (x_1, y_1) as (1.31, 4.76) kilometers,
> and (x_2, y_2) as (1.93, 3.24) kilometers, and assuming that for
> shortest computation time, numbers are rounded to three digits in the
> codes imbedded in drones and missiles, then calculate the x-intercept in
> both ways.
>
> 3- Explain which of the two methods is being used by the Houthis, and why.
>

1)

Multiply first term of second expression by 1 = (y2 - y1)/(y2 - y1):

x1 ⋅ (y2 - y1) (x2 - x1) ⋅ y1
────────────── - ──────────────
y2 - y1 y2 - y1

Combine fractions:

x1 ⋅ y2 - x1 ⋅ y1 - x2 ⋅ y1 + x1 ⋅ y1
─────────────────────────────────────
y2 - y1

Cancel terms:

x1 ⋅ y2 - x2 ⋅ y1
─────────────────
y2 - y1

They are equivalent.

2)

Using exact rational arithmetic based on the values given
(e.g. 1.31 = 131/100), the x-intercept for both expressions
is:

x = 3089/950 = 3.25

For an image of this, see this link:

https://postimg.cc/2LS0KRHr

3)

Because of potential catastrophic cancellation in distance coordinates,
the first expression is preferable due to the absence of subtraction
(i.e. x2 - x1) in the numerator. For the record:

x1 ⋅ y2 - x2 ⋅ y1
─────────────────
y2 - y1

Re: A Problem To Solve :-)

<upu96d$1ebje$1@solani.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=9270&group=comp.os.linux.advocacy#9270

  copy link   Newsgroups: comp.os.linux.advocacy sci.physics
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: Physfitfreak@gmail.com (Physfitfreak)
Newsgroups: comp.os.linux.advocacy,sci.physics
Subject: Re: A Problem To Solve :-)
Date: Tue, 6 Feb 2024 15:43:41 -0600
Message-ID: <upu96d$1ebje$1@solani.org>
References: <uog01l$mi9n$1@solani.org>
<17ac13c4ae353932$16712$1979536$802601b3@news.usenetexpress.com>
<uohk04$ndab$2@solani.org> <up4385$11vs3$1@solani.org>
<upl2ru$19kpu$1@solani.org> <upq42l$1c60v$1@solani.org>
<ups2ld$1d50k$3@solani.org>
<17b161c4f98e6e88$45456$1979536$802601b3@news.usenetexpress.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 6 Feb 2024 21:43:41 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1519214"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:8hS71EKYBoytNJaxL2Rs7Yu1ZeM=
Content-Language: en-US
In-Reply-To: <17b161c4f98e6e88$45456$1979536$802601b3@news.usenetexpress.com>
X-User-ID: eJwNx8EBwCAIA8CVQCCFcRTM/iPY+10YFP05Ah4Mct28E0NWtlodlOsfyz5yuLw4gu1Qp22ZEdqsurlNOzkPdF8WZg==
 by: Physfitfreak - Tue, 6 Feb 2024 21:43 UTC

On 2/6/2024 3:00 PM, Farley Flud wrote:
> On Mon, 5 Feb 2024 19:39:57 -0600, Physfitfreak wrote:
>
>>
>> If the drone calculated coordinates of the two points on that line of
>> sight as (x_1, y_1) and (x_2, y_2), with x being the distance and y the
>> height, then the distance of the target to launch area would have any of
>> the two forms below:
>>
>> x . y - x . y
>> 1 2 2 1
>> x = -----------------
>> y - y
>> 2 1
>>
>> or:
>>
>>
>> /x - x \ . y
>> \ 2 1/ 1
>> x = x - --------------
>> 1 y - y
>> 2 1
>>
>>
>> And the Americans in charge being cro-magnons (and Nazi), seeing that
>> one of the above formulas can be derived from the other one, were
>> assuming it didn't matter which one to use for calculating x-intercept
>> for their missiles to hit Houthis targets. But Houthis, being Modern
>> Humans, always chose one of the above, and never the other.
>>
>> So Physfit found out why about half of American missiles narrowly miss
>> their targets, while Houthis missiles always hit the targets.
>>
>> 1- Verify that the two formulas are correct, and algebraically related.
>>
>> 2- Assuming the drone calculated (x_1, y_1) as (1.31, 4.76) kilometers,
>> and (x_2, y_2) as (1.93, 3.24) kilometers, and assuming that for
>> shortest computation time, numbers are rounded to three digits in the
>> codes imbedded in drones and missiles, then calculate the x-intercept in
>> both ways.
>>
>> 3- Explain which of the two methods is being used by the Houthis, and why.
>>
>
> 1)
>
> Multiply first term of second expression by 1 = (y2 - y1)/(y2 - y1):
>
> x1 ⋅ (y2 - y1) (x2 - x1) ⋅ y1
> ────────────── - ──────────────
> y2 - y1 y2 - y1
>
>
> Combine fractions:
>
> x1 ⋅ y2 - x1 ⋅ y1 - x2 ⋅ y1 + x1 ⋅ y1
> ─────────────────────────────────────
> y2 - y1
>
> Cancel terms:
>
> x1 ⋅ y2 - x2 ⋅ y1
> ─────────────────
> y2 - y1
>
>
> They are equivalent.
>
>
> 2)
>
> Using exact rational arithmetic based on the values given
> (e.g. 1.31 = 131/100), the x-intercept for both expressions
> is:
>
> x = 3089/950 = 3.25
>
> For an image of this, see this link:
>
> https://postimg.cc/2LS0KRHr
>
>
> 3)
>
> Because of potential catastrophic cancellation in distance coordinates,
> the first expression is preferable due to the absence of subtraction
> (i.e. x2 - x1) in the numerator. For the record:
>
> x1 ⋅ y2 - x2 ⋅ y1
> ─────────────────
> y2 - y1
>
>

Hmm... But you need to show with actual numbers why in the 3rd part, one
of the expressions is better to use.

Put yourself in the shoes of a computer (inside the drones and missiles)
that rounds every number off (not just the result! But every number it
comes upon in computing the results) to keep only three significant
digits. Follow what happens from begin to end of the computation for
each expression. Then argue why one computed result is better than the
other computed result. Lot's of math lines to write, but all are needed
to see for sure why one result is better than the other.

I may have accidentally chosen the coordinate numbers that don't quite
show the difference, I don't know. I haven't solved this yet (just
concocted it last night). If that's the case, then I'll find coordinate
numbers that will show the difference.

But so far, I'm assuming just about any coordinates measured might work
to show the difference in the results of computations. So I'm asking
that you do that and show it here.

Re: A Problem To Solve :-)

<upuibe$1fdcj$1@solani.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=9272&group=comp.os.linux.advocacy#9272

  copy link   Newsgroups: comp.os.linux.advocacy sci.physics
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: Physfitfreak@gmail.com (Physfitfreak)
Newsgroups: comp.os.linux.advocacy,sci.physics
Subject: Re: A Problem To Solve :-)
Date: Tue, 6 Feb 2024 18:19:59 -0600
Message-ID: <upuibe$1fdcj$1@solani.org>
References: <uog01l$mi9n$1@solani.org>
<17ac13c4ae353932$16712$1979536$802601b3@news.usenetexpress.com>
<uohk04$ndab$2@solani.org> <up4385$11vs3$1@solani.org>
<upl2ru$19kpu$1@solani.org> <upq42l$1c60v$1@solani.org>
<ups2ld$1d50k$3@solani.org>
<17b161c4f98e6e88$45456$1979536$802601b3@news.usenetexpress.com>
<upu96d$1ebje$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 7 Feb 2024 00:19:59 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1553811"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:2o1NisSLkJUT2kydNmPIcdwpzr8=
Content-Language: en-US
In-Reply-To: <upu96d$1ebje$1@solani.org>
X-User-ID: eJwFwQkBA0EIA0BLZYFA5fDFv4SbcYVgwuAwp1MelciMXk0Jxt4Vb+f1ISvPYHXGZfxbenTS9ycvOFJm+AB8YxaU
 by: Physfitfreak - Wed, 7 Feb 2024 00:19 UTC

On 2/6/2024 3:43 PM, Physfitfreak wrote:
> On 2/6/2024 3:00 PM, Farley Flud wrote:
>> On Mon, 5 Feb 2024 19:39:57 -0600, Physfitfreak wrote:
>>
>>>
>
> Put yourself in the shoes of a computer (inside the drones and missiles)
> that rounds every number off (not just the result! But every number it
> comes upon in computing the results) to keep only three significant
> digits. Follow what happens from begin to end of the computation for
> each expression. Then argue why one computed result is better than the
> other computed result. Lot's of math lines to write, but all are needed
> to see for sure why one result is better than the other.
>
> I may have accidentally chosen the coordinate numbers that don't quite
> show the difference, I don't know. I haven't solved this yet (just
> concocted it last night). If that's the case, then I'll find coordinate
> numbers that will show the difference.
>
> But so far, I'm assuming just about any coordinates measured might work
> to show the difference in the results of computations. So I'm asking
> that you do that and show it here.
>
>
>

I shouldn't have said, "three significant digits". Significant digit
concept is somewhat different.

Ok, let's talk more accurately.

Machine numbers are in binary form. But these machine numbers can be
expressed in decimal machine numbers like:

0.d_1d_2 ... d_k x 10^n

, where d_1 digit is _not_ zero, and d_2, d_3 ... d_k digits can each be
an integer from zero to 9.

Since this example has k digits after the decimal point, it is called
k-digit decimal machine number.

The decimal machine number form is not exactly equal to the binary form
that machine handles, and the difference has to do with the machine
epsilon. But nevertheless, the two form are very closely the same number.

In this problem, I'm assuming the computers on missiles work on such
binary numbers that have 3-digit decimal machine numbers. And forget the
binary form of them, cause this problem is not about the machine
epsilon. Just assume that the computers deal with decimal machine
numbers and k=3. So for example the number

0.0033169 x 10^4

is rounded off to

0.332 x 10^2

So depending on how your code computes the two given expressons, any
time the computer handles a number, if it is not already in 3-digit
decimal machine number form, it converts it to 3-digit machine number
before using it for computations.

Re: A Problem To Solve :-)

<upuv0a$1fjcp$1@solani.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=9274&group=comp.os.linux.advocacy#9274

  copy link   Newsgroups: comp.os.linux.advocacy sci.physics
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: Physfitfreak@gmail.com (Physfitfreak)
Newsgroups: comp.os.linux.advocacy,sci.physics
Subject: Re: A Problem To Solve :-)
Date: Tue, 6 Feb 2024 21:55:55 -0600
Message-ID: <upuv0a$1fjcp$1@solani.org>
References: <uog01l$mi9n$1@solani.org>
<17ac13c4ae353932$16712$1979536$802601b3@news.usenetexpress.com>
<uohk04$ndab$2@solani.org> <up4385$11vs3$1@solani.org>
<upl2ru$19kpu$1@solani.org> <upq42l$1c60v$1@solani.org>
<ups2ld$1d50k$3@solani.org>
<17b161c4f98e6e88$45456$1979536$802601b3@news.usenetexpress.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 7 Feb 2024 03:55:54 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1559961"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:I3Nljy1vA4BNgE+/3ZnS0PwpCBk=
In-Reply-To: <17b161c4f98e6e88$45456$1979536$802601b3@news.usenetexpress.com>
X-User-ID: eJwFwQEBACAIA7BKIvxoHOXSP4IbnMbKIBhodNvbLfkbZ6XWifu2q0Cp/b6AT5/CkozRlRs15gV9BPNYfH3gFck=
Content-Language: en-US
 by: Physfitfreak - Wed, 7 Feb 2024 03:55 UTC

On 2/6/2024 3:00 PM, Farley Flud wrote:
> On Mon, 5 Feb 2024 19:39:57 -0600, Physfitfreak wrote:
>
>>
>> If the drone calculated coordinates of the two points on that line of
>> sight as (x_1, y_1) and (x_2, y_2), with x being the distance and y the
>> height, then the distance of the target to launch area would have any of
>> the two forms below:
>>
>> x . y - x . y
>> 1 2 2 1
>> x = -----------------
>> y - y
>> 2 1
>>
>> or:
>>
>>
>> /x - x \ . y
>> \ 2 1/ 1
>> x = x - --------------
>> 1 y - y
>> 2 1
>>
>>
>> And the Americans in charge being cro-magnons (and Nazi), seeing that
>> one of the above formulas can be derived from the other one, were
>> assuming it didn't matter which one to use for calculating x-intercept
>> for their missiles to hit Houthis targets. But Houthis, being Modern
>> Humans, always chose one of the above, and never the other.
>>
>> So Physfit found out why about half of American missiles narrowly miss
>> their targets, while Houthis missiles always hit the targets.
>>
>> 1- Verify that the two formulas are correct, and algebraically related.
>>
>> 2- Assuming the drone calculated (x_1, y_1) as (1.31, 4.76) kilometers,
>> and (x_2, y_2) as (1.93, 3.24) kilometers, and assuming that for
>> shortest computation time, numbers are rounded to three digits in the
>> codes imbedded in drones and missiles, then calculate the x-intercept in
>> both ways.
>>
>> 3- Explain which of the two methods is being used by the Houthis, and why.
>>
>
> 1)
>
> Multiply first term of second expression by 1 = (y2 - y1)/(y2 - y1):
>
> x1 ⋅ (y2 - y1) (x2 - x1) ⋅ y1
> ────────────── - ──────────────
> y2 - y1 y2 - y1
>
>
> Combine fractions:
>
> x1 ⋅ y2 - x1 ⋅ y1 - x2 ⋅ y1 + x1 ⋅ y1
> ─────────────────────────────────────
> y2 - y1
>
> Cancel terms:
>
> x1 ⋅ y2 - x2 ⋅ y1
> ─────────────────
> y2 - y1
>
>
> They are equivalent.
>
>
> 2)
>
> Using exact rational arithmetic based on the values given
> (e.g. 1.31 = 131/100), the x-intercept for both expressions
> is:
>
> x = 3089/950 = 3.25
>
> For an image of this, see this link:
>
> https://postimg.cc/2LS0KRHr
>
>
> 3)
>
> Because of potential catastrophic cancellation in distance coordinates,
> the first expression is preferable due to the absence of subtraction
> (i.e. x2 - x1) in the numerator. For the record:
>
> x1 ⋅ y2 - x2 ⋅ y1
> ─────────────────
> y2 - y1
>
>

Your reasoning is correct of course, but if you had numerically
calculated the relative errors and compared them to each other, it would
be more convincing.

The second expression, as you said, has a potential problem. If the
drone when recording its own coordinates two times, is very far from the
launch site, then x_1 and x_2 will be represented in 3-digit decimal
machine numbers by two numbers very close to each other, and their
difference when rounded produces a number with lower than 3 significant
digits. If we calculate the relative error compared to case of using
exact numbers (no rounding off), we see that it is much larger than same
relative errors for closer distances to launch site.

So, subtracting two large numbers that are very close to each other is
like asking for failure if you have it done by a machine.

But using the first expression, the closeness of the numbers x_1 and x_2
gets to a good degree ineffective because each is multiplied by the
other point's associated height _before_ subtraction is performed. So,
the difference between first and second terms in the numerator gets much
larger, causing it to lose fewer significant digits when rounded.

That's why Houthis kicked ass :-)

Re: A Problem To Solve :-)

<upuvkh$1fjcp$2@solani.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=9275&group=comp.os.linux.advocacy#9275

  copy link   Newsgroups: comp.os.linux.advocacy sci.physics
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: Physfitfreak@gmail.com (Physfitfreak)
Newsgroups: comp.os.linux.advocacy,sci.physics
Subject: Re: A Problem To Solve :-)
Date: Tue, 6 Feb 2024 22:06:42 -0600
Message-ID: <upuvkh$1fjcp$2@solani.org>
References: <uog01l$mi9n$1@solani.org>
<17ac13c4ae353932$16712$1979536$802601b3@news.usenetexpress.com>
<uohk04$ndab$2@solani.org> <up4385$11vs3$1@solani.org>
<upl2ru$19kpu$1@solani.org> <upq42l$1c60v$1@solani.org>
<ups2ld$1d50k$3@solani.org>
<17b161c4f98e6e88$45456$1979536$802601b3@news.usenetexpress.com>
<upuv0a$1fjcp$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 7 Feb 2024 04:06:41 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1559961"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:ov2HfmLZo11+/5BGI+3JfLzaucA=
In-Reply-To: <upuv0a$1fjcp$1@solani.org>
X-User-ID: eJwFwQEBACAIA7BKXuDXOILSP4JbGMGSM+jR0Xo2EStdl1cPp22cYLVLQUxwX6lg5dgDMwtbK1W9Ev3OBzb9FQk=
Content-Language: en-US
 by: Physfitfreak - Wed, 7 Feb 2024 04:06 UTC

On 2/6/2024 9:55 PM, Physfitfreak wrote:
> On 2/6/2024 3:00 PM, Farley Flud wrote:
>> On Mon, 5 Feb 2024 19:39:57 -0600, Physfitfreak wrote:
>>
>>>
>>> If the drone calculated coordinates of the two points on that line of
>>> sight as (x_1, y_1) and (x_2, y_2), with x being the distance and y the
>>> height, then the distance of the target to launch area would have any of
>>> the two forms below:
>>>
>>>       x  . y  - x  . y
>>>        1    2    2    1
>>> x = -----------------
>>>            y  - y
>>>             2    1
>>>
>>> or:
>>>
>>>
>>>            /x  - x \ . y
>>>            \ 2    1/    1
>>> x = x  - --------------
>>>        1       y  - y
>>>                 2    1
>>>
>>>
>>> And the Americans in charge being cro-magnons (and Nazi), seeing that
>>> one of the above formulas can be derived from the other one, were
>>> assuming it didn't matter which one to use for calculating x-intercept
>>> for their missiles to hit Houthis targets. But Houthis, being Modern
>>> Humans, always chose one of the above, and never the other.
>>>
>>> So Physfit found out why about half of American missiles narrowly miss
>>> their targets, while Houthis missiles always hit the targets.
>>>
>>> 1- Verify that the two formulas are correct, and algebraically related.
>>>
>>> 2- Assuming the drone calculated (x_1, y_1) as (1.31, 4.76) kilometers,
>>> and (x_2, y_2) as (1.93, 3.24) kilometers, and assuming that for
>>> shortest computation time, numbers are rounded to three digits in the
>>> codes imbedded in drones and missiles, then calculate the x-intercept in
>>> both ways.
>>>
>>> 3- Explain which of the two methods is being used by the Houthis, and
>>> why.
>>>
>>
>> 1)
>>
>> Multiply first term of second expression by 1 = (y2 - y1)/(y2 - y1):
>>
>> x1 ⋅ (y2 - y1)   (x2 - x1) ⋅ y1
>> ────────────── - ──────────────
>>      y2 - y1          y2 - y1
>>
>>
>> Combine fractions:
>>
>> x1 ⋅ y2 - x1 ⋅ y1 - x2 ⋅ y1 + x1 ⋅ y1
>> ─────────────────────────────────────
>>                 y2 - y1
>>
>> Cancel terms:
>>
>> x1 ⋅ y2 - x2 ⋅ y1
>> ─────────────────
>>       y2 - y1
>>
>>
>> They are equivalent.
>>
>>
>> 2)
>>
>> Using exact rational arithmetic based on the values given
>> (e.g. 1.31 = 131/100), the x-intercept for both expressions
>> is:
>>
>> x = 3089/950 = 3.25
>>
>> For an image of this, see this link:
>>
>> https://postimg.cc/2LS0KRHr
>>
>>
>> 3)
>>
>> Because of potential catastrophic cancellation in distance coordinates,
>> the first expression is preferable due to the absence of subtraction
>> (i.e. x2 - x1) in the numerator.  For the record:
>>
>> x1 ⋅ y2 - x2 ⋅ y1
>> ─────────────────
>>       y2 - y1
>>
>>
>
>
> Your reasoning is correct of course, but if you had numerically
> calculated the relative errors and compared them to each other, it would
> be more convincing.
>
> The second expression, as you said, has a potential problem. If the
> drone when recording its own coordinates two times, is very far from the
> launch site, then x_1 and x_2 will be represented in 3-digit decimal
> machine numbers by two numbers very close to each other, and their
> difference when rounded produces a number with lower than 3 significant
> digits. If we calculate the relative error compared to case of using
> exact numbers (no rounding off), we see that it is much larger than same
> relative errors for closer distances to launch site.
>
> So, subtracting two large numbers that are very close to each other is
> like asking for failure if you have it done by a machine.
>
> But using the first expression, the closeness of the numbers x_1 and x_2
> gets to a good degree ineffective because each is multiplied by the
> other point's associated height _before_ subtraction is performed. So,
> the difference between first and second terms in the numerator gets much
> larger, causing it to lose fewer significant digits when rounded.
>
> That's why Houthis kicked ass :-)
>
>
>
>

The error in computation of second expression is bad enough when two
large and very close numbers are subtracted. In this particular case
this error is yet magnified by a factor of y_1 ... making it much larger.

Re: A Problem To Solve :-)

<SuMwN.48235$mMj7.43662@fx01.iad>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=9281&group=comp.os.linux.advocacy#9281

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx01.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Betterbird (Windows)
Subject: Re: A Problem To Solve :-)
Newsgroups: comp.os.linux.advocacy
References: <uog01l$mi9n$1@solani.org>
<17ac13c4ae353932$16712$1979536$802601b3@news.usenetexpress.com>
<uohk04$ndab$2@solani.org> <up4385$11vs3$1@solani.org>
<upl2ru$19kpu$1@solani.org> <uppf2e$1bq1i$1@solani.org>
<BtYvN.258793$Ama9.10754@fx12.iad> <upptbh$1c2oi$1@solani.org>
<PbewN.54194$Iswd.37220@fx05.iad> <NiewN.54195$Iswd.40483@fx05.iad>
<uprv8a$1d50k$2@solani.org> <TzgwN.298224$Wp_8.39947@fx17.iad>
<ups5io$1d50k$4@solani.org> <i7jwN.204289$yEgf.184650@fx09.iad>
<sarwN.44027$9cLc.38825@fx02.iad> <upu4qm$11m3c$1@dont-email.me>
Content-Language: en-US
From: nospam@dfs.com (DFS)
In-Reply-To: <upu4qm$11m3c$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 48
Message-ID: <SuMwN.48235$mMj7.43662@fx01.iad>
X-Complaints-To: abuse@blocknews.net
NNTP-Posting-Date: Wed, 07 Feb 2024 14:31:14 UTC
Organization: blocknews - www.blocknews.net
Date: Wed, 7 Feb 2024 09:31:17 -0500
X-Received-Bytes: 2578
 by: DFS - Wed, 7 Feb 2024 14:31 UTC

On 2/6/2024 3:29 PM, vallor wrote:
> On Tue, 6 Feb 2024 09:15:54 -0500, DFS <nospam@dfs.com> wrote in
> <sarwN.44027$9cLc.38825@fx02.iad>:
>
>> On 2/6/2024 12:06 AM, DFS wrote:
>>> On 2/5/2024 9:29 PM, Physfitfreak wrote:
>>>
>>>
>>>> No.
>>>>
>>>> You must understand the problem first. Any code monkey has good
>>>> reading comprehension, otherwise they're just useless cause they won't
>>>> know what it is that the employer wants them to do.
>>>
>>>
>>> I think this is what you're looking for.
>>>
>>> For any non-pawn piece, starting at any position on the board, it shows
>>> 2 values:
>>> * the longest single move available
>>> * the sum of all the squares covered by all available moves
>>>
>>> This board is helpful to look at when trying the program:
>>> https://en.wikipedia.org/wiki/Algebraic_notation_(chess)#/media/File:SCD_algebraic_notation.svg
>>
>>
>> You want to see real chess software?
>>
>> https://stockfishchess.org
>> https://en.wikipedia.org/wiki/Stockfish_(chess)
>>
>> It's GPL3 licensed, command line, and the strongest computer chess
>> engine in the world.
>>
>> The C++ code is only 622KB.
>
> That's what Relf used when we had our chess game a while back.

Were you using your wet brain?

> It's not bad.

Bit of an understatement: it's the world's strongest computer chess
engine. Totally dominant. Scroll down the wiki page and see.

Re: A Problem To Solve :-)

<uq0has$1gdsl$1@solani.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=9294&group=comp.os.linux.advocacy#9294

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: Physfitfreak@gmail.com (Physfitfreak)
Newsgroups: comp.os.linux.advocacy
Subject: Re: A Problem To Solve :-)
Date: Wed, 7 Feb 2024 12:14:52 -0600
Message-ID: <uq0has$1gdsl$1@solani.org>
References: <uog01l$mi9n$1@solani.org>
<17ac13c4ae353932$16712$1979536$802601b3@news.usenetexpress.com>
<uohk04$ndab$2@solani.org> <up4385$11vs3$1@solani.org>
<upl2ru$19kpu$1@solani.org> <uppf2e$1bq1i$1@solani.org>
<BtYvN.258793$Ama9.10754@fx12.iad> <upptbh$1c2oi$1@solani.org>
<PbewN.54194$Iswd.37220@fx05.iad> <NiewN.54195$Iswd.40483@fx05.iad>
<uprv8a$1d50k$2@solani.org> <TzgwN.298224$Wp_8.39947@fx17.iad>
<ups5io$1d50k$4@solani.org> <i7jwN.204289$yEgf.184650@fx09.iad>
<sarwN.44027$9cLc.38825@fx02.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 7 Feb 2024 18:14:52 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1587093"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:iozQX13d4spGB/zvdP/jP18g9EA=
In-Reply-To: <sarwN.44027$9cLc.38825@fx02.iad>
X-User-ID: eJwNy7kBwCAMA8CVkN94HIPw/iOE6qpzDcRJCw/z8VlebNAwqYUTtxPESLCU177dUBxtiTXJepKrxeTVLV0/UQgVeQ==
Content-Language: en-US
 by: Physfitfreak - Wed, 7 Feb 2024 18:14 UTC

On 2/6/2024 8:15 AM, DFS wrote:
> You want to see real chess software?

The Radio Shack electronic chessboard I've had since 1980s still beats
me every time at level 7 and higher. It has 9 levels of play.

Who needs a better one :) You? I don't think so.

Re: A Problem To Solve :-)

<a59eb87e-0b8e-48b4-ae45-65432f0591ban@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=9296&group=comp.os.linux.advocacy#9296

  copy link   Newsgroups: comp.os.linux.advocacy
X-Received: by 2002:ac8:5bcd:0:b0:42c:42fc:34a7 with SMTP id b13-20020ac85bcd000000b0042c42fc34a7mr107488qtb.9.1707330984217;
Wed, 07 Feb 2024 10:36:24 -0800 (PST)
X-Forwarded-Encrypted: i=1; AJvYcCVTl/YBbjkVFyTjvohEKChXTf9X6JJwR7SngZmNchBAEiXiNWSj5+A+m3sluSniliKZPSUIZbRzqNG5MEmXamDDJpC0OH0uA1aSW2r71xxbQAaI1QIhM89h
X-Received: by 2002:a05:622a:289:b0:42c:4371:8b1a with SMTP id
z9-20020a05622a028900b0042c43718b1amr133330qtw.2.1707330983996; Wed, 07 Feb
2024 10:36:23 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.linux.advocacy
Date: Wed, 7 Feb 2024 10:36:23 -0800 (PST)
In-Reply-To: <i7jwN.204289$yEgf.184650@fx09.iad>
Injection-Info: google-groups.googlegroups.com; posting-host=67.149.153.65; posting-account=VHdvsQoAAAB0SHzFot62NmvVr15syA7-
NNTP-Posting-Host: 67.149.153.65
References: <uog01l$mi9n$1@solani.org> <17ac13c4ae353932$16712$1979536$802601b3@news.usenetexpress.com>
<uohk04$ndab$2@solani.org> <up4385$11vs3$1@solani.org> <upl2ru$19kpu$1@solani.org>
<uppf2e$1bq1i$1@solani.org> <BtYvN.258793$Ama9.10754@fx12.iad>
<upptbh$1c2oi$1@solani.org> <PbewN.54194$Iswd.37220@fx05.iad>
<NiewN.54195$Iswd.40483@fx05.iad> <uprv8a$1d50k$2@solani.org>
<TzgwN.298224$Wp_8.39947@fx17.iad> <ups5io$1d50k$4@solani.org> <i7jwN.204289$yEgf.184650@fx09.iad>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a59eb87e-0b8e-48b4-ae45-65432f0591ban@googlegroups.com>
Subject: Re: A Problem To Solve :-)
From: lordiemassa@gmail.com (Lord Master)
Injection-Date: Wed, 07 Feb 2024 18:36:24 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Lord Master - Wed, 7 Feb 2024 18:36 UTC

On Tuesday, February 6, 2024 at 12:06:27 AM UTC-5, DFS wrote:
> //Code assumes one piece cannot block the other.
>
> [snip cesspool of ridiculous code]
>

The code sub-monkey does it yet again.

The entire long-winded and useless junk that he presents amounts to nothing
more than the repetative determination of known CONSTANTS. That's not what
programming is about.

In C programming, known CONSTANTS are best dealt with using LUTs, or look up tables.

For every chess piece there is a known number of moves for a given square. These
known values are entered into a 64-byte LUT, one for each piece. Then, given the piece
and location, the number of moves is quickly determined.

The VARIABLE quantity here is the location of the other piece and thus its effect on
the number of moves. This is the actual problem to be solved.

It can be solved using radii. Each piece has a number of radii on which a blocking
piece can be located. Just determine which radii for a given piece is occupied by
the blocking piece and then subtract the appropriate quantity from the LUT total.

There. I have solved the REAL PROBLEM and the REAL PROBLEM is not the determination
of the total number of possible moves.

Now just give this solution to the code monkeys and let them screech.

But not this sub-monkey. He couldn't code his way out of a paper bag -- a wet paper
bag.

Ha, ha, ha, ha, ha, ha, ha, ha!

Re: A Problem To Solve :-)

<uq11jm$1fnoq$1@solani.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=9300&group=comp.os.linux.advocacy#9300

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: Physfitfreak@gmail.com (Physfitfreak)
Newsgroups: comp.os.linux.advocacy
Subject: Re: A Problem To Solve :-)
Date: Wed, 7 Feb 2024 16:52:39 -0600
Message-ID: <uq11jm$1fnoq$1@solani.org>
References: <uog01l$mi9n$1@solani.org>
<17ac13c4ae353932$16712$1979536$802601b3@news.usenetexpress.com>
<uohk04$ndab$2@solani.org> <up4385$11vs3$1@solani.org>
<upl2ru$19kpu$1@solani.org> <uppf2e$1bq1i$1@solani.org>
<BtYvN.258793$Ama9.10754@fx12.iad> <upptbh$1c2oi$1@solani.org>
<PbewN.54194$Iswd.37220@fx05.iad> <NiewN.54195$Iswd.40483@fx05.iad>
<uprv8a$1d50k$2@solani.org> <TzgwN.298224$Wp_8.39947@fx17.iad>
<ups5io$1d50k$4@solani.org> <i7jwN.204289$yEgf.184650@fx09.iad>
<a59eb87e-0b8e-48b4-ae45-65432f0591ban@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 7 Feb 2024 22:52:38 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1564442"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:fdUlOyYOi1+uaxlJe++bvE94BJI=
X-User-ID: eJwFwYEBwCAIA7CXFGiVc7CM/09YAuemThAMDEalpUctv7Fxvwi/nF6qnsieQmdZkgNjvQ1vK3sJ8SgYP2hGFcI=
Content-Language: en-US
In-Reply-To: <a59eb87e-0b8e-48b4-ae45-65432f0591ban@googlegroups.com>
 by: Physfitfreak - Wed, 7 Feb 2024 22:52 UTC

On 2/7/2024 12:36 PM, Lord Master wrote:
> On Tuesday, February 6, 2024 at 12:06:27 AM UTC-5, DFS wrote:
>> //Code assumes one piece cannot block the other.
>>
>> [snip cesspool of ridiculous code]
>>
>
> The code sub-monkey does it yet again.
>
> The entire long-winded and useless junk that he presents amounts to nothing
> more than the repetative determination of known CONSTANTS. That's not what
> programming is about.
>
> In C programming, known CONSTANTS are best dealt with using LUTs, or look up tables.
>
> For every chess piece there is a known number of moves for a given square. These
> known values are entered into a 64-byte LUT, one for each piece. Then, given the piece
> and location, the number of moves is quickly determined.
>
> The VARIABLE quantity here is the location of the other piece and thus its effect on
> the number of moves. This is the actual problem to be solved.
>
> It can be solved using radii. Each piece has a number of radii on which a blocking
> piece can be located. Just determine which radii for a given piece is occupied by
> the blocking piece and then subtract the appropriate quantity from the LUT total.
>
> There. I have solved the REAL PROBLEM and the REAL PROBLEM is not the determination
> of the total number of possible moves.
>
> Now just give this solution to the code monkeys and let them screech.
>
> But not this sub-monkey. He couldn't code his way out of a paper bag -- a wet paper
> bag.
>
> Ha, ha, ha, ha, ha, ha, ha, ha!
>

Look up table in C programming is a nice feature, but I'm for now
limited to qbasic, so I'll just use a arrays for that.

You went over only part of the problem.

The move can come from one piece or the other. So the number of all
different moves by first piece (minus what the second piece has blocked)
should be added to the number of all different moves by the second piece
as well (minus what the first piece has blocked). And this is for just
one instance of the position of first and second pieces on the board. So
the problem isn't over yet.

One needs to account for any position of the first piece on board (minus
1 to account for the occupied square by second piece) and any position
of the second piece (minus 1).

In all these situations the max number of possible moves should be
computed, so regardless of where the two pieces happen to land, and what
the two pieces happen to be, the max number be at hand, so Holaku can
bring with him that many coins, to never run short of them, and never
bring one too many.

This is an interesting coding problem :)

The solution given to Holaku will look like a 5 by 5 square table on one
page, with different chess pieces (except pawn) listed along top row and
first column. And in each square on this table, the number of coins that
Holaku should take with him is written.

So the king decides, say, to take a bishop and a knight with him, he
looks up the table and finds out how many coins he should take along.

Code this! Problem is not solved until it's coded. Then tabulate it and
show it here so I can verify your code got the numbers correct.

Re: A Problem To Solve :-)

<7H3xN.87802$m4d.49958@fx43.iad>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=9325&group=comp.os.linux.advocacy#9325

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx43.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Betterbird (Windows)
Subject: Re: A Problem To Solve :-)
Newsgroups: comp.os.linux.advocacy
References: <uog01l$mi9n$1@solani.org>
<17ac13c4ae353932$16712$1979536$802601b3@news.usenetexpress.com>
<uohk04$ndab$2@solani.org> <up4385$11vs3$1@solani.org>
<upl2ru$19kpu$1@solani.org> <uppf2e$1bq1i$1@solani.org>
<BtYvN.258793$Ama9.10754@fx12.iad> <upptbh$1c2oi$1@solani.org>
<PbewN.54194$Iswd.37220@fx05.iad> <NiewN.54195$Iswd.40483@fx05.iad>
<uprv8a$1d50k$2@solani.org> <TzgwN.298224$Wp_8.39947@fx17.iad>
<ups5io$1d50k$4@solani.org> <i7jwN.204289$yEgf.184650@fx09.iad>
<a59eb87e-0b8e-48b4-ae45-65432f0591ban@googlegroups.com>
Content-Language: en-US
From: nospam@dfs.com (DFS)
In-Reply-To: <a59eb87e-0b8e-48b4-ae45-65432f0591ban@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 34
Message-ID: <7H3xN.87802$m4d.49958@fx43.iad>
X-Complaints-To: abuse@blocknews.net
NNTP-Posting-Date: Thu, 08 Feb 2024 12:21:23 UTC
Organization: blocknews - www.blocknews.net
Date: Thu, 8 Feb 2024 07:21:24 -0500
X-Received-Bytes: 2673
 by: DFS - Thu, 8 Feb 2024 12:21 UTC

On 2/7/2024 1:36 PM, Lying Larry wrote:

> On Tuesday, February 6, 2024 at 12:06:27 AM UTC-5, DFS wrote:
>> //Code assumes one piece cannot block the other.

> Each piece has a number of radii on which a blocking
> piece can be located. Just determine which radii for a given piece is occupied by
> the blocking piece and then subtract the appropriate quantity from the LUT total.
>
> There. I have solved the REAL PROBLEM
* YOU didn't solve anything. That was solved decades ago by
good programmers and chess players.
* YOU regurgitated some solution from a chess/programming forum.
* YOU don't know how to play chess.
* YOU are a programming failure.
* YOU are afraid to post your code, but not to criticize others'.
* YOU dropped an entire college class because YOU couldn't handle
bowling scoring (which takes all of 5 minutes to learn). So to think
YOU could write any meaningful, original chess code or provide novel
solutions to chess programming is laughable in the extreme.
* YOU cannot get YOUR lies and plagiarism and faux-expertise by me.

> and the REAL PROBLEM is not the determination
> of the total number of possible moves.

There are LOTS of "REAL PROBLEMS" in chess. Total number of possible
squares covered by all possible moves was the problem SandChimp asked
(as far as I can tell. The weirdo wrapped his problem in a story with
gold coins and clairvoyant sultans and 72 virgins and hookah smoke
wafting all around).

Re: A Problem To Solve :-)

<ba9187b5-b1ec-4c31-89db-ba02756dfe89n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=9328&group=comp.os.linux.advocacy#9328

  copy link   Newsgroups: comp.os.linux.advocacy
X-Received: by 2002:ac8:5e09:0:b0:42c:41b9:16a with SMTP id h9-20020ac85e09000000b0042c41b9016amr336261qtx.2.1707395912206;
Thu, 08 Feb 2024 04:38:32 -0800 (PST)
X-Received: by 2002:a05:622a:308:b0:42c:4419:5ba0 with SMTP id
q8-20020a05622a030800b0042c44195ba0mr279013qtw.9.1707395911970; Thu, 08 Feb
2024 04:38:31 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.linux.advocacy
Date: Thu, 8 Feb 2024 04:38:31 -0800 (PST)
In-Reply-To: <a59eb87e-0b8e-48b4-ae45-65432f0591ban@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=67.149.153.65; posting-account=VHdvsQoAAAB0SHzFot62NmvVr15syA7-
NNTP-Posting-Host: 67.149.153.65
References: <uog01l$mi9n$1@solani.org> <17ac13c4ae353932$16712$1979536$802601b3@news.usenetexpress.com>
<uohk04$ndab$2@solani.org> <up4385$11vs3$1@solani.org> <upl2ru$19kpu$1@solani.org>
<uppf2e$1bq1i$1@solani.org> <BtYvN.258793$Ama9.10754@fx12.iad>
<upptbh$1c2oi$1@solani.org> <PbewN.54194$Iswd.37220@fx05.iad>
<NiewN.54195$Iswd.40483@fx05.iad> <uprv8a$1d50k$2@solani.org>
<TzgwN.298224$Wp_8.39947@fx17.iad> <ups5io$1d50k$4@solani.org>
<i7jwN.204289$yEgf.184650@fx09.iad> <a59eb87e-0b8e-48b4-ae45-65432f0591ban@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ba9187b5-b1ec-4c31-89db-ba02756dfe89n@googlegroups.com>
Subject: Re: A Problem To Solve :-)
From: lordiemassa@gmail.com (Lord Master)
Injection-Date: Thu, 08 Feb 2024 12:38:32 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 12
 by: Lord Master - Thu, 8 Feb 2024 12:38 UTC

On Wednesday, February 7, 2024 at 1:36:26 PM UTC-5, Lord Master wrote:
>
> For every chess piece there is a known number of moves for a given square.. These
> known values are entered into a 64-byte LUT, one for each piece.
>

Oops. 'Nuther mistake.

I ferget that the chessboard has a four-fold rotational symmetry and thus
only 16 entries are necessary to populate the LUT.

Re: A Problem To Solve :-)

<3272c0d1-1ff3-48df-adb9-8ec06652337dn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=9329&group=comp.os.linux.advocacy#9329

  copy link   Newsgroups: comp.os.linux.advocacy
X-Forwarded-Encrypted: i=1; AJvYcCXYQ92TCDiDsGB3Y44LhSHBYjOimDZZBzDuT1IEyDWuMdj38HcIXH1Ze9t0dmZysm1SGJkS7Ab71+NTBWynIeO9Ig14M8aOGu7gPT8oq1nWDa3Z5a9Q+Ygo3ME=
X-Received: by 2002:a05:622a:1346:b0:42c:49d6:1904 with SMTP id w6-20020a05622a134600b0042c49d61904mr136811qtk.10.1707396049747;
Thu, 08 Feb 2024 04:40:49 -0800 (PST)
X-Forwarded-Encrypted: i=1; AJvYcCWNHCIeE6oCinzCWTqSGKv4qiZHCAfcvM0Zs83i/WrRijHqE42LHhAQjnKvQix5QnjMntnAwJwzAjFp77T7L5RnTMipg0GFuuhSEZFseGmZn0G75FODbPaR
X-Received: by 2002:ac8:4e4c:0:b0:42c:3616:61b3 with SMTP id
e12-20020ac84e4c000000b0042c361661b3mr656777qtw.6.1707396049549; Thu, 08 Feb
2024 04:40:49 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.cmpublishers.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.linux.advocacy
Date: Thu, 8 Feb 2024 04:40:49 -0800 (PST)
In-Reply-To: <uq11jm$1fnoq$1@solani.org>
Injection-Info: google-groups.googlegroups.com; posting-host=67.149.153.65; posting-account=VHdvsQoAAAB0SHzFot62NmvVr15syA7-
NNTP-Posting-Host: 67.149.153.65
References: <uog01l$mi9n$1@solani.org> <17ac13c4ae353932$16712$1979536$802601b3@news.usenetexpress.com>
<uohk04$ndab$2@solani.org> <up4385$11vs3$1@solani.org> <upl2ru$19kpu$1@solani.org>
<uppf2e$1bq1i$1@solani.org> <BtYvN.258793$Ama9.10754@fx12.iad>
<upptbh$1c2oi$1@solani.org> <PbewN.54194$Iswd.37220@fx05.iad>
<NiewN.54195$Iswd.40483@fx05.iad> <uprv8a$1d50k$2@solani.org>
<TzgwN.298224$Wp_8.39947@fx17.iad> <ups5io$1d50k$4@solani.org>
<i7jwN.204289$yEgf.184650@fx09.iad> <a59eb87e-0b8e-48b4-ae45-65432f0591ban@googlegroups.com>
<uq11jm$1fnoq$1@solani.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3272c0d1-1ff3-48df-adb9-8ec06652337dn@googlegroups.com>
Subject: Re: A Problem To Solve :-)
From: lordiemassa@gmail.com (Lord Master)
Injection-Date: Thu, 08 Feb 2024 12:40:49 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2198
 by: Lord Master - Thu, 8 Feb 2024 12:40 UTC

On Wednesday, February 7, 2024 at 5:52:42 PM UTC-5, Physfitfreak wrote:
>
> This is an interesting coding problem :)
>

I pass. Games always bore me and if I am bored it is impossible for my brain
to become engaged.

Re: A Problem To Solve :-)

<z_3xN.87804$m4d.68618@fx43.iad>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=9330&group=comp.os.linux.advocacy#9330

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.nobody.at!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx43.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Betterbird (Windows)
Subject: Re: A Problem To Solve :-)
Newsgroups: comp.os.linux.advocacy
References: <uog01l$mi9n$1@solani.org>
<17ac13c4ae353932$16712$1979536$802601b3@news.usenetexpress.com>
<uohk04$ndab$2@solani.org> <up4385$11vs3$1@solani.org>
<upl2ru$19kpu$1@solani.org> <uppf2e$1bq1i$1@solani.org>
<BtYvN.258793$Ama9.10754@fx12.iad> <upptbh$1c2oi$1@solani.org>
<PbewN.54194$Iswd.37220@fx05.iad> <NiewN.54195$Iswd.40483@fx05.iad>
<uprv8a$1d50k$2@solani.org> <TzgwN.298224$Wp_8.39947@fx17.iad>
<ups5io$1d50k$4@solani.org> <i7jwN.204289$yEgf.184650@fx09.iad>
<a59eb87e-0b8e-48b4-ae45-65432f0591ban@googlegroups.com>
<uq11jm$1fnoq$1@solani.org>
Content-Language: en-US
From: nospam@dfs.com (DFS)
In-Reply-To: <uq11jm$1fnoq$1@solani.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 96
Message-ID: <z_3xN.87804$m4d.68618@fx43.iad>
X-Complaints-To: abuse@blocknews.net
NNTP-Posting-Date: Thu, 08 Feb 2024 12:42:07 UTC
Organization: blocknews - www.blocknews.net
Date: Thu, 8 Feb 2024 07:42:08 -0500
X-Received-Bytes: 4892
 by: DFS - Thu, 8 Feb 2024 12:42 UTC

On 2/7/2024 5:52 PM, Physfitfreak wrote:
> On 2/7/2024 12:36 PM, Lord Master wrote:
>> On Tuesday, February 6, 2024 at 12:06:27 AM UTC-5, DFS wrote:
>>> //Code assumes one piece cannot block the other.
>>>
>>> [snip cesspool of ridiculous code]
>>>
>>
>> The code sub-monkey does it yet again.
>>
>> The entire long-winded and useless junk that he presents amounts to
>> nothing
>> more than the repetative determination of known CONSTANTS.  That's not
>> what
>> programming is about.
>>
>> In C programming, known CONSTANTS are best dealt with using LUTs, or
>> look up tables.
>>
>> For every chess piece there is a known number of moves for a given
>> square.  These
>> known values are entered into a 64-byte LUT, one for each piece.
>> Then, given the piece
>> and location, the number of moves is quickly determined.
>>
>> The VARIABLE quantity here is the location of the other piece and thus
>> its effect on
>> the number of moves.  This is the actual problem to be solved.
>>
>> It can be solved using radii.  Each piece has a number of radii on
>> which a blocking
>> piece can be located.  Just determine which radii for a given piece is
>> occupied by
>> the blocking piece and then subtract the appropriate quantity from the
>> LUT total.
>>
>> There.  I have solved the REAL PROBLEM and the REAL PROBLEM is not the
>> determination
>> of the total number of possible moves.
>>
>> Now just give this solution to the code monkeys and let them screech.
>>
>> But not this sub-monkey.  He couldn't code his way out of a paper bag
>> -- a wet paper
>> bag.
>>
>> Ha, ha, ha, ha, ha, ha, ha, ha!
>>
>
>
> Look up table in C programming is a nice feature, but I'm for now
> limited to qbasic, so I'll just use a arrays for that.
>
> You went over only part of the problem.
>
> The move can come from one piece or the other. So the number of all
> different moves by first piece (minus what the second piece has blocked)
> should be added to the number of all different moves by the second piece
> as well (minus what the first piece has blocked). And this is for just
> one instance of the position of first and second pieces on the board. So
> the problem isn't over yet.
>
> One needs to account for any position of the first piece on board (minus
> 1 to account for the occupied square by second piece) and any position
> of the second piece (minus 1).
>
> In all these situations the max number of possible moves should be
> computed, so regardless of where the two pieces happen to land, and what
> the two pieces happen to be, the max number be at hand, so Holaku can
> bring with him that many coins, to never run short of them, and never
> bring one too many.
>
> This is an interesting coding problem :)
>
> The solution given to Holaku will look like a 5 by 5 square table on one
> page, with different chess pieces (except pawn) listed along top row and
> first column. And in each square on this table, the number of coins that
> Holaku should take with him is written.
>
> So the king decides, say, to take a bishop and a knight with him, he
> looks up the table and finds out how many coins he should take along.
>
> Code this! Problem is not solved until it's coded. Then tabulate it and
> show it here so I can verify your code got the numbers correct.

You're asking Feeb to write a difficult program, AND show his code on cola?

Not a chance. NEVER.

He might plagiarize something then say "Did I say I wrote it?", but he
doesn't have the skills to deliver what you're asking.

You clearly don't understand what kind of phony you're dealing with.

Re: A Problem To Solve :-)

<uq35ua$1gqi6$1@solani.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=9357&group=comp.os.linux.advocacy#9357

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: Physfitfreak@gmail.com (Physfitfreak)
Newsgroups: comp.os.linux.advocacy
Subject: Re: A Problem To Solve :-)
Date: Thu, 8 Feb 2024 12:18:51 -0600
Message-ID: <uq35ua$1gqi6$1@solani.org>
References: <uog01l$mi9n$1@solani.org>
<17ac13c4ae353932$16712$1979536$802601b3@news.usenetexpress.com>
<uohk04$ndab$2@solani.org> <up4385$11vs3$1@solani.org>
<upl2ru$19kpu$1@solani.org> <uppf2e$1bq1i$1@solani.org>
<BtYvN.258793$Ama9.10754@fx12.iad> <upptbh$1c2oi$1@solani.org>
<PbewN.54194$Iswd.37220@fx05.iad> <NiewN.54195$Iswd.40483@fx05.iad>
<uprv8a$1d50k$2@solani.org> <TzgwN.298224$Wp_8.39947@fx17.iad>
<ups5io$1d50k$4@solani.org> <i7jwN.204289$yEgf.184650@fx09.iad>
<a59eb87e-0b8e-48b4-ae45-65432f0591ban@googlegroups.com>
<uq11jm$1fnoq$1@solani.org> <z_3xN.87804$m4d.68618@fx43.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 8 Feb 2024 18:18:50 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1600070"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:+lflFA0n6WVQJCggZH4QrnPUuaY=
Content-Language: en-US
In-Reply-To: <z_3xN.87804$m4d.68618@fx43.iad>
X-User-ID: eJwFwYkBADAEBLCVPId2HJT9R2hi6uwdcHPY2hKHOoKyEMLyRJwtMTW9p+oNsi84iTD3lHpnQ9/qQjJ1P0GZFc8=
 by: Physfitfreak - Thu, 8 Feb 2024 18:18 UTC

On 2/8/2024 6:42 AM, DFS wrote:
> You're asking Feeb to write a difficult program, AND show his code on cola?

I don't want to see the codes, I want to see the output tabulated in a 5
x 5 table.

Re: A Problem To Solve :-)

<uq395u$1hpqi$1@solani.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=9359&group=comp.os.linux.advocacy#9359

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: Physfitfreak@gmail.com (Physfitfreak)
Newsgroups: comp.os.linux.advocacy
Subject: Re: A Problem To Solve :-)
Date: Thu, 8 Feb 2024 13:14:07 -0600
Message-ID: <uq395u$1hpqi$1@solani.org>
References: <uog01l$mi9n$1@solani.org>
<17ac13c4ae353932$16712$1979536$802601b3@news.usenetexpress.com>
<uohk04$ndab$2@solani.org> <up4385$11vs3$1@solani.org>
<upl2ru$19kpu$1@solani.org> <uppf2e$1bq1i$1@solani.org>
<BtYvN.258793$Ama9.10754@fx12.iad> <upptbh$1c2oi$1@solani.org>
<PbewN.54194$Iswd.37220@fx05.iad> <NiewN.54195$Iswd.40483@fx05.iad>
<uprv8a$1d50k$2@solani.org> <TzgwN.298224$Wp_8.39947@fx17.iad>
<ups5io$1d50k$4@solani.org> <i7jwN.204289$yEgf.184650@fx09.iad>
<a59eb87e-0b8e-48b4-ae45-65432f0591ban@googlegroups.com>
<ba9187b5-b1ec-4c31-89db-ba02756dfe89n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 8 Feb 2024 19:14:06 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1632082"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:+jLf7rRUIG4jaNLXZlkcru04spo=
In-Reply-To: <ba9187b5-b1ec-4c31-89db-ba02756dfe89n@googlegroups.com>
X-User-ID: eJwNyMEBwCAIA8CVxJCg44jC/iO09zxCphsuytlsc6tz14yM3J1WHOGNre66GDmhZwvtQP7tTxFnBGkTfKoPUgkVCQ==
Content-Language: en-US
 by: Physfitfreak - Thu, 8 Feb 2024 19:14 UTC

On 2/8/2024 6:38 AM, Lord Master wrote:
> On Wednesday, February 7, 2024 at 1:36:26 PM UTC-5, Lord Master wrote:
>>
>> For every chess piece there is a known number of moves for a given square. These
>> known values are entered into a 64-byte LUT, one for each piece.
>>
>
> Oops. 'Nuther mistake.
>
> I ferget that the chessboard has a four-fold rotational symmetry and thus
> only 16 entries are necessary to populate the LUT.
>

Nice observation.

That alone will cut down part of the computation by a factor of 4. But
there are more symmetries than just one :-) Hehe :)

Re: A Problem To Solve :-)

<uq3c6l$24336$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=9365&group=comp.os.linux.advocacy#9365

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: physfitfreak@gmail.com (Physfitfreak)
Newsgroups: comp.os.linux.advocacy
Subject: Re: A Problem To Solve :-)
Date: Thu, 8 Feb 2024 14:05:41 -0600
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <uq3c6l$24336$1@dont-email.me>
References: <uog01l$mi9n$1@solani.org>
<17ac13c4ae353932$16712$1979536$802601b3@news.usenetexpress.com>
<uohk04$ndab$2@solani.org> <up4385$11vs3$1@solani.org>
<upl2ru$19kpu$1@solani.org> <uppf2e$1bq1i$1@solani.org>
<BtYvN.258793$Ama9.10754@fx12.iad> <upptbh$1c2oi$1@solani.org>
<PbewN.54194$Iswd.37220@fx05.iad> <NiewN.54195$Iswd.40483@fx05.iad>
<uprv8a$1d50k$2@solani.org> <TzgwN.298224$Wp_8.39947@fx17.iad>
<ups5io$1d50k$4@solani.org> <i7jwN.204289$yEgf.184650@fx09.iad>
<a59eb87e-0b8e-48b4-ae45-65432f0591ban@googlegroups.com>
<7H3xN.87802$m4d.49958@fx43.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 8 Feb 2024 20:05:41 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="f9133c09dbffc5b524d9a7a0ec30b42f";
logging-data="2231398"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19kB/1NPlN+c4AG0Pter5rp0VdMd7Hf4FA="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:9S5W9I5AVEgZFVlOWls6uQZKAOQ=
Content-Language: en-US
In-Reply-To: <7H3xN.87802$m4d.49958@fx43.iad>
 by: Physfitfreak - Thu, 8 Feb 2024 20:05 UTC

On 2/8/2024 6:21 AM, DFS wrote:
> There are LOTS of "REAL PROBLEMS" in chess.  Total number of possible
> squares covered by all possible moves was the problem SandChimp asked
> (as far as I can tell.  The weirdo wrapped his problem in a story with
> gold coins and clairvoyant sultans and 72 virgins and hookah smoke
> wafting all around).
>

And that's how a cro-magnon with low reading comprehension sees it.

You'd never be able to get a code monkey job. Reading comprehension in
such jobs is paramount!

As a hobby, sure, but not anything more important than that, programming
for you works.

Re: A Problem To Solve :-)

<cDaxN.354218$xHn7.211945@fx14.iad>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=9366&group=comp.os.linux.advocacy#9366

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!news.swapon.de!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx14.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Betterbird (Windows)
Subject: Re: A Problem To Solve :-)
Newsgroups: comp.os.linux.advocacy
References: <uog01l$mi9n$1@solani.org>
<17ac13c4ae353932$16712$1979536$802601b3@news.usenetexpress.com>
<uohk04$ndab$2@solani.org> <up4385$11vs3$1@solani.org>
<upl2ru$19kpu$1@solani.org> <uppf2e$1bq1i$1@solani.org>
<BtYvN.258793$Ama9.10754@fx12.iad> <upptbh$1c2oi$1@solani.org>
<PbewN.54194$Iswd.37220@fx05.iad> <NiewN.54195$Iswd.40483@fx05.iad>
<uprv8a$1d50k$2@solani.org> <TzgwN.298224$Wp_8.39947@fx17.iad>
<ups5io$1d50k$4@solani.org> <i7jwN.204289$yEgf.184650@fx09.iad>
<a59eb87e-0b8e-48b4-ae45-65432f0591ban@googlegroups.com>
<7H3xN.87802$m4d.49958@fx43.iad> <uq3c6l$24336$1@dont-email.me>
Content-Language: en-US
From: nospam@dfs.com (DFS)
In-Reply-To: <uq3c6l$24336$1@dont-email.me>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 31
Message-ID: <cDaxN.354218$xHn7.211945@fx14.iad>
X-Complaints-To: abuse@blocknews.net
NNTP-Posting-Date: Thu, 08 Feb 2024 20:15:04 UTC
Organization: blocknews - www.blocknews.net
Date: Thu, 8 Feb 2024 15:15:04 -0500
X-Received-Bytes: 2304
 by: DFS - Thu, 8 Feb 2024 20:15 UTC

On 2/8/2024 3:05 PM, Physfitfreak wrote:
> On 2/8/2024 6:21 AM, DFS wrote:
>> There are LOTS of "REAL PROBLEMS" in chess.  Total number of possible
>> squares covered by all possible moves was the problem SandChimp asked
>> (as far as I can tell.  The weirdo wrapped his problem in a story with
>> gold coins and clairvoyant sultans and 72 virgins and hookah smoke
>> wafting all around).
>>
>
> And that's how a cro-magnon with low reading comprehension sees it.

FarsiChimp is your 1st language, and English your 2nd, correct? 'Cause
most of your problems in English are incomprehensible.
"PhysFit and the Mountain" was about 1000 words when 100 would do.

This chess thing was even more stupidly conveyed. Just ridiculous.

Next time give us a link to the original, and leave out your weird
imagination.

> You'd never be able to get a code monkey job. Reading comprehension in
> such jobs is paramount!
>
> As a hobby, sure, but not anything more important than that, programming
> for you works.

I'll smoke your doodling in ANY language.

Re: A Problem To Solve :-)

<uq3h3d$1htlc$1@solani.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=9369&group=comp.os.linux.advocacy#9369

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: Physfitfreak@gmail.com (Physfitfreak)
Newsgroups: comp.os.linux.advocacy
Subject: Re: A Problem To Solve :-)
Date: Thu, 8 Feb 2024 15:29:16 -0600
Message-ID: <uq3h3d$1htlc$1@solani.org>
References: <uog01l$mi9n$1@solani.org>
<17ac13c4ae353932$16712$1979536$802601b3@news.usenetexpress.com>
<uohk04$ndab$2@solani.org> <up4385$11vs3$1@solani.org>
<upl2ru$19kpu$1@solani.org> <uppf2e$1bq1i$1@solani.org>
<BtYvN.258793$Ama9.10754@fx12.iad> <upptbh$1c2oi$1@solani.org>
<PbewN.54194$Iswd.37220@fx05.iad> <NiewN.54195$Iswd.40483@fx05.iad>
<uprv8a$1d50k$2@solani.org> <TzgwN.298224$Wp_8.39947@fx17.iad>
<ups5io$1d50k$4@solani.org> <i7jwN.204289$yEgf.184650@fx09.iad>
<a59eb87e-0b8e-48b4-ae45-65432f0591ban@googlegroups.com>
<7H3xN.87802$m4d.49958@fx43.iad> <uq3c6l$24336$1@dont-email.me>
<cDaxN.354218$xHn7.211945@fx14.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 8 Feb 2024 21:29:17 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1636012"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:M6OfvT/NYPkULm8YMQDxz15CWuc=
X-User-ID: eJwNyckBACAIA7CVFKHqOBx2/xHkm9jCRG6FQY1GWpRajusQzzpboBE38qU3SO/R2Bwoety3Bh+WywS7Jz+ETBb+
In-Reply-To: <cDaxN.354218$xHn7.211945@fx14.iad>
Content-Language: en-US
 by: Physfitfreak - Thu, 8 Feb 2024 21:29 UTC

On 2/8/2024 2:15 PM, DFS wrote:
> On 2/8/2024 3:05 PM, Physfitfreak wrote:
>> On 2/8/2024 6:21 AM, DFS wrote:
>>> There are LOTS of "REAL PROBLEMS" in chess.  Total number of possible
>>> squares covered by all possible moves was the problem SandChimp asked
>>> (as far as I can tell.  The weirdo wrapped his problem in a story
>>> with gold coins and clairvoyant sultans and 72 virgins and hookah
>>> smoke wafting all around).
>>>
>>
>> And that's how a cro-magnon with low reading comprehension sees it.
>
> FarsiChimp is your 1st language, and English your 2nd, correct?  'Cause
> most of your problems in English are incomprehensible.
> "PhysFit and the Mountain" was about 1000 words when 100 would do.
>
> This chess thing was even more stupidly conveyed.  Just ridiculous.
>
> Next time give us a link to the original, and leave out your weird
> imagination.
>
>
>
>> You'd never be able to get a code monkey job. Reading comprehension in
>> such jobs is paramount!
>>
>> As a hobby, sure, but not anything more important than that,
>> programming for you works.
>
> I'll smoke your doodling in ANY language.
>
>

Cro-magnon's loser talk.

No I got tested on my reading comprehension and writing ability just two
months after getting here, with the GRE test, which is essentially
nothing but a tough exam for reading comprehension and writing in the
English language. And my score was high.

So don't worry about me :)

Worry about yourself. You don't fool me.

Re: A Problem To Solve :-)

<RZdxN.78090$Sf59.39093@fx48.iad>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=9382&group=comp.os.linux.advocacy#9382

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!nntp.comgw.net!peer03.ams4!peer.am4.highwinds-media.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx48.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Betterbird (Windows)
Subject: Re: A Problem To Solve :-)
Newsgroups: comp.os.linux.advocacy
References: <uog01l$mi9n$1@solani.org>
<17ac13c4ae353932$16712$1979536$802601b3@news.usenetexpress.com>
<uohk04$ndab$2@solani.org> <up4385$11vs3$1@solani.org>
<upl2ru$19kpu$1@solani.org> <uppf2e$1bq1i$1@solani.org>
<BtYvN.258793$Ama9.10754@fx12.iad> <upptbh$1c2oi$1@solani.org>
<PbewN.54194$Iswd.37220@fx05.iad> <NiewN.54195$Iswd.40483@fx05.iad>
<uprv8a$1d50k$2@solani.org> <TzgwN.298224$Wp_8.39947@fx17.iad>
<ups5io$1d50k$4@solani.org> <i7jwN.204289$yEgf.184650@fx09.iad>
<a59eb87e-0b8e-48b4-ae45-65432f0591ban@googlegroups.com>
<7H3xN.87802$m4d.49958@fx43.iad> <uq3c6l$24336$1@dont-email.me>
<cDaxN.354218$xHn7.211945@fx14.iad> <uq3h3d$1htlc$1@solani.org>
Content-Language: en-US
From: nospam@dfs.com (DFS)
In-Reply-To: <uq3h3d$1htlc$1@solani.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 242
Message-ID: <RZdxN.78090$Sf59.39093@fx48.iad>
X-Complaints-To: abuse@blocknews.net
NNTP-Posting-Date: Fri, 09 Feb 2024 00:04:01 UTC
Organization: blocknews - www.blocknews.net
Date: Thu, 8 Feb 2024 19:04:01 -0500
X-Received-Bytes: 11481
 by: DFS - Fri, 9 Feb 2024 00:04 UTC

On 2/8/2024 4:29 PM, Physfitfreak wrote:
> On 2/8/2024 2:15 PM, DFS wrote:
>> On 2/8/2024 3:05 PM, Physfitfreak wrote:
>>> On 2/8/2024 6:21 AM, DFS wrote:
>>>> There are LOTS of "REAL PROBLEMS" in chess.  Total number of
>>>> possible squares covered by all possible moves was the problem
>>>> SandChimp asked (as far as I can tell.  The weirdo wrapped his
>>>> problem in a story with gold coins and clairvoyant sultans and 72
>>>> virgins and hookah smoke wafting all around).
>>>>
>>>
>>> And that's how a cro-magnon with low reading comprehension sees it.
>>
>> FarsiChimp is your 1st language, and English your 2nd, correct?
>> 'Cause most of your problems in English are incomprehensible.
>> "PhysFit and the Mountain" was about 1000 words when 100 would do.
>>
>> This chess thing was even more stupidly conveyed.  Just ridiculous.
>>
>> Next time give us a link to the original, and leave out your weird
>> imagination.
>>
>>
>>
>>> You'd never be able to get a code monkey job. Reading comprehension
>>> in such jobs is paramount!
>>>
>>> As a hobby, sure, but not anything more important than that,
>>> programming for you works.

That sentence is meaningless. Like I said, your monkey babble English
is inscrutable.

>> I'll smoke your doodling in ANY language.

crickets

> Cro-magnon's loser talk.
>
> No I got tested on my reading comprehension and writing ability just two
> months after getting here, with the GRE test, which is essentially
> nothing but a tough exam for reading comprehension and writing in the
> English language. And my score was high.

So? That was a a long time ago, and chimps lose a lot of their meager
brainpower over the years.

> So don't worry about me :)
>
> Worry about yourself. You don't fool me.

Bring it, bozo. Talk's cheap.

The way to do it is this:
* you or I propose a code challenge/problem, which might be accepted or
rejected. Call us D and P
* D finishes his code solution first, but doesn't post it to cola. D
zips it up with a password and posts a link to the .zip file.
* P downloads the .zip file (but he can't open it without the password)
* P finishes his code and posts his code to cola in a message
* D posts the password to the .zip file

This way nobody can piggyback on the other's code.

Note: I will NEVER accept another code challenge like these 2 recent
ones of yours. You use 100 words when 10 will do. I won't even read
them. I'm sure they're funny to you, but it's painful to read even a
few sentences.

=======================================================================
"Physfit And The Mountain

In a sweet dream, Physfit, as he is typing away with his machine gun
fingers calling somebody in COLA "cro-magnon", and giving him the sage
advice of fingering himself, he notices through the window blinds, over
there, two blocks away from him, there is a strange mountain in an empty
field that he had never paid any attention to. In fact he had never seen
it before.

Calling it a mountain was just ridiculous of course, cause it was only
100 yards high. Physfit tells himself, "Today is my eating day, so after
eating, to relax a bit I'll climb it and sit there on top of it for a
few minutes."

So after he was done with eating the hearty soup he begins walking
towards the mountain, but as he gets closer, he realizes that its shape
is not that friendly for a quick climb, and in fact more likely he'll
need to have ropes and crampons and harnesses, and you name it to climb it.

So he walks back home and gets in the attic, brings down the dusty box
that had his old mountaineer's equipment (which he never had a use for
in Texas). Opens it up and takes what he thinks he'd need, and together
with some other supplies walks back to the mountain to get on top and
relax before coming back home.

The climb proves not easy. And this makes him even more eager to get it
done and conquer the damn strange thing.

At last, he had gone up no more than 11 yards when he notices the Sun is
already setting!... After all that effort, he thinks to himself,
"Getting back down will take too long and at best I'll make it home
several hours after my sleeping time, plus I'd have to start over
tomorrow from the ground level, making it to this height around the same
time as it is now, with no progress made after 24 hours."

So going back down would beat the purpose. He decides to camp at the
spot he is, for the night, and continue the climb next day. He gets his
sleeping bag in order and crawls inside and falls into a deep wonderful
sleep.

But during the night, as Physfit is snoring in his sleeping bag, this
strange mountain grows itself a hundred yards taller!... So Physfit's
distance to the top gets larger than before he even had begun climbing.
But fortunately, this growth didn't just add another 100 yards to the
height of the mountain, but was done proportionally, which means during
that night, Physfit's height from the ground has also increased
proportionally. So the shape of the mountain remained intact, only its
size got increased and thus added 100 more yards to the overall height.

Physfit wakes up in the morning and finds himself at the height of 22
yards on a mountain that was 200 yards high!... So in this new day, with
much effort and perseverance, he manages to climb another 11 yards up
before the Sun begins setting. And by the same logic he decides to sleep
at the spot he was and continue the climb the next day.

While asleep, the strange mountain grows itself proportionally to make
its height another 100 yards larger...

In the morning, Physfit wakes up and finds himself at the height of 49.5
yards on a mountain 300 yards tall.

While brewing his Walmart National Cup tea-bag (which amazingly after
all the recent inflation was still $1 for 100 tea-bags), he admits to
himself that conquering this summit will be harder than he expected.

Every day, from then on, he climbed another 11 yards, and every night
the mountain grew another 100 yards taller, taking him a bit higher with it.

Did Physfit reach the summit? If he reached, why he could reach it, and
how many days total it took him to get there? And if he could not reach
it, prove why he couldn't reach the summit."
=======================================================================

wtf? I never have and never will read that bullshit.

Your chess scenario was just as long, and also weird as hell (what I
read of it):

======================================================================
Thus the story continues...

The two scientists got out and locked the gate and left.

That day, in the evening, a party was to hold in Holaku's Summer
residence not that far from Maragheh. And the two were both invited!

Ghotbeddin got home and hit the sack fast and early to wake up fully
rested before attending the party. He couldn't be contained inside his
own skin, when thinking about the prospect of seeing Holaku's daughter
again within that same day...

As he slowly drifted off into sleep he dreamed that wherever he was, he
was actually already in that party but had just noticed it! He didn't
get time to think how it happened and why he'd only now realized where
he'd been all this time. Holaku was sitting on a throne across the huge
room and some of the vazirs were here and there chatting. But he knew
that he had not yet seen the daughter, so he made himself sure he'll
stay until she shows up. Also, he knew that he and Holaku both were
waiting for Tusi to arrive, because Holaku had something to ask from him.

But there was no sign of Tusi. At his home, he had come up with an idea
which needed the use of some tables of numbers kept at the observatory,
and he had chosen to go to the observatory in the evening, not even to
Hulaku's party where he was invited!

So after some time, at some point Holaku signaled to have a talk with
Ghotbeddin. A servant and one of the vazirs immediately came over to
Ghotbeddin and together walked to where Holaku was sitting.

Holaku to Ghotbeddin:

"They tell me you are a very smart man to be in the observatory,
helping someone like Tusi. Do you think you are as smart as Tusi?"

Ghotbeddin made a faint smile and said:

"Your Majesty, I am not blessed with as much talent as God has
bestowed upon Your Majesty _or_ Tusi."

Holaku:

"I have a task for Tusi to accomplish, but in his absence I want you
to do it."

Ghotbeddin:

"Your Majesty's wish is my utmost desire."

Holaku:

"In each of my parties, a session is always included in which a
chessboard is placed on the floor, with no chess pieces on it. There is
a contest, and the winner is blindfolded and given two random chess
pieces of same color - but not any pawns - out of my pocket, to place
somewhere on the chessboard by the winner, in two of the squares. Then
the blindfold is removed and the winner will look at the chessboard and
counts the number of different moves he can make with the chess pieces
from the squares that they are in. The winner will get as many gold
coins from me as that count is. If I know in advance which two pieces
will be given to the winner, I need to know how many gold coins I should
bring with me to the party, so I could never find myself with not enough
coins to give to the winner, and never carry with me even one gold coin
that would never be needed to be given to the winner. Find how many
coins I should bring with me to the party."


Click here to read the complete article
Re: A Problem To Solve :-)

<uq4406$1h861$1@solani.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=9398&group=comp.os.linux.advocacy#9398

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: Physfitfreak@gmail.com (Physfitfreak)
Newsgroups: comp.os.linux.advocacy
Subject: Re: A Problem To Solve :-)
Date: Thu, 8 Feb 2024 20:51:49 -0600
Message-ID: <uq4406$1h861$1@solani.org>
References: <uog01l$mi9n$1@solani.org>
<17ac13c4ae353932$16712$1979536$802601b3@news.usenetexpress.com>
<uohk04$ndab$2@solani.org> <up4385$11vs3$1@solani.org>
<upl2ru$19kpu$1@solani.org> <uppf2e$1bq1i$1@solani.org>
<BtYvN.258793$Ama9.10754@fx12.iad> <upptbh$1c2oi$1@solani.org>
<PbewN.54194$Iswd.37220@fx05.iad> <NiewN.54195$Iswd.40483@fx05.iad>
<uprv8a$1d50k$2@solani.org> <TzgwN.298224$Wp_8.39947@fx17.iad>
<ups5io$1d50k$4@solani.org> <i7jwN.204289$yEgf.184650@fx09.iad>
<a59eb87e-0b8e-48b4-ae45-65432f0591ban@googlegroups.com>
<7H3xN.87802$m4d.49958@fx43.iad> <uq3c6l$24336$1@dont-email.me>
<cDaxN.354218$xHn7.211945@fx14.iad> <uq3h3d$1htlc$1@solani.org>
<RZdxN.78090$Sf59.39093@fx48.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 9 Feb 2024 02:51:50 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1614017"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:AIJFPUVV1N2vhoIEqP9Wj8ZwDgA=
In-Reply-To: <RZdxN.78090$Sf59.39093@fx48.iad>
Content-Language: en-US
X-User-ID: eJwNxckBwDAIA7CVuOyUcYCU/Udo9RGcyjlBMLDYOm0SfW32cRW32nHXDLxJeXk7p9DhkxZpl/YPr2UrTPQDSm0UvA==
 by: Physfitfreak - Fri, 9 Feb 2024 02:51 UTC

On 2/8/2024 6:04 PM, DFS wrote:
> Talk's cheap

You've proven yourself in action too :)

Re: A Problem To Solve :-)

<uq5lk1$1i2g6$1@solani.org>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=9440&group=comp.os.linux.advocacy#9440

  copy link   Newsgroups: comp.os.linux.advocacy sci.physics
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: Physfitfreak@gmail.com (Physfitfreak)
Newsgroups: comp.os.linux.advocacy,sci.physics
Subject: Re: A Problem To Solve :-)
Date: Fri, 9 Feb 2024 10:58:41 -0600
Message-ID: <uq5lk1$1i2g6$1@solani.org>
References: <uog01l$mi9n$1@solani.org>
<17ac13c4ae353932$16712$1979536$802601b3@news.usenetexpress.com>
<uohk04$ndab$2@solani.org> <up4385$11vs3$1@solani.org>
<upl2ru$19kpu$1@solani.org> <upq42l$1c60v$1@solani.org>
<ups2ld$1d50k$3@solani.org>
<17b161c4f98e6e88$45456$1979536$802601b3@news.usenetexpress.com>
<upu96d$1ebje$1@solani.org> <upuibe$1fdcj$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 9 Feb 2024 16:58:41 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1640966"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:NkykYJxDYzOAj2SmSPYgrsVY3Qc=
In-Reply-To: <upuibe$1fdcj$1@solani.org>
X-User-ID: eJwFwQcBwDAMAzBKeXZaOF0OfwiT4FRWBsHAYn0txl8RhTqkXGAOROrLtvtGv0nVoprJteM5O229jNrK/gFGpRWX
Content-Language: en-US
 by: Physfitfreak - Fri, 9 Feb 2024 16:58 UTC

On 2/6/20966666624 6:19 PM, Physfitfreak wrote:
> Machine numbers are in binary form. But these machine numbers can be
> expressed in decimal machine numbers like:
>
> 0.d_1d_2 ... d_k x 10^n
>
> , where d_1 digit is _not_ zero, and d_2, d_3 ... d_k digits can each be
> an integer from zero to 9.

By the way, can FriCAS show the above math expression correctly in
pretty print? Diagon cannot! At least I don't know how to use it to
write that number in the familiar way.

Diagon seems to treat each digit as a separate number, and therefore
requires a math operation inbetween them! Hehe :) What a flaw. I just
noticed it.

But perhaps friCAS is like that too.

Re: A Problem To Solve :-)

<65c698ff$0$29733$426a74cc@news.free.fr>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=9459&group=comp.os.linux.advocacy#9459

  copy link   Newsgroups: comp.os.linux.advocacy
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!cleanfeed1-b.proxad.net!nnrp2-2.free.fr!not-for-mail
Newsgroups: comp.os.linux.advocacy
From: sc@fiat-linux.fr (Stéphane CARPENTIER)
Subject: Re: A Problem To Solve :-)
References: <uog01l$mi9n$1@solani.org>
<17ac13c4ae353932$16712$1979536$802601b3@news.usenetexpress.com>
<uohk04$ndab$2@solani.org> <up4385$11vs3$1@solani.org>
<upl2ru$19kpu$1@solani.org> <uppf2e$1bq1i$1@solani.org>
<BtYvN.258793$Ama9.10754@fx12.iad> <upptbh$1c2oi$1@solani.org>
<PbewN.54194$Iswd.37220@fx05.iad> <NiewN.54195$Iswd.40483@fx05.iad>
<uprv8a$1d50k$2@solani.org> <TzgwN.298224$Wp_8.39947@fx17.iad>
<ups5io$1d50k$4@solani.org>
Organization: Mulots' Killer
User-Agent: slrn/pre1.0.4-9 (Linux)
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Date: 09 Feb 2024 21:28:31 GMT
Lines: 17
Message-ID: <65c698ff$0$29733$426a74cc@news.free.fr>
NNTP-Posting-Date: 09 Feb 2024 22:28:31 CET
NNTP-Posting-Host: 78.201.248.7
X-Trace: 1707514111 news-1.free.fr 29733 78.201.248.7:44928
X-Complaints-To: abuse@proxad.net
 by: Stéphane CARPENTIER - Fri, 9 Feb 2024 21:28 UTC

Le 06-02-2024, Physfitfreak <Physfitfreak@gmail.com> a écrit :
>
> You must understand the problem first. Any code monkey has good reading
> comprehension, otherwise they're just useless cause they won't know what
> it is that the employer wants them to do.

No employer will refuse to explain differently what has been
misunderstood. When an employer hires a programmer, he's not sure the
programmer knows the context in which the program will be used. The job
of the programmer is to develop a program, not to know every way in
which it can be used. You are like a lot of teachers I had: they never
went outside of their university but they believed they know what the
employers will need. And like you, they were just plain wrong.

--
Si vous avez du temps à perdre :
https://scarpet42.gitlab.io


computers / comp.os.linux.advocacy / Re: A Problem To Solve :-)

Pages:12345678910
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor