This commit is contained in:
SpudGunMan
2025-10-06 14:40:08 -07:00
parent 4ba60ed276
commit a9da8336cc
3 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -88,6 +88,7 @@ def auto_response(message, snr, rssi, hop, pkiStatus, message_from_id, channel_n
"test": lambda: handle_ping(message_from_id, deviceID, message, hop, snr, rssi, isDM, channel_number),
"testing": lambda: handle_ping(message_from_id, deviceID, message, hop, snr, rssi, isDM, channel_number),
"tictactoe": lambda: handleTicTacToe(message, message_from_id, deviceID),
"tic-tac-toe": lambda: handleTicTacToe(message, message_from_id, deviceID),
"tide": lambda: handle_tide(message_from_id, deviceID, channel_number),
"valert": lambda: get_volcano_usgs(),
"videopoker": lambda: handleVideoPoker(message, message_from_id, deviceID),
@@ -832,7 +833,7 @@ def handleTicTacToe(message, nodeID, deviceID):
"nodeID": nodeID,
"last_played": time.time()
})
msg = "🎯Tic-Tac-Toe🤖 '(e)nd' to Quit\n"
msg = "🎯Tic-Tac-Toe🤖 '(e)nd'\n"
msg += tictactoe.play(nodeID, message)
+2 -1
View File
@@ -45,7 +45,8 @@ class TicTacToe:
row += "|"
board_str += row
if i < 2:
board_str += "\n-+-+-\n"
#board_str += "\n-+-+-\n"
board_str += "\n"
return board_str + "\n"
+1 -1
View File
@@ -262,7 +262,7 @@ if hamtest_enabled:
if tictactoe_enabled:
from modules.games.tictactoe import * # from the spudgunman/meshing-around repo
trap_list = trap_list + ("tictactoe",)
trap_list = trap_list + ("tictactoe","tic-tac-toe",)
games_enabled = True
# Games Configuration