- Leo only knows Java, so your program must be executable via the Process API (command line), and use STDIN and STDOUT for input and output, respectively.
- For each step of input and output detailed above, the input and output must each exist on one line.
- There must be at least one trailing new line after the final output. (This is due to the way input is read from STDIN)
- No extraneous input/output is allowed, other than trailing and leading spaces. The parser simply does not understand things like
final_hand=...
ordraw 0
. - When drawing, output is a single integer, when exchanging output is a list of integers and/or cards defined below, and when being dealt the original hand, output is a list of cards defined below.
- All input/output numbers must be positive integers in base 10.
- You may define the format for card input (see post format below).
- True is defined as exactly "true," "1" or "t" and false is any other non-empty value.
- During the exchange step:
- Card indices must be output with at least one space between them (e.g.
3 4 0
) - Card names must be output with at least one space between them (e.g.
H4 S8
) - Card names and indices may be mixed in the output (e.g.
0 H7 3 D3
) - Trailing and leading spaces are allowed.
- The input as a result of the player outputting the above will be formatted as specified by the
bot.jlsc
file, in the same order as requested
- Card indices must be output with at least one space between them (e.g.
- The number of cards a player wants to add to their hand can have leading and trailing spaces.
- Hands must be output with at least one space between them (e.g.
H4 D5 CA
), trailing spaces and leading spaces are allowed. - Hands do not need to be output in proper order (e.g.
H4 D4 C4 DA SA
andH4 DA D4 SA C4
both represent 4, 4, 4, Ace, Ace, which is a full house). - If you wish to build a strategy by analyzing opponents hands, you may store data in a
<botname>/data
directory.- After competing bots have displayed their hands, they will be written to every bots data directory, in hands.txt, with each hand on a new line (separated by \n). The file will be encoded in US_ASCII.
- After your bot requests new cards or exchange cards, the cards will be input depending on what format you specify in the
bot.jlsc
file.
added 186 characters in body; deleted 159 characters in body; added 178 characters in body
Socratic Phoenix
- 1.7k
- 1
- 11
- 26