【解決方法】PHP、javascript、HTML、mysql データベースを使用して API を実装してゲームを開発する方法

プログラミングQA


In this game you can develop whatever technologies. But you want to implement smile API.
Smile API just provide image and Solutions(Solution always come 1-9 Numbers ).  image have simple maths quiz. 
Every Time you call smile API ,Image and solution will be change.
You can do like quiz application.  You want to validate that solution with user's answer. 

You want to add this 3 components in this game
1.Software architecture- it's like model view controller, clean Architecture 
2.even driven architecture- it's like GUI (login, Register)and buttons.
3.Interoperability - it's mean Use Smile Api
And you can get extra marks for Extra features. 

私が試したこと:

引用:

ログインボタンが押されると、ゲームを初期化し、API を呼び出します。API を使用して HTTP Get Request を送信します。ログイン後、GUI が開始されます。ゲームが初期化されると、質問が表示されます。 ユーザーが質問に答えると、解決策は API レスポンスになり、データを JSON オブジェクトに渡します。ユーザーの回答で解決策を検証します。ユーザーの入力が解決策と等しい (計算が正しい) 場合、ユーザーは次のステップに進むことができます。レベルを上げてスコアを上げ、API を呼び出します。

引用:

API を呼び出すと、データが取得され、文字列変数に分割されます。これには、JSON オブジェクトの代わりに JSON array() が必要です。

コメント

タイトルとURLをコピーしました