2025-04-12 12:51:13 +02:00
|
|
|
import logging
|
|
|
|
|
2025-04-11 22:42:54 +02:00
|
|
|
from flask import Flask
|
|
|
|
|
2025-04-12 12:51:13 +02:00
|
|
|
import config
|
|
|
|
from dto.requests import GameStartRequestDTO, GameDecisionRequestDTO
|
2025-04-12 12:59:36 +02:00
|
|
|
from services.player import Player
|
2025-04-12 02:15:19 +02:00
|
|
|
|
2025-04-11 22:42:54 +02:00
|
|
|
app = Flask(__name__)
|
|
|
|
|
|
|
|
|
|
|
|
@app.route('/')
|
|
|
|
def hello_world(): # put application's code here
|
|
|
|
return 'Hello World!'
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
2025-04-12 12:59:36 +02:00
|
|
|
|
|
|
|
player = Player()
|
|
|
|
player.play_on_separate_thread()
|
2025-04-12 02:15:19 +02:00
|
|
|
|
2025-04-11 22:42:54 +02:00
|
|
|
app.run()
|
2025-04-12 12:51:13 +02:00
|
|
|
|
|
|
|
# res.session_id
|
|
|
|
# UUID('fde19363-a3d5-432e-8b87-54a6dd54f0dd')
|
|
|
|
# second test UUID('e3d58302-400a-4bc6-9772-ae50de43c9f4')
|
|
|
|
# UUID('f8b2a0a6-d4e0-45e6-900f-8ecb3c28f993')
|
|
|
|
# UUID('f8b2a0a6-d4e0-45e6-900f-8ecb3c28f993')
|