Pig the dice game: Difference between revisions

Content added Content deleted
m (→‎{{header|REXX}}: added whitespace.)
Line 3,012: Line 3,012:
do j=1 for arg(); say arg(j); say; end; say; exit 13</lang>
do j=1 for arg(); say arg(j); say; end; say; exit 13</lang>
This REXX program makes use of &nbsp; '''LINESIZE''' &nbsp; REXX program (or BIF) which is used to determine the screen width (or linesize) of the terminal (console).
This REXX program makes use of &nbsp; '''LINESIZE''' &nbsp; REXX program (or BIF) which is used to determine the screen width (or linesize) of the terminal (console).
<br>The &nbsp; '''LINESIZE.REX''' &nbsp; REXX program is included here ──► [[LINESIZE.REX]].
<br>The &nbsp; '''LINESIZE.REX''' &nbsp; REXX program is included here &nbsp; ──► &nbsp; [[LINESIZE.REX]].



{{out|output|text=&nbsp; when using the input of: &nbsp; &nbsp; <tt> 0 &nbsp; 2 &nbsp; 44 &nbsp; ( &nbsp; HAL &nbsp; R2D2 </tt>}}
{{out|output|text=&nbsp; when using the input of: &nbsp; &nbsp; <tt> 0 &nbsp; 2 &nbsp; 44 &nbsp; ( &nbsp; HAL &nbsp; R2D2 </tt>}}


[This plays a simulated game with '''no''' humans, '''two''' computers, and the score to win is '''44''', player names are specified.]
[This plays a simulated game with '''no''' humans, '''two''' computers, and the score to win is '''44''', player names are specified.]
<pre style="height:100ex">
<pre style="height:104ex">
Pig (the dice game) is being played with:
Pig (the dice game) is being played with:
2 computer players
2 computer players