As you might know from my post "JHS error", I want to produce a very simple
scorer/counter for Rock Paper Scissors.  RPS
<https://www.jsoftware.com/pipermail/programming/2020-December/056965.html>
But apparently my desktop computer's jhs cannot handle the code, so I
cannot even use a mobile device's browser on my LAN to access a desktop JHS
app.
So, I managed to successfully install jandroid and now wonder if there is a
way to simulate 2 buttons there in the jconsole window?
The only alternative seems to be to use 1 and _1 as keystroke inputs, which
I estimate would be annoying.
Again, any ideas?


<chat/context>
Alternatively, we have discussed using physical objects to keep count,
things like marbles and cribbage pegs ("tokens"). In addition to being
simple we want to encourage the loser to be careful/honest at scoring each
point.

One idea is to have n tokens and 2 receptacles. One receptacle is a source
of unused tokens; the other receptacle for "SCORE" counting tokens.
Whenever the SCORE receptacle is in front of Joan, Brian is ahead by the
count of the tokens therein; when it's in front of Brian, Joan is ahead.
Whenever Joan wins, Brian adjusts the receptacles' contents and, if
necessary, repositions the SCORE receptacle; and vice versa when Brian wins
a point.

To try this out at home, we used 2 soup bowls and a handful of leftover
Hardee's jelly packets for tokens. That works and was slightly entertaining
because of the surprising patterns we observed.

That worked well, but I would still like to develop a simple j counter, for
a mobile device, when we are not at home.
</chat/context>

-- 
(B=)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to