What is the difference between 2 (a list of moves for the current
board) and 3 (a path list for the solution, initially empty) in this
description?
Thanks,
--
Raul
On Mon, Jun 5, 2017 at 12:39 AM, Michael Rice wrote:
> The gap between J and most computer languages is pretty wide.
>
> Maybe t
@Raul Miller
Sorry about the typo.
It's pretty late now. Will revisit your message in the morning.
On Sun, Jun 4, 2017 at 12:19 PM, Raul Miller wrote:
> > For example, what's the difference between
> >
> > 2 3 <@, 3 4 and 1 2 <@:, 3 4
> >
> > when the result is the same?
>
> Well... the result
The gap between J and most computer languages is pretty wide.
Maybe this will help.
The board, a noun, is represented by a 15 element binary array with 1s for
full positions and 0s for empty ones. It is initially all 1s. Id, a noun,
is a 15x15 identity matrix.
Function flip, given a board and po
@Henry,
I think I have found out why g530 had failed,
there was already x=:.. defined eariler,
and today's patch adding local name x=. as in
'agifuwy' -: 3 1 ((5!:1<'x')`[`])} 'aeiouwy' [ x =. 'fg'
therefore there are 2 instance of x (one global, one local)
the 4!:55 at the end had erased only o
That is interesting, right now, for
JVERSION
Engine: j805/j64/windows
Release: commercial/2016-12-11T08:02:16
Library: 8.05.10
Qt IDE: 1.5.3s/5.6.2
Platform: Win 64
Installer: J805 install
InstallPath: c:/program files/j
Contact: www.jsoftware.com
the following works,
uu=. u"_
replace=.
That's a nice idea. Leads also to this rephrasing of that part:
|:((;|.)@(1++)+/)\i.5
Or, in context:
move_table=: <:(,|."1)(#~0<*/"1)~.,/,/_3&{.\@/:~"1(,|:"2)>|:((;|.)@(1++)+/)\i.5
flip=: ~: (i.15)&e.
legal_moves=: [ #~ 6 = 2 #. {
Thanks,
--
Raul
On Sun, Jun 4, 2017 at 6:28 PM, Jose Mari
Right, I made and push that change. However I still encountered the
same failure at g530 on run RUND1 ddall as Bill had reported.
Вс, 04 июн 2017, Henry Rich написал(а):
> IIRC I experimented in ge.ijs with a system of automatically deleting the
> definitions created in the script. As Bill says
IIRC I experimented in ge.ijs with a system of automatically deleting
the definitions created in the script. As Bill says, that method would
leave x y u v m n undeleted. The fix, which I assume he is talking
about, would be to delete those names willy-nilly at the end of the script.
Henry Ri
Thank you for report. the problem is that nl'' exclude reporting
x and y. I will push a fix.
Вс, 04 июн 2017, Bill Heagy написал(а):
> I have seen the problem with g530 once (today), but running:
>
> xxx> $j32
>
> load'~/tmp/jsource.git/trunk/test/tsu.ijs'
>
> 1 RUND2 ,268 { ddall
>
> triggers
I have seen the problem with g530 once (today), but running:
xxx> $j32
load'~/tmp/jsource.git/trunk/test/tsu.ijs'
1 RUND2 ,268 { ddall
triggers the problem, and explicitly deleting x and y at the end of
ge.ijs "cures" it (it's full of x =: ... and y =: ... ).
On 04/06/17 09:47 PM, bill lam
there has been a recent change in g530 that add x=. please confirm if it is
the culprit.
On 5 Jun, 2017 9:38 am, "Bill Heagy" wrote:
Running 1 RUND1 ddall or 1 RUND2 ddall from test/tsu.ijs results in
|assertion failure
| _1=4!:0;:'x y'
from running ge.ijs, but it seems to have a context
Running 1 RUND1 ddall or 1 RUND2 ddall from test/tsu.ijs results in
|assertion failure
| _1=4!:0;:'x y'
from running ge.ijs, but it seems to have a context element as well. If
shorter lists of tests are run, sometimes it complains about different
tests, and sometimes it doesn't complain
Now that in-place assignment is available for most occurrences of m}, is
doesn't hurt performance to use modifiers to make things easier to read:
replace =: 1 : '[`(u"_)`]}'
a =: 'aeiouwy'
a =: 'fg' (3 1 replace) a NB. Parentheses optional
a
agifuwy
In the next release noun A
"There ought to be a more elegant way of building move_table,"
I would replace the fragment (,:|.&.>)(;1{.&.>~1+i.5)<;.1>:i.15 by
|:(>:@:(+/\)(;|.)@:+&><\)i.5 or, if you prefer, by
|:(>:@(+/\)(;|.)@:+&><\)i.5 .
On Sun, Jun 4, 2017 at 1:35 PM, Raul Miller wrote:
> Actually, after furth
Actually, after further thought, I think I'd define some of your words this way:
move_table=:
<:(,|."1)(#~0<*/"1)~.,/,/_3&{.@/:~\"1(,|:"2)>(,:|.&.>)(;1{.&.>~1+i.5)<;.1>:i.15
flip=: ~: (i.15)&e.
legal_moves=: [ #~ 6 = 2 #. {
There ought to be a more elegant way of building move_table, but I'm
n
Actually, after further thought, I think I'd define some of your words this way:
move_table=:
<:(,|."1)(#~0<*/"1)~.,/,/_3&{.@/:~\"1(,|:"2)>(,:|.&.>)(;1{.&.>~1+i.5)<;.1>:i.15
flip=: ~: (i.15)&e.
legal_moves=: [ #~ 6 = 2 #. {
It seems like there ought to be a more elegant way of building
move_ta
> For example, what's the difference between
>
> 2 3 <@, 3 4 and 1 2 <@:, 3 4
>
> when the result is the same?
Well... the result is not the same here, because 2 3 is different from 1 2.
That said, <@, produces the same result as <@:, for the same
arguments. The difference between @ and @: would
In the next release, uncaught throw. will print the message
uncaught throw.
and set error number 35. Currently it prints nothing and sets an
undocumented internal error code.
Henry Rich
---
This email has been checked for viruses by AVG.
http://www.avg.com
---
Hi,
My iPad 3 (32 bit I think) cannot go any higher than IOS 9.
I presume this new version will not run on it, but I would like to have the
'real improvements to the user interface'. Any chance of backward compatibility?
Regards, Rob.
> On 26 May 2017, at 14:43, Eric Iverson wrote:
>
> Cur
I have difficulty in reading your code, perhaps you want to
make everything looks functional. To that end, you may
replace the if/then with @. (agenda)
(+./ @: ({ & id))`({ & id)@.((< & 2) @: #)
(untested and not sure if this is a simplication)
Вс, 04 июн 2017, Michael Rice написал(а):
> Two thi
Two things come to mind: 1) *reductio ad absurdum* and 2) a Dustin Hoffman
film, wherein he says to a man, "I going to explain something so you'll
understand it!" and then shoots him.
I already had a function that does what I needed (see below) but was musing
about left/right parameter style, when
Like this?
(#~ 5=2#.@:|])z
3 4 5
--
Raul
On Sun, Jun 4, 2017 at 9:43 AM, Michael Rice wrote:
> How about
>1 0 1 0 1 0 (#~ ((-: & 0 1 0)"1 @: ({~ & z)))~ z
> ?
>
> Odd, that's the KISS way, the way that always works, and the one way I
> hadn't considered.
>
> On to your "simplifications
How about
1 0 1 0 1 0 (#~ ((-: & 0 1 0)"1 @: ({~ & z)))~ z
?
Odd, that's the KISS way, the way that always works, and the one way I
hadn't considered.
On to your "simplifications."
On Sat, Jun 3, 2017 at 10:16 PM, Louis de Forcrand wrote:
> How about
>1 0 1 0 1 0 (#~ ((-: & 0 1 0)"1 @:
23 matches
Mail list logo