Giter Club home page Giter Club logo

ios-decal-proj1's Introduction

Project 1: Hangman

Due Date

Tuesday, February 21 at 11:59 PM

Description

In this project, you will be making an iOS application for the Hangman game. Users should be able to start a game, make guesses for a phrase (list of phrases provided), see their progresses toward the phrase, see a list of previously guessed, incorrect letters, see how many guesses they have left (indicated by a hangman image - basic images provided), be alerted of a win or loss, and start a new game.

Though we do not have many requirements for this project, you are encouraged to customize your app. Here's a screenshot from a past project submission for some inspiration:

alt text

Instructions

We have provided you code to interact with the list of locations in Berkeley, but you will implement the rest of the features on your own.

Begin by cloning the project repository onto your local computer:

git clone https://github.com/iosdecal/ios-decal-proj1.git

Though submissions are graded through Gradescope, you are encouraged to fork this repo and make commits to your own forked repository (especially if you are new to Git!). Instructions to do this can be found here (you can also ask a TA for help doing this!)

Requirements

You must include all features listed under the "Hangman Game View" and "Finished Game States / Start New Game" sections.

Hangman Game View

  • A UILabel that displays the "_"s corresponding to each word in the provided puzzle string
  • A UILabel that displays the incorrect guesses thus far
  • A TextField (where the user enters a letter as a guess)
  • The user should only be able to guess a single letter
  • A "Guess" button which determines whether the letter entered in the textfield is correct or not, and updates the game accordingly
  • If that letter appears in the puzzle string, the corresponding "_" should be replaced by the correctly guessed letter
  • If that letter does not appear in the puzzle string, that letter should be added to a UILabel keeping track of "Incorrect Guesses: ", and the Hangman image should update to represent the number of incorrect guesses
  • A square-dimensioned UIImageView that represents the "state" of the Hangman, with appropriate images for each "state"

Finished Game States, Start New Game

  • A win state, indicated by an Alert (Pop up box). This should prevent additional guesses
  • A fail state, indicated by an Alert (Pop up box). This should prevent additional guesses)
  • A "Start Over" button, which starts a new game

Optional Additions / Features

  • A smart way for the user to guess letters (since a TextField for letter entry isn't ideal UX).
  • Customized design, including, but not limited to, custom images for the Hangman states
  • Anything else that you think will impress us or you think would be fun to implement!

Grading and Submission

If you complete all of the required features you will get full credit. We will deduct points for missing features, bugs, and UI layout issues. If you impress us with additional features (see the Optional Features section), you may be awarded an additional extra credit point.

Once you're done, submit all of your project files in a zipped folder to Gradescope.

ios-decal-proj1's People

Contributors

jimmbai avatar cyejia avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.