Commit Graph
5 Commits
Author SHA1 Message Date
iceman1001 35c098d489 make style 2026-08-29 17:42:29 +02:00
Henry Gabryjelski 075f353f98 More fixes based on CoPilot suggestions
* add a check to prevent multiple log handler additions.  Still a hack, but ok for this purpose.
* GuessKey_Statistics.__init__() now validates is_solved using same class validator as unpack()
* fix exception text to reflect allowed types for Hangman_State
* Also in Hangman_State, fix validation when input is bytes / bytearray
* In dc34_PlayHangman_validate_user_input(), strip the input before checking length.
2026-08-23 01:10:49 -07:00
Henry Gabryjelski 9a461daf96 Resolve additional issues that CoPilot found
1. remove hard-coded binary path
2. define TCP_PORT in fallback path
3. only detect device when not called from client
4. struct.pack() requires bytes / bytearray when packing a string.
5. fix typo "existing" -> "exiting"
6. remove unused imports
2026-08-23 00:44:27 -07:00
Henry GabryjelskiandCopilot Autofix powered by AI 0ff99b8762 Update python minimum version
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Henry Gabryjelski <henrygab@users.noreply.github.com>
2026-08-23 00:29:01 -07:00
Henry Gabryjelski 3f4eef9991 Add script to interact with DefCon34 passport cards
Works both from the command-line and from within the PM3 client:
* python3 ./client/pyscripts/dc34.py
* ./pm3 -c "script run dc34"

Supports all three games:
* TicTacToe
* Hangman
* GuessKey

See https://dc34.rfid.wtf/
2026-08-23 00:05:51 -07:00