Re: [Jprogramming] Repeated rolling dice

2015-01-02 Thread robert therriault
: Programming forum > Subject: Re: [Jprogramming] Repeated rolling dice > > J Http Server > > > > u: 9800+i. 5 20 > > ♈♉♊♋♌♍♎♏♐♑♒♓♔♕♖♗♘♙♚♛ > ♜♝♞♟♠♡♢♣♤♥♦♧♨♩♪♫♬♭♮♯ > ♰♱♲♳♴♵♶♷♸♹♺♻♼♽♾♿⚀⚁⚂⚃ > ⚄⚅⚆⚇⚈⚉⚊⚋⚌⚍⚎⚏⚐⚑⚒⚓⚔⚕⚖⚗ > ⚘⚙⚚⚛⚜⚝⚞⚟⚠⚡⚢⚣⚤⚥⚦⚧⚨⚩⚪⚫ > > The dice show

Re: [Jprogramming] Repeated rolling dice

2015-01-02 Thread Linda Alvord
, 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, "

Re: [Jprogramming] Repeated rolling dice

2015-01-02 Thread Björn Helgason
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

Re: [Jprogramming] Repeated rolling dice

2015-01-02 Thread Linda Alvord
[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

Re: [Jprogramming] Repeated rolling dice

2015-01-02 Thread robert therriault
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

Re: [Jprogramming] Repeated rolling dice

2015-01-02 Thread Linda Alvord
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

Re: [Jprogramming] Repeated rolling dice

2015-01-02 Thread Björn Helgason
; >> > >>> It all depends on what font is used. >> > >>> >> > >>> Many/most only have subsets of the pictures/fonts/bitmaps/signs for >> the >> > >>> unicode places. >> > >>> >> > >&

Re: [Jprogramming] Repeated rolling dice

2015-01-01 Thread Björn Helgason
;> > > >>> 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

Re: [Jprogramming] Repeated rolling dice

2015-01-01 Thread Björn Helgason
>>>> > >>>> 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. > >

Re: [Jprogramming] Repeated rolling dice

2015-01-01 Thread Raul Miller
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

Re: [Jprogramming] Repeated rolling dice

2015-01-01 Thread Devon McCormick
, "Linda Alvord" > > wrote: > > > >>> > > > >>>> u: 9856+i. 6 results in 6 empty boxes? I had no trouble getting > > chess > > > >>>> pieces. > > > >>>> > > > >>>> I tried

Re: [Jprogramming] Repeated rolling dice

2015-01-01 Thread John Baker
chess > > >>>> pieces. > > >>>> > > >>>> I tried (jqt font size 16) > > >>>> > > >>>> u:200 50$i.1 > > >>>> > > >>>> and don't see any dice.

Re: [Jprogramming] Repeated rolling dice

2015-01-01 Thread Devon McCormick
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

Re: [Jprogramming] Repeated rolling dice

2014-12-31 Thread robert therriault
>>> u:200 50$i.1 >>>> >>>> and don't see any dice. Any ideas? Theree are many symbols but also >> many >>>> boxes. >>>> >>>> Linda >>>> >>>> >>>> -Original Message- >>>&

Re: [Jprogramming] Repeated rolling dice

2014-12-31 Thread Björn Helgason
; > -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

Re: [Jprogramming] Repeated rolling dice

2014-12-31 Thread Skip Cave
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

Re: [Jprogramming] Repeated rolling dice

2014-12-31 Thread Björn Helgason
> 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

Re: [Jprogramming] Repeated rolling dice

2014-12-31 Thread Linda Alvord
, 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

Re: [Jprogramming] Repeated rolling dice

2014-12-31 Thread Linda Alvord
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

2014-12-30 Thread Linda Alvord
: 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

Re: [Jprogramming] Repeated rolling dice

2014-12-29 Thread Björn Helgason
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

Re: [Jprogramming] Repeated rolling dice

2014-12-29 Thread 'Pascal Jasmin' via Programming
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

Re: [Jprogramming] Repeated rolling dice

2014-12-29 Thread Björn Helgason
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 >&

Re: [Jprogramming] Repeated rolling dice

2014-12-29 Thread Björn Helgason
+-+-+-+---+-+-+-- > >]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

Re: [Jprogramming] Repeated rolling dice

2014-12-29 Thread Linda Alvord
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: [Jprogramming] Repeated rolling dice

2014-09-26 Thread Raul Miller
re efficient? > > > > Thanks, > > > > -- > > Raul > > > > > > On Thu, Sep 25, 2014 at 11:50 AM, 'Pascal Jasmin' via Programming < > > programm...@jsoftware.com> wrote: > > > >> this works > >> > >> (, >:@?@

Re: [Jprogramming] Repeated rolling dice

2014-09-26 Thread 'Pascal Jasmin' via Programming
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

Re: [Jprogramming] Repeated rolling dice

2014-09-26 Thread Johann Hibschman
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 >> >

Re: [Jprogramming] Repeated rolling dice

2014-09-25 Thread Linda Alvord
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

Re: [Jprogramming] Repeated rolling dice

2014-09-25 Thread Roger Hui
"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

Re: [Jprogramming] Repeated rolling dice

2014-09-25 Thread Raul Miller
:)^:_ 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, >

Re: [Jprogramming] Repeated rolling dice

2014-09-25 Thread Roger Hui
> - 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

Re: [Jprogramming] Repeated rolling dice

2014-09-25 Thread Skip Cave
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

Re: [Jprogramming] Repeated rolling dice

2014-09-25 Thread 'Pascal Jasmin' via Programming
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

Re: [Jprogramming] Repeated rolling dice

2014-09-25 Thread Devon McCormick
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

Re: [Jprogramming] Repeated rolling dice

2014-09-25 Thread Roger Hui
​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

Re: [Jprogramming] Repeated rolling dice

2014-09-25 Thread Aai
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

Re: [Jprogramming] Repeated rolling dice

2014-09-25 Thread 'Pascal Jasmin' via Programming
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

Re: [Jprogramming] Repeated rolling dice

2014-09-25 Thread David Lambert
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

Re: [Jprogramming] Repeated rolling dice

2014-09-25 Thread Kip Murray
"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

[Jprogramming] Repeated rolling dice

2014-09-25 Thread Johann Hibschman
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