Skip to content

Commit

Permalink
Fix Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
anny-wu committed Jan 31, 2023
1 parent 2799460 commit 3e41a5c
Show file tree
Hide file tree
Showing 18 changed files with 7 additions and 181 deletions.
Binary file modified .DS_Store
Binary file not shown.
File renamed without changes.
Binary file added GuessTheNumber/.DS_Store
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,17 @@ class ViewController: UIViewController {
button.backgroundColor = UIColor.systemOrange
button.setTitle("Guess!", for: .normal)
numberG = 0
generateRandomNumber()
}

//Alert the number of guess
func alert() {
if numberG > 1{
m = "\(numberG) guesses"
}
else{
m = "1 guess"
}
let alert = UIAlertController(title: "You have used", message: m, preferredStyle: UIAlertController.Style.alert)

alert.addAction(UIAlertAction(title: "Close", style: UIAlertAction.Style.default, handler: { _ in
Expand Down
30 changes: 3 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,5 @@
# Michigan Hackers IOS Team Onboarding
Welcome to the team! Whether you are new to coding in general or you're already a swift GOD you'll have the opportunity to learn a lot. We'll be coding in swift (Apple's programming language) this semester in the XCode IDE. We find that the best way of learning is by doing so we set up this onboarding project to help you familiarize yourself with Xcode, Swift, and app development in general so that we can get to some more complicated projects in the future.
# Guess the number

The one prerequisite that's required for you to start working is that __you must be running some version of the MacOS operating system__. If you have a Mac, you're all set and should start downloading Xcode from the App Store. We highly recommend using a Mac; however, if this is not an option, there are some hacky ways to set up a Mac virtual machine on your Windows machine but we'll leave that up to you.
Need practice on your guessing game? Look no further. PRACTICE NOW to avoid another dreadful Truth or Dare game.


## WHAT THE HECK are we making?
<img width="365" alt="Screen Shot 2021-09-16 at 12 13 36 AM" src="https://user-images.githubusercontent.com/54146662/133548301-3b52ad5d-4a93-4ca4-a74c-e17cae9e35f0.png">
We're going to make a number guesser for our first project!

Yes. I know. It looks disgusting. But after you program all the functionallity of the app you'll get the opportunity to make it look however you like. It's your app after all.

## Sections
Below are the links to the steps of the project. Click one to get started.
- [Setup](https://github.com/schefferac2020/MHack_IOS_Onboarding/blob/main/Setup.md)
- [Xcode and Interface Builder](https://github.com/schefferac2020/MHack_IOS_Onboarding/blob/main/Xcode%26IB.md)
- [Swift, Actions, and Outlets](https://github.com/schefferac2020/MHack_IOS_Onboarding/blob/main/SwiftBasics.md)
- [Simple Game Logic and Control Flow](https://github.com/schefferac2020/MHack_IOS_Onboarding/blob/main/GameLogic.md)

## Skills you'll learn
Below is a by no means exhaustive list of some of the skills you'll learn through this project.
- Different sections of Xcode
- Basics of UIStoryboard
- How data gets loaded to the screen
- Basic program flow
- IBActions and IBOutlets
- Alert View Controllers

Contact [Drew]([email protected]) if you have any questions.
This iOS application allows the user to guess a number between 1 and 50 and provides useful feedback to direct them to the right guess.
25 changes: 0 additions & 25 deletions Setup.md

This file was deleted.

79 changes: 0 additions & 79 deletions SwiftBasics.md

This file was deleted.

50 changes: 0 additions & 50 deletions Xcode&IB.md

This file was deleted.

0 comments on commit 3e41a5c

Please sign in to comment.