Crates.io | heartless_tk |
lib.rs | heartless_tk |
version | 0.1.0 |
source | src |
created_at | 2024-02-04 15:55:02.881805 |
updated_at | 2024-02-04 15:55:02.881805 |
description | heartless_tk, a card game similar with mshearts |
homepage | |
repository | https://github.com/oooutlk/heartless |
max_upload_size | |
id | 1126477 |
size | 80,148 |
The heartless_tk
program is a card game similar with mshearts.
It is a GUI frontend of heartless, using the Tk as the UI client.
The same as heartless's Rule.
You can select and discard cards via mouse clicking or keyboard striking.
For mouse clicking, the first click selects the card and the second click discards it.
Keyboard input is almost the same as heartless's Input. You can strike 2,3,4,5,6,7, 8,9,0,j,q,k,a, and Esc, Backspace, Enter for keyboard input. Note that jqka are lowercases.
To alternate selecting between different cards of the same rank, just type the same rank repeatly. For instance, typing "jj" will pick Jack of Diamonds out of "236Jc 50Jd JsQs", while typing "jjj" will pick Jack of Spades.
The same as heartless's Customizable AI strategies.
Given "--automatic", the game will run in automatic mode and the user has no interaction with the game at all. You can enable this mode to test your AI. With "--count 100" you can run 100 times to see how many times your AI won.
Note that the heartless
server is not in automatic mode, it gets input from
the heartless_tk
client which is automated.
Under Apache License 2.0 or MIT License, at your will.