War card game: Difference between revisions

Content added Content deleted
(→‎{{header|Raku}}: Add a Raku example)
(→‎{{header|Raku}}: document command line switches better)
Line 706: Line 706:
* When the winning player picks up his cards. the cards are randomized when added to the bottom of his deck. (Cuts a typical game from multi thousands of rounds to multi hundreds of rounds)
* When the winning player picks up his cards. the cards are randomized when added to the bottom of his deck. (Cuts a typical game from multi thousands of rounds to multi hundreds of rounds)


Pass in which variant you want to play 2 down (Bicycle), 4 down (thundergnat) or 3 down (????). By default, there is a short delay (.1 seconds) beween rounds so you can watch what is going on. Pass in a larger/smaller value to slow down or speed up how long the game takes.
Pass in which variant you want to play 2 down, (Bicycle), <code>--war=2</code>, 4 down (thundergnat), (default), <code>--war=4</code> or 3 down (????) , <code>--war=3</code>. By default, there is a short delay (.1 seconds) between rounds so you can watch what is going on. Pass in a larger/smaller value to slow down or speed up how long the game takes. <code>--sleep=0</code> or whatever.


In glorious ANSI color! (The output loses much when pasted in as text so show output as screenshot images.)
In glorious ANSI color! (The output loses much when pasted in as text so show output as screenshot images.)