Skip to content

wilson20010327/line_bot_tennis

Repository files navigation

計算理論 final project (Line bot with FSM)

by 梁華軒 2022/1/2

Require ENV

Check the requirements.txt, although not all of them are require.
Because I didn't clean the pip in my computer.

FSM (Maping state with GraphMachine)

Introduction

Add friend with the bot

Not thing will happend, unless you type any message.
After sending message, you are enrolled in the geme.

Init

After enrol, you can play the game now.
There are three buttons to type,

  • detail: for more information about the game
  • start : for start playing the game
  • 排行榜: for check the score list who have won the game before

User_serve

After start, you can decide where to serve
There are three buttons to type,

  • Left : for serving to left
  • Rigth: for serving to right
  • Score: for checking recent score

Lint bot defense

After User_serve, Lint bot can decide where to defense.

  • If it guess in the right place, then you have to defense where it is going to serve.
  • if not, you get the point and you can keep serving.

User_defense

After line serve, you can decide where to defense
There are three buttons to type,

  • Left : for defensing to left
  • Rigth: for defensing to right
  • Score: for checking recent score
    • If you guess in the right place, then line bot have to defense where it is going to serve.
    • if not, line bot get the point and line bot can keep serving.

!

WIN or LOSE

Check whether score is bigger than the score max
With different condition respone different image

Using in project

參考server
參考database
參考爬蟲
參考專案建設

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages