Skip to content

peter102096/SideProjectFor3Question

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SideProjectFor3Question

Q1: 1+2-3+4-5+6-.....+ 或 - N; N 一定是正整數, 必須要在三秒內算出

Q2: 抽抽樂總共有五種獎項, 1,2 獎各只有一個, 3 獎有 3 個,4 獎有 5 個,5 獎有 9 個,請寫出一個程式可以「隨機」的取得「不重複」的禮物,

且:   
1 獎中獎機率為 0.1%   
2 獎中獎機率為 3%  
3 獎中獎機率為 13%  
4 獎中獎機率為 18%  
5 獎中獎機率為 25%  

Q3: 模擬YouBike2.0頁面,並實際串接API

使用YouBike2.0提供之API, 格式如下  
method: Get  
url: https://tcgbusfs.blob.core.windows.net/dotapp/youbike/v2/youbike_immediate.json  

編譯前利用終端機, 並切換到專案目錄, 然後輸入以下, 點擊.xcworkspace即可正常執行

arch -x86_64 pod install --repo-update

要build到實體機記得要更新 Team及Bundle Identifier

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors