├── .gitignore ├── LICENSE ├── README.md ├── capture ├── __init__.py ├── file_loader.py ├── interface.py └── video_capture.py ├── controller ├── __init__.py ├── dummy.py ├── interface.py ├── nxbt.py ├── nxbt_server │ ├── README.md │ ├── app.py │ ├── copy.sh │ ├── nxbt │ │ ├── __init__.py │ │ ├── bluez.py │ │ ├── controller │ │ │ ├── __init__.py │ │ │ ├── controller.py │ │ │ ├── input.py │ │ │ ├── protocol.py │ │ │ ├── sdp │ │ │ │ └── switch-controller.xml │ │ │ ├── server.py │ │ │ └── utils.py │ │ ├── logging.py │ │ ├── nxbt.py │ │ └── tui.py │ └── requirement.txt └── r3.py ├── logger ├── __init__.py └── logger.py ├── main.py ├── portal ├── __init__.py ├── debug │ ├── __init__.py │ ├── debug.py │ ├── debugger.py │ └── templates │ │ ├── debug.html │ │ └── page.html ├── home │ ├── __init__.py │ ├── capture.py │ ├── closer.py │ ├── home.py │ ├── keymap.py │ └── templates │ │ └── home.html ├── profiles │ └── default.json └── util │ ├── __init__.py │ └── rwlock.py ├── requirements.txt ├── tableturf ├── __init__.py ├── ai │ ├── __init__.py │ ├── alpha │ │ ├── __init__.py │ │ ├── alpha.py │ │ └── util.py │ ├── interface.py │ └── simple.py ├── manager │ ├── __init__.py │ ├── action │ │ ├── __init__.py │ │ ├── card.py │ │ ├── deck.py │ │ ├── giveup.py │ │ ├── hands.py │ │ ├── redraw.py │ │ ├── replay.py │ │ └── util.py │ ├── closer │ │ ├── __init__.py │ │ ├── interface.py │ │ ├── stats_closer.py │ │ └── union_closer.py │ ├── data.py │ ├── detection │ │ ├── __init__.py │ │ ├── card.py │ │ ├── debugger │ │ │ ├── __init__.py │ │ │ ├── cv.py │ │ │ └── interface.py │ │ ├── deck.py │ │ ├── stage.py │ │ ├── ui.py │ │ └── util.py │ └── tableturf.py └── model │ ├── __init__.py │ ├── card.py │ ├── grid.py │ ├── stage.py │ ├── status.py │ └── step.py └── tests ├── __init__.py ├── test_capture ├── __init__.py └── test_video_capture.py ├── test_controller ├── __init__.py ├── test_interface.py └── test_nxbt.py └── test_tableturf ├── __init__.py ├── test_ai ├── __init__.py └── test_alpha.py ├── test_detection ├── __init__.py ├── test_card.py ├── test_deck.py ├── test_stage.py └── test_ui.py └── test_model ├── __init__.py ├── test_card.py ├── test_stage.py └── test_status.py /.gitignore: -------------------------------------------------------------------------------- 1 | temp 2 | venv 3 | __pycache__ 4 | .idea 5 | .vscode -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/README.md -------------------------------------------------------------------------------- /capture/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/capture/__init__.py -------------------------------------------------------------------------------- /capture/file_loader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/capture/file_loader.py -------------------------------------------------------------------------------- /capture/interface.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/capture/interface.py -------------------------------------------------------------------------------- /capture/video_capture.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/capture/video_capture.py -------------------------------------------------------------------------------- /controller/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/controller/__init__.py -------------------------------------------------------------------------------- /controller/dummy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/controller/dummy.py -------------------------------------------------------------------------------- /controller/interface.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/controller/interface.py -------------------------------------------------------------------------------- /controller/nxbt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/controller/nxbt.py -------------------------------------------------------------------------------- /controller/nxbt_server/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/controller/nxbt_server/README.md -------------------------------------------------------------------------------- /controller/nxbt_server/app.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/controller/nxbt_server/app.py -------------------------------------------------------------------------------- /controller/nxbt_server/copy.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/controller/nxbt_server/copy.sh -------------------------------------------------------------------------------- /controller/nxbt_server/nxbt/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/controller/nxbt_server/nxbt/__init__.py -------------------------------------------------------------------------------- /controller/nxbt_server/nxbt/bluez.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/controller/nxbt_server/nxbt/bluez.py -------------------------------------------------------------------------------- /controller/nxbt_server/nxbt/controller/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/controller/nxbt_server/nxbt/controller/__init__.py -------------------------------------------------------------------------------- /controller/nxbt_server/nxbt/controller/controller.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/controller/nxbt_server/nxbt/controller/controller.py -------------------------------------------------------------------------------- /controller/nxbt_server/nxbt/controller/input.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/controller/nxbt_server/nxbt/controller/input.py -------------------------------------------------------------------------------- /controller/nxbt_server/nxbt/controller/protocol.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/controller/nxbt_server/nxbt/controller/protocol.py -------------------------------------------------------------------------------- /controller/nxbt_server/nxbt/controller/sdp/switch-controller.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/controller/nxbt_server/nxbt/controller/sdp/switch-controller.xml -------------------------------------------------------------------------------- /controller/nxbt_server/nxbt/controller/server.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/controller/nxbt_server/nxbt/controller/server.py -------------------------------------------------------------------------------- /controller/nxbt_server/nxbt/controller/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/controller/nxbt_server/nxbt/controller/utils.py -------------------------------------------------------------------------------- /controller/nxbt_server/nxbt/logging.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/controller/nxbt_server/nxbt/logging.py -------------------------------------------------------------------------------- /controller/nxbt_server/nxbt/nxbt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/controller/nxbt_server/nxbt/nxbt.py -------------------------------------------------------------------------------- /controller/nxbt_server/nxbt/tui.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/controller/nxbt_server/nxbt/tui.py -------------------------------------------------------------------------------- /controller/nxbt_server/requirement.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/controller/nxbt_server/requirement.txt -------------------------------------------------------------------------------- /controller/r3.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/controller/r3.py -------------------------------------------------------------------------------- /logger/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/logger/__init__.py -------------------------------------------------------------------------------- /logger/logger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/logger/logger.py -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- 1 | if __name__ == '__main__': 2 | pass 3 | -------------------------------------------------------------------------------- /portal/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/portal/__init__.py -------------------------------------------------------------------------------- /portal/debug/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/portal/debug/__init__.py -------------------------------------------------------------------------------- /portal/debug/debug.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/portal/debug/debug.py -------------------------------------------------------------------------------- /portal/debug/debugger.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/portal/debug/debugger.py -------------------------------------------------------------------------------- /portal/debug/templates/debug.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/portal/debug/templates/debug.html -------------------------------------------------------------------------------- /portal/debug/templates/page.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/portal/debug/templates/page.html -------------------------------------------------------------------------------- /portal/home/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/portal/home/__init__.py -------------------------------------------------------------------------------- /portal/home/capture.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/portal/home/capture.py -------------------------------------------------------------------------------- /portal/home/closer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/portal/home/closer.py -------------------------------------------------------------------------------- /portal/home/home.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/portal/home/home.py -------------------------------------------------------------------------------- /portal/home/keymap.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/portal/home/keymap.py -------------------------------------------------------------------------------- /portal/home/templates/home.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/portal/home/templates/home.html -------------------------------------------------------------------------------- /portal/profiles/default.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/portal/profiles/default.json -------------------------------------------------------------------------------- /portal/util/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /portal/util/rwlock.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/portal/util/rwlock.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/requirements.txt -------------------------------------------------------------------------------- /tableturf/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tableturf/ai/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/ai/__init__.py -------------------------------------------------------------------------------- /tableturf/ai/alpha/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/ai/alpha/__init__.py -------------------------------------------------------------------------------- /tableturf/ai/alpha/alpha.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/ai/alpha/alpha.py -------------------------------------------------------------------------------- /tableturf/ai/alpha/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/ai/alpha/util.py -------------------------------------------------------------------------------- /tableturf/ai/interface.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/ai/interface.py -------------------------------------------------------------------------------- /tableturf/ai/simple.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/ai/simple.py -------------------------------------------------------------------------------- /tableturf/manager/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/manager/__init__.py -------------------------------------------------------------------------------- /tableturf/manager/action/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/manager/action/__init__.py -------------------------------------------------------------------------------- /tableturf/manager/action/card.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/manager/action/card.py -------------------------------------------------------------------------------- /tableturf/manager/action/deck.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/manager/action/deck.py -------------------------------------------------------------------------------- /tableturf/manager/action/giveup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/manager/action/giveup.py -------------------------------------------------------------------------------- /tableturf/manager/action/hands.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/manager/action/hands.py -------------------------------------------------------------------------------- /tableturf/manager/action/redraw.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/manager/action/redraw.py -------------------------------------------------------------------------------- /tableturf/manager/action/replay.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/manager/action/replay.py -------------------------------------------------------------------------------- /tableturf/manager/action/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/manager/action/util.py -------------------------------------------------------------------------------- /tableturf/manager/closer/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/manager/closer/__init__.py -------------------------------------------------------------------------------- /tableturf/manager/closer/interface.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/manager/closer/interface.py -------------------------------------------------------------------------------- /tableturf/manager/closer/stats_closer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/manager/closer/stats_closer.py -------------------------------------------------------------------------------- /tableturf/manager/closer/union_closer.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/manager/closer/union_closer.py -------------------------------------------------------------------------------- /tableturf/manager/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/manager/data.py -------------------------------------------------------------------------------- /tableturf/manager/detection/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/manager/detection/__init__.py -------------------------------------------------------------------------------- /tableturf/manager/detection/card.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/manager/detection/card.py -------------------------------------------------------------------------------- /tableturf/manager/detection/debugger/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/manager/detection/debugger/__init__.py -------------------------------------------------------------------------------- /tableturf/manager/detection/debugger/cv.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/manager/detection/debugger/cv.py -------------------------------------------------------------------------------- /tableturf/manager/detection/debugger/interface.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/manager/detection/debugger/interface.py -------------------------------------------------------------------------------- /tableturf/manager/detection/deck.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/manager/detection/deck.py -------------------------------------------------------------------------------- /tableturf/manager/detection/stage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/manager/detection/stage.py -------------------------------------------------------------------------------- /tableturf/manager/detection/ui.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/manager/detection/ui.py -------------------------------------------------------------------------------- /tableturf/manager/detection/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/manager/detection/util.py -------------------------------------------------------------------------------- /tableturf/manager/tableturf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/manager/tableturf.py -------------------------------------------------------------------------------- /tableturf/model/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/model/__init__.py -------------------------------------------------------------------------------- /tableturf/model/card.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/model/card.py -------------------------------------------------------------------------------- /tableturf/model/grid.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/model/grid.py -------------------------------------------------------------------------------- /tableturf/model/stage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/model/stage.py -------------------------------------------------------------------------------- /tableturf/model/status.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/model/status.py -------------------------------------------------------------------------------- /tableturf/model/step.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tableturf/model/step.py -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/test_capture/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/test_capture/test_video_capture.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tests/test_capture/test_video_capture.py -------------------------------------------------------------------------------- /tests/test_controller/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/test_controller/test_interface.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tests/test_controller/test_interface.py -------------------------------------------------------------------------------- /tests/test_controller/test_nxbt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tests/test_controller/test_nxbt.py -------------------------------------------------------------------------------- /tests/test_tableturf/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/test_tableturf/test_ai/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/test_tableturf/test_ai/test_alpha.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tests/test_tableturf/test_ai/test_alpha.py -------------------------------------------------------------------------------- /tests/test_tableturf/test_detection/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/test_tableturf/test_detection/test_card.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tests/test_tableturf/test_detection/test_card.py -------------------------------------------------------------------------------- /tests/test_tableturf/test_detection/test_deck.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tests/test_tableturf/test_detection/test_deck.py -------------------------------------------------------------------------------- /tests/test_tableturf/test_detection/test_stage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tests/test_tableturf/test_detection/test_stage.py -------------------------------------------------------------------------------- /tests/test_tableturf/test_detection/test_ui.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tests/test_tableturf/test_detection/test_ui.py -------------------------------------------------------------------------------- /tests/test_tableturf/test_model/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/test_tableturf/test_model/test_card.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tests/test_tableturf/test_model/test_card.py -------------------------------------------------------------------------------- /tests/test_tableturf/test_model/test_stage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tests/test_tableturf/test_model/test_stage.py -------------------------------------------------------------------------------- /tests/test_tableturf/test_model/test_status.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fga401/AutoTableTurf/HEAD/tests/test_tableturf/test_model/test_status.py --------------------------------------------------------------------------------