diff --git a/mesh_bot.py b/mesh_bot.py index 624820b..1cfd8a6 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -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) diff --git a/modules/games/tictactoe.py b/modules/games/tictactoe.py index 7f26398..32f3d33 100644 --- a/modules/games/tictactoe.py +++ b/modules/games/tictactoe.py @@ -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" diff --git a/modules/system.py b/modules/system.py index 928daa4..34f6d65 100644 --- a/modules/system.py +++ b/modules/system.py @@ -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