: Programming forum
> Subject: Re: [Jprogramming] Repeated rolling dice
>
> J Http Server
>
>
>
> u: 9800+i. 5 20
>
> ♈♉♊♋♌♍♎♏♐♑♒♓♔♕♖♗♘♙♚♛
> ♜♝♞♟♠♡♢♣♤♥♦♧♨♩♪♫♬♭♮♯
> ♰♱♲♳♴♵♶♷♸♹♺♻♼♽♾♿⚀⚁⚂⚃
> ⚄⚅⚆⚇⚈⚉⚊⚋⚌⚍⚎⚏⚐⚑⚒⚓⚔⚕⚖⚗
> ⚘⚙⚚⚛⚜⚝⚞⚟⚠⚡⚢⚣⚤⚥⚦⚧⚨⚩⚪⚫
>
> The dice show
, 2015 11:06 AM
To: Programming forum
Subject: Re: [Jprogramming] Repeated rolling dice
J Http Server
u: 9800+i. 5 20
♈♉♊♋♌♍♎♏♐♑♒♓♔♕♖♗♘♙♚♛
♜♝♞♟♠♡♢♣♤♥♦♧♨♩♪♫♬♭♮♯
♰♱♲♳♴♵♶♷♸♹♺♻♼♽♾♿⚀⚁⚂⚃
⚄⚅⚆⚇⚈⚉⚊⚋⚌⚍⚎⚏⚐⚑⚒⚓⚔⚕⚖⚗
⚘⚙⚚⚛⚜⚝⚞⚟⚠⚡⚢⚣⚤⚥⚦⚧⚨⚩⚪⚫
The dice show up in jhs on the android
On 2 Jan 2015 15:39, "
rogramming-boun...@forums.jsoftware.com] On Behalf Of robert
> therriault
> Sent: Friday, January 2, 2015 9:26 AM
> To: programm...@jsoftware.com
> Subject: Re: [Jprogramming] Repeated rolling dice
>
> Hi Linda,
>
> I don't know of a way to do it on the standard menus since
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of robert
therriault
Sent: Friday, January 2, 2015 9:26 AM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Repeated rolling dice
Hi Linda,
I don't know of a way to do it on the standard menus since jhs does not have
a config o
Hi Linda,
I don't know of a way to do it on the standard menus since jhs does not have a
config option, but since it is controlled by CSS in HTML you could use
jhtml_jhs_ '*{font-family:"courier
new","courier","monospace";}'
with the appropriate values for the font-family attribute.
To cha
gt;> On Wed, Dec 31, 2014 at 6:24 AM, Björn Helgason
>> > >>
>> > wrote:
>> > >>
>> > >>> It all depends on what font is used.
>> > >>>
>> > >>> Many/most only have subsets of the pictures/fonts/bitmaps/sign
;
>> > >>> It all depends on what font is used.
>> > >>>
>> > >>> Many/most only have subsets of the pictures/fonts/bitmaps/signs for
>> the
>> > >>> unicode places.
>> > >>>
>> > >&
;>
> > >>> press a sign and it will give a popup with the unicode number/name
> > >>> On 31 Dec 2014 11:25, "Linda Alvord"
> wrote:
> > >>>
> > >>>> u: 9856+i. 6 results in 6 empty boxes? I had no trouble getting
> ches
>>>>
> >>>> I tried (jqt font size 16)
> >>>>
> >>>> u:200 50$i.1
> >>>>
> >>>> and don't see any dice. Any ideas? Theree are many symbols but also
> >> many
> >>>> boxes.
> >
nicode-table.com/en/
>> > >>>
>> > >>> press a sign and it will give a popup with the unicode number/name
>> > >>> On 31 Dec 2014 11:25, "Linda Alvord"
>> wrote:
>> > >>>
>> > >>>> u: 9856+i. 6 results in 6 e
, "Linda Alvord"
> > wrote:
> > > >>>
> > > >>>> u: 9856+i. 6 results in 6 empty boxes? I had no trouble getting
> > chess
> > > >>>> pieces.
> > > >>>>
> > > >>>> I tried
chess
> > >>>> pieces.
> > >>>>
> > >>>> I tried (jqt font size 16)
> > >>>>
> > >>>> u:200 50$i.1
> > >>>>
> > >>>> and don't see any dice.
ng chess
> >>>> pieces.
> >>>>
> >>>> I tried (jqt font size 16)
> >>>>
> >>>> u:200 50$i.1
> >>>>
> >>>> and don't see any dice. Any ideas? Theree are many symbols but also
> >> ma
>>> u:200 50$i.1
>>>>
>>>> and don't see any dice. Any ideas? Theree are many symbols but also
>> many
>>>> boxes.
>>>>
>>>> Linda
>>>>
>>>>
>>>> -Original Message-
>>>&
; > -Original Message-
> > > From: programming-boun...@forums.jsoftware.com [mailto:
> > > programming-boun...@forums.jsoftware.com] On Behalf Of Björn Helgason
> > > Sent: Monday, December 29, 2014 12:40 PM
> > > To: Programming forum
> > > Subject: R
t;
> > Linda
> >
> >
> > -Original Message-
> > From: programming-boun...@forums.jsoftware.com [mailto:
> > programming-boun...@forums.jsoftware.com] On Behalf Of Björn Helgason
> > Sent: Monday, December 29, 2014 12:40 PM
> > To: Programming
> From: programming-boun...@forums.jsoftware.com [mailto:
> programming-boun...@forums.jsoftware.com] On Behalf Of Björn Helgason
> Sent: Monday, December 29, 2014 12:40 PM
> To: Programming forum
> Subject: Re: [Jprogramming] Repeated rolling dice
>
> To display the dice:
>
> u
, December 31, 2014 6:25 AM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Repeated rolling dice
u: 9856+i. 6 results in 6 empty boxes? I had no trouble getting chess pieces.
I tried (jqt font size 16)
u:200 50$i.1
and don't see any dice. Any ideas? Theree are many symbols b
e.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Björn Helgason
Sent: Monday, December 29, 2014 12:40 PM
To: Programming forum
Subject: Re: [Jprogramming] Repeated rolling dice
To display the dice:
u: 9856+i. 6
⚀⚁⚂⚃⚄⚅
u: 9855+5 1 4 1 5 2 2 6 2 4 5 6 1 3 6 2 1 4 4 2 ⚄⚀⚃⚀⚄⚁⚁⚅⚁⚃⚄⚅⚀⚂⚅⚁⚀⚃
: Re: [Jprogramming] Repeated rolling dice
I discovered the dice unicode while looking for the chess pieces.
I found them close by.
I am not sure if I am displaying the correct unicodes for the queen and
king:
8 8$ u: (|.(8$9823),9820 9822 9821 9819 9818 9821 9822
9820),(32$32),(8$9817),9814
rom: Björn Helgason
> To: Programming forum
> Cc:
> Sent: Monday, December 29, 2014 2:34 PM
> Subject: Re: [Jprogramming] Repeated rolling dice
>
> I discovered the dice unicode while looking for the chess pieces.
>
> I found them close by.
>
> I am not sure if I am disp
the queen appears wrong as it is supposed to be in 4th column from the left.
- Original Message -
From: Björn Helgason
To: Programming forum
Cc:
Sent: Monday, December 29, 2014 2:34 PM
Subject: Re: [Jprogramming] Repeated rolling dice
I discovered the dice unicode while looking for
t;> L-+-+---+-+-+-+-+-+-+-+---+-+-+--
>>
>>]C=:+/"1 >B NB. Value of rolls
>>
>> 1 2 23 3 5 1 15 1 4 2 10 1 2 2
>>
>> $C NB. Usable answers
>>
>> 14
>&
+-+-+-+---+-+-+--
>
>]C=:+/"1 >B NB. Value of rolls
>
> 1 2 23 3 5 1 15 1 4 2 10 1 2 2
>
> $C NB. Usable answers
>
> 14
>
>
>
> Linda
>
>
>
>
>
> -Original M
y{.r
> > )
> >
> > Do you see why this tends to be more efficient?
> >
> > Thanks,
> >
> > --
> > Raul
> >
> >
> > On Thu, Sep 25, 2014 at 11:50 AM, 'Pascal Jasmin' via Programming <
> > <mailto:progra
re efficient?
> >
> > Thanks,
> >
> > --
> > Raul
> >
> >
> > On Thu, Sep 25, 2014 at 11:50 AM, 'Pascal Jasmin' via Programming <
> > programm...@jsoftware.com> wrote:
> >
> >> this works
> >>
> >> (, >:@?@
riday, September 26, 2014 12:05 PM
Subject: Re: [Jprogramming] Repeated rolling dice
Thanks, that's helpful, although the tacit version of "bulk" is a bit
too much for me to parse.
I imagine factor of 2 helps because it gets you over the expected 6r5
rolls per "game", assumin
ds to be more efficient?
>
> Thanks,
>
> --
> Raul
>
>
> On Thu, Sep 25, 2014 at 11:50 AM, 'Pascal Jasmin' via Programming <
> programm...@jsoftware.com> wrote:
>
>> this works
>>
>> (, >:@?@6:)^:((0=#) +. 6={:)^:_ i.0
>>
>
challenge from Henry Rich 2012
Linda
-Original Message-----
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Johann
Hibschman
Sent: Thursday, September 25, 2014 9:06 AM
To: Programming forum
Subject: [Jprogramming] Repeated rolling
"This" is also an example where the problem statement, including the model
and the display of its result, heavily influenced the solutions. To avoid
this kind of bias in this case, perhaps you might say:
Roll a dice. If you don't get a 6, stop; if you do get a 6, roll the dice
again. Do m trial
:)^:_ i.0
>
>([: +/ (, >:@?@6:)^:((0=#) +. 6={:)^:_) i.0
> 11
>
>
>
> - Original Message -
> From: Johann Hibschman
> To: Programming forum
> Cc:
> Sent: Thursday, September 25, 2014 9:06 AM
> Subject: [Jprogramming] Repeated rolling dice
>
> Hi all,
>
> - Original Message -
> From: Devon McCormick
> To: J-programming forum
> Cc:
> Sent: Thursday, September 25, 2014 1:40 PM
> Subject: Re: [Jprogramming] Repeated rolling dice
>
> This looks like a good addition to my growing set of "array-thinking"
> examples
Great! now I understand about "frets"
Skip
On Thu, Sep 25, 2014 at 11:32 AM, Roger Hui
wrote:
> Compared to the other solutions posted so far, I believe it is more
> straightforward to do a long sequence of dice rolls and then split it up
> according to your specified criteria. The split poi
1
or
(, >:@?@6:)^:((0=#) +. 6={:)^:_"1 i.15 0
1 0 0
2 0 0
6 2 0
5 0 0
5 0 0
1 0 0
5 0 0
1 0 0
2 0 0
2 0 0
4 0 0
6 6 5
6 2 0
6 1 0
2 0 0
- Original Message -
From: Devon McCormick
To: J-programming forum
Cc:
Sent: Thursday, September 25, 2014 1:40 PM
Subject
This looks like a good addition to my growing set of "array-thinking"
examples.
On Thu, Sep 25, 2014 at 12:32 PM, Roger Hui
wrote:
> Compared to the other solutions posted so far, I believe it is more
> straightforward to do a long sequence of dice rolls and then split it up
> according to your
Compared to the other solutions posted so far, I believe it is more
straightforward to do a long sequence of dice rolls and then split it up
according to your specified criteria. The split point are where the
_previous_ roll is _not_ a 6. Thus:
x=: 1+1e4 ?@$ 6 NB. long sequence of dice ro
lay 36 games.
Mystery, if I replace behead for same in 0 { the_gerund, I get
curtailing rather than beheading.
g_behead=: }.`(, ([: $: roll))@.(6 = {:)
g_behead">5#6
6 0
6 6
6 0
6 0
6 6
Date: Thu, 25 Sep 2014 09:06:17 -0400
From: Johann Hibschman
To: Programming forum
S
this works
(, >:@?@6:)^:((0=#) +. 6={:)^:_ i.0
([: +/ (, >:@?@6:)^:((0=#) +. 6={:)^:_) i.0
11
- Original Message -
From: Johann Hibschman
To: Programming forum
Cc:
Sent: Thursday, September 25, 2014 9:06 AM
Subject: [Jprogramming] Repeated rolling dice
Hi all,
For fun
rather than beheading.
g_behead=: }.`(, ([: $: roll))@.(6 = {:)
g_behead">5#6
6 0
6 6
6 0
6 0
6 6
Date: Thu, 25 Sep 2014 09:06:17 -0400
From: Johann Hibschman
To: Programming forum
Subject: [Jprogramming] Repeated rolling dice
Message-ID:
Content-Type: text/plain; charse
"Is there a discussion of the quality of the RNG somewhere?"
See
http://en.m.wikipedia.org/wiki/Mersenne_twister
which discusses J's default RNG.
On Thursday, September 25, 2014, Johann Hibschman
wrote:
> Hi all,
>
> For fun, I've been running some statistics for a game with an unusual
> rule
Hi all,
For fun, I've been running some statistics for a game with an unusual
rule for rolling dice: if a 6 is rolled, roll again and add the
result, repeating on any subsequent 6s. I wanted to implement this in
J, collecting all the individual rolls (rather than just the sum.)
It seems like ther
41 matches
Mail list logo