Assign-3-C248W2011A3

Assign-3-C248W2011A3 - Concordia University Comp 248 Winter...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
COMP248/Winter 2011- Assignment 3 Page 1 of 5 Concordia University Comp 248 – Winter 2011 Introduction to Programming Assignment 3 - Due by 11:59pm Monday March 14/2011 ______________________________________________________________________________ Purpose : The purpose of this assignment is to help you practice writing Java programs which require arrays, selection and repetition statements (loops). TEAMS : The assignment can be done individually or in teams. Submit one assignment per team. General Guidelines When Writing Programs: Refer to assignment #1 handout. General rules for the hangman word game: (http://en.wikipedia.org/wiki/Hangman_%28game%29) “Hangman is a paper and pencil guessing game for two or more players. One player thinks of a word and the other tries to guess it by suggesting letters. The word to guess is represented by a row of dashes, giving the number of letters. If the guessing player suggests a letter which occurs in the word, the other player writes it in all its correct positions. If the suggested letter does not occur in the word, the other player draws one element of the hangman diagram as a tally mark. The game is over when: The guessing player completes the word, or guesses the whole word correctly The other player completes the diagram. Programming Question #1: Hangman Game Nancy’s version of the Word Hangman Game is simplified: 1) The word to guess can have repeated letters 2) The word to guess is not case sensitive 3) The guessing player has 10 tries to find the letters. 4) The player can guess the entire word in one shot at any stage, or give one letter at a time. Recommended skeleton of the structure of your program: 1) A player enters the word to guess. Remember a word can only have letters and no repeated letters 2) 20 or so blank lines are printed to clear the word to guess from the screen, before guessing player starts. 3) Guessing player (the other player) is shown with dashes (or stars) the number of letters in the word to guess. Your program also shows the number of guesses left as well as a list of the letters still not picked (See sample outputs below). 4) Guessing player is prompted for guessing the entire word or a letter. 5)
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/07/2011 for the course COMP 248 taught by Professor Na during the Spring '11 term at Dawson College.

Page1 / 5

Assign-3-C248W2011A3 - Concordia University Comp 248 Winter...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online