一起墜入狂賭之淵!!!

詹鎮鴻
詹鎮鴻
Nov 7 · 2 min read

使用swiftUI製作猜數字小遊戲

一.DEMO錄製

每一次玩先輸入要下注金額,之後便有五次機會可以猜,猜中可拿回10倍,猜錯則需支付20倍,是一種簡單卻又危險的遊戲!!!

二.github連結

三.程式

遊戲介面

功能和alert處理

設定介面

四.心得

這次作業因為有很多範例可以參考,否則data binding一定會把我搞瘋掉的,到現在其實也不是很懂他是怎麼操作的QAQ有時候要加self有時加$真的是傻傻分不清

海大 iOS App 程式設計

    詹鎮鴻

    Written by

    詹鎮鴻

    海大 iOS App 程式設計

    學習 Swift iOS App 開發的海大學生作品集

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade