數字華容道 (Digital Klotski)
網頁瀏覽:連結1 (GCP Cloud Run) / 連結2 (AWS Fargate)
Docker Image Version: 1.x
- Pull docker image:
docker pull gcp852/klotski-app:1.x
- Execute program at Terminal:
Python app.py
- 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
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:
flask run --reload --debugger --host 0.0.0.0 --port 80
python app.py
- Welcome view:
- Playing view:
Game Start | Game Play | Game Finish |