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__)
|
|
|
|
|
2025-04-12 13:59:59 +02:00
|
|
|
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - [%(module)s] - %(message)s')
|
|
|
|
|
2025-04-11 22:42:54 +02:00
|
|
|
|
|
|
|
@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()
|