dakeouo / proj-klotski-app

使用Docker Image建立Python Flask應用程序

Home Page:https://klotski-app-z6dnupszra-de.a.run.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

klotski-app

數字華容道 (Digital Klotski)

網頁瀏覽:連結1 (GCP Cloud Run) / 連結2 (AWS Fargate)

[Stage1] Python

Prepare

Docker Image Version: 1.x

  • Pull docker image:
docker pull gcp852/klotski-app:1.x
  • Execute program at Terminal:
Python app.py

Excute

  • Welcome view:
================================
==  Welcome to play Klotski!  ==
================================
  Press 'q' to leave this game.
================================
Which Klotski's level would you want to play?(1~5):
  • Playing view:
Moves: 3
------------
01 03 04 12
05 02 07 15
14 09 08 06
13 10 -- 11

Press block number:
  • Finish view:
Congratulation! you move 5 times to finish this game.
Spend Time (sec): 12.843ms

[Stage2] Flask

Prepare

Docker Image Version: 2.x -- Pull docker image:

docker pull gcp852/klotski-app:2.x

-- Setting flask envirment:

  • Linux:export FLASK_APP=app.py
  • Windows:set FLASK_APP=app.py

-- Execute program at Terminal:

  1. flask run --reload --debugger --host 0.0.0.0 --port 80
  2. python app.py

Excute

  • Welcome view:

Imgur

  • Playing view:
Imgur Imgur Imgur
Game Start Game Play Game Finish

About

使用Docker Image建立Python Flask應用程序

https://klotski-app-z6dnupszra-de.a.run.app


Languages

Language:Python 45.7%Language:HTML 31.9%Language:CSS 20.0%Language:Dockerfile 2.4%